diff options
author | peter <peter@FreeBSD.org> | 2007-07-04 23:23:01 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2007-07-04 23:23:01 +0000 |
commit | 6f011a901238459d7c02187fc3effe7157c3aeb7 (patch) | |
tree | 12d2cc45c8567200f1c7a1a9d32c3febd9b4cd3f /lib/libc/amd64 | |
parent | 1b55a32fbf471df5850c6998ad88edb70b2b1bc6 (diff) | |
download | FreeBSD-src-6f011a901238459d7c02187fc3effe7157c3aeb7.zip FreeBSD-src-6f011a901238459d7c02187fc3effe7157c3aeb7.tar.gz |
Classify mmap, lseek, pread, pwrite, truncate, ftruncate as pseudo
syscalls, unless WITHOUT_SYSCALL_COMPAT is defined. The default case
will have the .c wrappers still. If you define WITHOUT_SYSCALL_COMPAT,
the .c wrappers will go away and libc will make direct syscalls.
After 7-stable starts, the direct syscall method will be default.
Approved by: re (kensmith)
Diffstat (limited to 'lib/libc/amd64')
-rw-r--r-- | lib/libc/amd64/sys/Makefile.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/amd64/sys/Makefile.inc b/lib/libc/amd64/sys/Makefile.inc index 4f8bef7..5115819 100644 --- a/lib/libc/amd64/sys/Makefile.inc +++ b/lib/libc/amd64/sys/Makefile.inc @@ -7,8 +7,10 @@ MDASM= vfork.S brk.S cerror.S exect.S getcontext.S pipe.S ptrace.S \ reboot.S sbrk.S setlogin.S sigreturn.S # Don't generate default code for these syscalls: -NOASM= break.o exit.o ftruncate.o getdomainname.o getlogin.o \ - lseek.o mmap.o openbsd_poll.o pread.o \ - pwrite.o setdomainname.o sstk.o truncate.o uname.o vfork.o yield.o +NOASM= break.o exit.o getdomainname.o getlogin.o openbsd_poll.o \ + setdomainname.o sstk.o uname.o vfork.o yield.o PSEUDO= _getlogin.o _exit.o +.if !defined(WITHOUT_SYSCALL_COMPAT) +PSEUDO+= _pread.o _pwrite.o _lseek.o _mmap.o _ftruncate.o _truncate.o +.endif |