cvs commit: src/lib/libc/gen Makefile.inc __getosreldate.c src/lib/libc/include libc_private.h src/lib/libc/sys ftruncate.c lseek.c mmap.c pread.c pwrite.c truncate.c

Peter Wemm peter at FreeBSD.org
Wed Jul 4 23:27:39 UTC 2007


peter       2007-07-04 23:27:38 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/gen         Makefile.inc 
    lib/libc/include     libc_private.h 
    lib/libc/sys         ftruncate.c lseek.c mmap.c pread.c 
                         pwrite.c truncate.c 
  Added files:
    lib/libc/gen         __getosreldate.c 
  Log:
  Change the C wrappers for mmap/lseek/pread/pwrite/truncate/ftruncate to
  call the pad-less versions of the corresponding syscalls if the running
  kernel supports it.  Check kern.osreldate once per program and cache the
  result to select the appropriate syscall.  This maintains userland
  compatability with kernel.old's from quite a while back.
  
  Approved by:  re (kensmith)
  
  Revision  Changes    Path
  1.127     +2 -1      src/lib/libc/gen/Makefile.inc
  1.1       +61 -0     src/lib/libc/gen/__getosreldate.c (new)
  1.17      +23 -0     src/lib/libc/include/libc_private.h
  1.7       +5 -1      src/lib/libc/sys/ftruncate.c
  1.7       +6 -1      src/lib/libc/sys/lseek.c
  1.7       +6 -2      src/lib/libc/sys/mmap.c
  1.4       +6 -1      src/lib/libc/sys/pread.c
  1.4       +5 -1      src/lib/libc/sys/pwrite.c
  1.5       +5 -2      src/lib/libc/sys/truncate.c


More information about the cvs-src mailing list