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/arm | |
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/arm')
-rw-r--r-- | lib/libc/arm/sys/Makefile.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/arm/sys/Makefile.inc b/lib/libc/arm/sys/Makefile.inc index 28aabb3..6c38e7d 100644 --- a/lib/libc/arm/sys/Makefile.inc +++ b/lib/libc/arm/sys/Makefile.inc @@ -3,7 +3,10 @@ MDASM= Ovfork.S brk.S cerror.S pipe.S ptrace.S sbrk.S shmat.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= _exit.o _getlogin.o +.if !defined(WITHOUT_SYSCALL_COMPAT) +PSEUDO+= _pread.o _pwrite.o _lseek.o _mmap.o _ftruncate.o _truncate.o +.endif |