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/i386/sys | |
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/i386/sys')
-rw-r--r-- | lib/libc/i386/sys/Makefile.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/i386/sys/Makefile.inc b/lib/libc/i386/sys/Makefile.inc index ca487a6..8da2ab8 100644 --- a/lib/libc/i386/sys/Makefile.inc +++ b/lib/libc/i386/sys/Makefile.inc @@ -12,11 +12,13 @@ MDASM= Ovfork.S brk.S cerror.S exect.S getcontext.S pipe.S ptrace.S \ reboot.S sbrk.S setlogin.S sigreturn.S syscall.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 MAN+= i386_get_ioperm.2 i386_get_ldt.2 i386_vm86.2 MAN+= i386_set_watch.3 |