mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 02:40:06 +00:00
1f8161a801
This patch consolidates the recvfrom Linux syscall implementation on sysdeps/unix/sysv/linux/recvfrom.c. The changes are: 1. Define __ASSUME_RECVFROM_SYSCALL by default 2. Undef it for architectures that do not support __NR_recvfrom. 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/alpha/syscalls.list: Remove recvfrom 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/sparc/sparc64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/i386/kernel-features.h * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_RECVFROM_SYSCALL): Define by default. (__ASSUME_RECVFROM_SYSCALL): Undef it if kernel does not support __NR_recvfrom. * sysdeps/unix/sysv/linux/m68k/kernel-features.h (__ASSUME_RECVFROM_SYSCALL): Likewise. * sysdeps/unix/sysv/linux/s390/kernel-features.h (__ASSUME_RECVFROM_SYSCALL): Likewise. * sysdeps/unix/sysv/linux/microblaze/kernel-features.h (__ASSUME_RECVFROM_SYSCALL): Remove definition. * sysdeps/unix/sysv/linux/powerpc/kernel-features.h (__ASSUME_RECVFROM_SYSCALL): Likewise. * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_RECVFROM_SYSCALL): Likewise. * sysdeps/unix/sysv/linux/sparc/kernel-features.h (__ASSUME_RECVFROM_SYSCALL): Likewise. * sysdeps/unix/sysv/linux/recvfrom.c: Simplify includes.
51 lines
2.3 KiB
Plaintext
51 lines
2.3 KiB
Plaintext
# File name Caller Syscall name # args Strong name Weak names
|
|
|
|
sigstack - sigstack 2 sigstack
|
|
|
|
getpriority - getpriority i:ii __getpriority getpriority
|
|
|
|
# proper socket implementations:
|
|
bind - bind i:ipi __bind bind
|
|
getpeername - getpeername i:ipp __getpeername getpeername
|
|
getsockname - getsockname i:ipp __getsockname getsockname
|
|
getsockopt - getsockopt i:iiiBN __getsockopt getsockopt
|
|
listen - listen i:ii __listen listen
|
|
recv - recv Ci:ibni __libc_recv __recv recv
|
|
send - send Ci:ibni __libc_send __send send
|
|
sendto - sendto Ci:ibnibn __libc_sendto __sendto sendto
|
|
setsockopt - setsockopt i:iiibn __setsockopt setsockopt
|
|
shutdown - shutdown i:ii __shutdown shutdown
|
|
socket - socket i:iii __socket socket
|
|
socketpair - socketpair i:iiif __socketpair socketpair
|
|
|
|
ptrace - ptrace 4 __ptrace ptrace
|
|
|
|
# access pci space protected from machine checks:
|
|
pciconfig_read EXTRA pciconfig_read 5 pciconfig_read
|
|
pciconfig_write EXTRA pciconfig_write 5 pciconfig_write
|
|
pciconfig_iobase EXTRA pciconfig_iobase 3 __pciconfig_iobase pciconfig_iobase
|
|
|
|
# support old timeval32 entry points
|
|
osf_select - osf_select C:5 __select_tv32 __select@GLIBC_2.0 select@GLIBC_2.0
|
|
osf_gettimeofday - osf_gettimeofday 2 __gettimeofday_tv32 __gettimeofday@GLIBC_2.0 gettimeofday@GLIBC_2.0
|
|
osf_settimeofday - osf_settimeofday 2 __settimeofday_tv32 settimeofday@GLIBC_2.0
|
|
osf_getitimer - osf_getitimer 2 __getitimer_tv32 getitimer@GLIBC_2.0
|
|
osf_setitimer - osf_setitimer 3 __setitimer_tv32 setitimer@GLIBC_2.0
|
|
osf_utimes - osf_utimes 2 __utimes_tv32 utimes@GLIBC_2.0
|
|
osf_getrusage - osf_getrusage 2 __getrusage_tv32 getrusage@GLIBC_2.0
|
|
osf_wait4 - osf_wait4 4 __wait4_tv32 wait4@GLIBC_2.0
|
|
|
|
# support new timeval64 entry points
|
|
select - select C:5 __GI___select select@@GLIBC_2.1 __select@@GLIBC_2.1
|
|
gettimeofday - gettimeofday 2 __GI___gettimeofday gettimeofday@@GLIBC_2.1 __gettimeofday@@GLIBC_2.1
|
|
settimeofday - settimeofday 2 __settimeofday settimeofday@@GLIBC_2.1
|
|
getitimer - getitimer 2 __getitimer getitimer@@GLIBC_2.1
|
|
setitimer - setitimer 3 __setitimer setitimer@@GLIBC_2.1
|
|
utimes - utimes 2 __utimes utimes@@GLIBC_2.1
|
|
getrusage - getrusage 2 __getrusage getrusage@@GLIBC_2.1
|
|
wait4 - wait4 4 __wait4 wait4@@GLIBC_2.1
|
|
|
|
# avoid 64-bit aliases on 32-bit statfs syscalls
|
|
fstatfs - fstatfs i:ip __fstatfs fstatfs
|
|
statfs - statfs i:sp __statfs statfs
|