mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 15:00:06 +00:00
01061a7cab
This patch consolidates the accept Linux syscall implementation on sysdeps/unix/sysv/linux/accept.c. The changes are: 1. Remove accept from auto-generation syscalls.list on the architecture that uses __NR_accept. 2. Define __NR_accept as default (__ASSUME_ACCEPT_SYSCALL) and undef for architectures that do not support it. 3. Remove __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL and decide to use __NR_accept4 for accept generation based on __ASSUME_ACCEPT4_SYSCALL. Checked on i686-linux-gnu, x86_64-linux-gnu, x86_64-linux-gnux32, aarch64-linux-gnu, arm-linux-gnueabihf, and powerpc64le-linux-gnu. * sysdeps/unix/sysv/linux/accept.c (__libc_accept): Replace __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL by __ASSUME_ACCEPT4_SYSCALL. * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove accept from auto-generation list. * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/i386/kernel-features.h (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define. (__ASSUME_ACCEPT_SYSCALL): Undefine. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ACCEPT_SYSCALL): New define. * sysdeps/unix/sysv/linux/m68k/kernel-features.h (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define. (__ASSUME_ACCEPT_SYSCALL): Define wheter kernel version supports. * sysdeps/unix/sysv/linux/microblaze/kernel-features.h (__ASSUME_ACCEPT_SYSCALL): Define. * sysdeps/unix/sysv/linux/powerpc/kernel-features.h (__ASSUME_ACCEPT_SYSCALL): Undefine. * sysdeps/unix/sysv/linux/s390/kernel-features.h (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define. (__ASSUME_ACCEPT_SYSCALL): Undefine. * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_ACCEPT_SYSCALL): Undefine. * sysdeps/unix/sysv/linux/sparc/kernel-features.h (__ASSUME_ACCEPT_SYSCALL): Undefine for 32 bits. |
||
---|---|---|
.. | ||
alpha | ||
alphaev6/fpu | ||
alphaev67/fpu | ||
bits | ||
fpu | ||
sys | ||
____longjmp_chk.S | ||
a.out.h | ||
adjtime.c | ||
aio_cancel.c | ||
arch-fork.h | ||
brk.S | ||
c++-types.data | ||
clone.S | ||
configure | ||
configure.ac | ||
creat.c | ||
dl-auxv.h | ||
dl-brk.S | ||
dl-fxstatat64.c | ||
dl-support.c | ||
dl-sysdep.c | ||
fraiseexcpt.S | ||
fstatfs64.c | ||
fstatvfs64.c | ||
fstatvfs.c | ||
fxstat.c | ||
fxstatat.c | ||
getclktck.c | ||
getcontext.S | ||
getdents64.c | ||
getdents.c | ||
gethostname.c | ||
getsysstats.c | ||
glob.c | ||
ieee_get_fp_control.S | ||
ieee_set_fp_control.S | ||
Implies | ||
internal_statvfs64.c | ||
ioperm.c | ||
ipc_priv.h | ||
kernel_sigaction.h | ||
kernel_stat.h | ||
kernel_sysinfo.h | ||
kernel_termios.h | ||
kernel-features.h | ||
ld.abilist | ||
libanl.abilist | ||
libBrokenLocale.abilist | ||
libc.abilist | ||
libcrypt.abilist | ||
libdl.abilist | ||
libm.abilist | ||
libnsl.abilist | ||
libpthread.abilist | ||
libresolv.abilist | ||
librt.abilist | ||
libthread_db.abilist | ||
libutil.abilist | ||
localplt.data | ||
lxstat.c | ||
makecontext.S | ||
Makefile | ||
nldbl-abi.h | ||
oldglob.c | ||
pipe.S | ||
pt-vfork.S | ||
register-dump.h | ||
rt_sigaction.S | ||
setcontext.S | ||
setfpucw.c | ||
shlib-versions | ||
sigaction.c | ||
sigcontextinfo.h | ||
sigprocmask.c | ||
sigsuspend.S | ||
sizes.h | ||
statfs64.c | ||
statvfs64.c | ||
statvfs.c | ||
swapcontext.S | ||
syscall.S | ||
syscalls.list | ||
sysconf.c | ||
sysdep-cancel.h | ||
sysdep.h | ||
timer_create.c | ||
timer_delete.c | ||
timer_getoverr.c | ||
timer_gettime.c | ||
timer_settime.c | ||
ucontext-offsets.sym | ||
Versions | ||
vfork.S | ||
wordexp.c | ||
xstat.c | ||
xstatconv.c | ||
xstatconv.h |