freebsd-dev/lib/libc/i386/sys
Konstantin Belousov 0538aafc41 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
2015-04-18 21:50:13 +00:00
..
__vdso_gettc.c Rework the __vdso_* symbols attributes to only make the symbols weak, 2013-01-30 12:48:16 +00:00
brk.S libc/i386: Do not export .cerror. 2012-09-05 21:41:05 +00:00
cerror.S libc/i386: Do not export .cerror. 2012-09-05 21:41:05 +00:00
exect.S libc/i386: Do not export .cerror. 2012-09-05 21:41:05 +00:00
getcontext.S Replace the WEAK_ALIAS() alias with the WEAK_REFERENCE() alias. Use it and 2013-11-21 22:31:18 +00:00
i386_clr_watch.c
i386_get_fsbase.c
i386_get_gsbase.c
i386_get_ioperm.2 mdoc: sort prologue macros. 2012-03-26 19:23:57 +00:00
i386_get_ioperm.c
i386_get_ldt.2
i386_get_ldt.c
i386_set_fsbase.c
i386_set_gsbase.c
i386_set_ioperm.c
i386_set_ldt.c
i386_set_watch.3 mdoc: sort prologue macros. 2012-03-26 19:23:57 +00:00
i386_set_watch.c
i386_vm86.2 mdoc: sort prologue macros. 2012-03-26 19:23:57 +00:00
i386_vm86.c
Makefile.inc The lseek(2), mmap(2), truncate(2), ftruncate(2), pread(2), and 2015-04-18 21:50:13 +00:00
Ovfork.S Replace the WEAK_ALIAS() alias with the WEAK_REFERENCE() alias. Use it and 2013-11-21 22:31:18 +00:00
pipe.S Add section .note.GNU-stack for assembly files used by 386 and amd64. 2011-01-07 16:08:40 +00:00
ptrace.S libc/i386: Do not export .cerror. 2012-09-05 21:41:05 +00:00
reboot.S Add section .note.GNU-stack for assembly files used by 386 and amd64. 2011-01-07 16:08:40 +00:00
sbrk.S libc/i386: Do not export .cerror. 2012-09-05 21:41:05 +00:00
setlogin.S libc: Access _logname_valid more efficiently. 2013-08-17 19:24:58 +00:00
sigreturn.S Add section .note.GNU-stack for assembly files used by 386 and amd64. 2011-01-07 16:08:40 +00:00
syscall.S libc/i386: Do not export .cerror. 2012-09-05 21:41:05 +00:00