Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2009 19:45:36 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libc/sys mmap.2 src/sys/vm vm_mmap.c
Message-ID:  <200907141948.n6EJmU7d034992@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2009-07-14 19:45:36 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/sys         mmap.2 
    sys/vm               vm_mmap.c 
  Log:
  SVN rev 195693 on 2009-07-14 19:45:36Z by jhb
  
  - Change mmap() to fail requests with EINVAL that pass a length of 0.  This
    behavior is mandated by POSIX.
  - Do not fail requests that pass a length greater than SSIZE_MAX
    (such as > 2GB on 32-bit platforms).  The 'len' parameter is actually
    an unsigned 'size_t' so negative values don't really make sense.
  
  Submitted by:   Alexander Best  alexbestms at math.uni-muenster.de
  Reviewed by:    alc
  Approved by:    re (kib)
  MFC after:      1 week
  
  Revision  Changes    Path
  1.58      +2 -2      src/lib/libc/sys/mmap.2
  1.233     +1 -1      src/sys/vm/vm_mmap.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907141948.n6EJmU7d034992>