diff options
author | peter <peter@FreeBSD.org> | 2007-07-04 23:27:38 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2007-07-04 23:27:38 +0000 |
commit | 1c8d4bbe1849bcdcc2f85e7f4f049e8077209ac5 (patch) | |
tree | c6557e22092cc28b77304e9185ac106ae162a5ca /lib/libc/gen/Makefile.inc | |
parent | 6f011a901238459d7c02187fc3effe7157c3aeb7 (diff) | |
download | FreeBSD-src-1c8d4bbe1849bcdcc2f85e7f4f049e8077209ac5.zip FreeBSD-src-1c8d4bbe1849bcdcc2f85e7f4f049e8077209ac5.tar.gz |
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)
Diffstat (limited to 'lib/libc/gen/Makefile.inc')
-rw-r--r-- | lib/libc/gen/Makefile.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index 8881d80..c3f3940 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -4,7 +4,8 @@ # machine-independent gen sources .PATH: ${.CURDIR}/${MACHINE_ARCH}/gen ${.CURDIR}/gen -SRCS+= __xuname.c _pthread_stubs.c _rand48.c _spinlock_stub.c _thread_init.c \ +SRCS+= __getosreldate.c __xuname.c \ + _pthread_stubs.c _rand48.c _spinlock_stub.c _thread_init.c \ alarm.c arc4random.c assert.c basename.c check_utility_compat.c \ clock.c closedir.c confstr.c \ crypt.c ctermid.c daemon.c devname.c dirname.c disklabel.c \ |