aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/interposing_table.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2015-04-18 21:50:13 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2015-04-18 21:50:13 +0000
commit0538aafc41ac136a3ab5a88d7d67f968f6d06b52 (patch)
tree5939add2a0816746476989dd37677ad0fb0428ac /lib/libc/sys/interposing_table.c
parenta745246822b524c3527fd87eb683cfd8d0d75b58 (diff)
downloadsrc-0538aafc41ac136a3ab5a88d7d67f968f6d06b52.tar.gz
src-0538aafc41ac136a3ab5a88d7d67f968f6d06b52.zip
The lseek(2), mmap(2), truncate(2), ftruncate(2), pread(2), and
pwrite(2) syscalls are wrapped to provide compatibility with pre-7.x kernels which required padding before the off_t parameter. The fcntl(2) contains compatibility code to handle kernels before the struct flock was changed during the 8.x CURRENT development. The shims were reasonable to allow easier revert to the older kernel at that time. Now, two or three major releases later, shims do not serve any purpose. Such old kernels cannot handle current libc, so revert the compatibility code. Make padded syscalls support conditional under the COMPAT6 config option. For COMPAT32, the syscalls were under COMPAT6 already. Remove WITHOUT_SYSCALL_COMPAT build option, which only purpose was to (partially) disable the removed shims. Reviewed by: jhb, imp (previous versions) Discussed with: peter Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=281714
Diffstat (limited to 'lib/libc/sys/interposing_table.c')
-rw-r--r--lib/libc/sys/interposing_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/sys/interposing_table.c b/lib/libc/sys/interposing_table.c
index c4d14294b2e4..08dfbb15b153 100644
--- a/lib/libc/sys/interposing_table.c
+++ b/lib/libc/sys/interposing_table.c
@@ -44,7 +44,7 @@ interpos_func_t __libc_interposing[INTERPOS_MAX] = {
SLOT(aio_suspend, __sys_aio_suspend),
SLOT(close, __sys_close),
SLOT(connect, __sys_connect),
- SLOT(fcntl, __fcntl_compat),
+ SLOT(fcntl, __sys_fcntl),
SLOT(fsync, __sys_fsync),
SLOT(fork, __sys_fork),
SLOT(msync, __sys_msync),