summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2007-07-04 23:23:01 +0000
committerpeter <peter@FreeBSD.org>2007-07-04 23:23:01 +0000
commit6f011a901238459d7c02187fc3effe7157c3aeb7 (patch)
tree12d2cc45c8567200f1c7a1a9d32c3febd9b4cd3f /lib/libc/sys
parent1b55a32fbf471df5850c6998ad88edb70b2b1bc6 (diff)
downloadFreeBSD-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/sys')
-rw-r--r--lib/libc/sys/Makefile.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc
index 7705a41..e84b06f 100644
--- a/lib/libc/sys/Makefile.inc
+++ b/lib/libc/sys/Makefile.inc
@@ -18,8 +18,10 @@
.endif
# Sources common to both syscall interfaces:
-SRCS+= ftruncate.c lseek.c mmap.c pread.c pwrite.c stack_protector.c \
- truncate.c __error.c
+SRCS+= stack_protector.c __error.c
+.if !defined(WITHOUT_SYSCALL_COMPAT)
+SRCS+= ftruncate.c lseek.c mmap.c pread.c pwrite.c truncate.c
+.endif
# Add machine dependent asm sources:
SRCS+=${MDASM}
OpenPOWER on IntegriCloud