cvs commit: src/sys/vm vm_glue.c vm_map.c vm_mmap.c

Alan Cox alc at FreeBSD.org
Sun Nov 9 17:37:42 PST 2003


alc         2003/11/09 17:37:41 PST

  FreeBSD src repository

  Modified files:
    sys/vm               vm_glue.c vm_map.c vm_mmap.c 
  Log:
   - The Open Group Base Specifications Issue 6 specifies that an munmap(2)
     must return EINVAL if size is zero.  Submitted by: tegge
   - In order to avoid a race condition in multithreaded applications, the
     check and removal operations by munmap(2) must be in the same critical
     section.  To accomodate this, vm_map_check_protection() is modified to
     require its caller to obtain at least a read lock on the map.
  
  Revision  Changes    Path
  1.187     +4 -0      src/sys/vm/vm_glue.c
  1.321     +6 -14     src/sys/vm/vm_map.c
  1.171     +8 -6      src/sys/vm/vm_mmap.c


More information about the cvs-src mailing list