diff options
author | Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> | 2022-10-19 19:14:21 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-12-07 13:42:05 -0300 |
commit | 215bf99347be78f80ea1e9d7d717a4b67616e28d (patch) | |
tree | 10e3902413668921347b400f32932f2ce63dbc03 /sysdeps/unix/sysv/linux/bind.c | |
parent | a33919698b8b7e556f2eaf7d8550842ee654f2ae (diff) | |
download | glibc-215bf99347be78f80ea1e9d7d717a4b67616e28d.tar glibc-215bf99347be78f80ea1e9d7d717a4b67616e28d.tar.gz glibc-215bf99347be78f80ea1e9d7d717a4b67616e28d.tar.bz2 glibc-215bf99347be78f80ea1e9d7d717a4b67616e28d.zip |
Linux: Assume and consolidate bind wire-up syscall
And disable if kernel does not support it.
Checked on x86_64-linux-gnu and i686-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/bind.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/bind.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/bind.c b/sysdeps/unix/sysv/linux/bind.c index 83992a5dbd..97a42c497f 100644 --- a/sysdeps/unix/sysv/linux/bind.c +++ b/sysdeps/unix/sysv/linux/bind.c @@ -15,19 +15,14 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <errno.h> -#include <signal.h> #include <sys/socket.h> - #include <socketcall.h> -#include <kernel-features.h> -#include <sys/syscall.h> int __bind (int fd, __CONST_SOCKADDR_ARG addr, socklen_t len) { #ifdef __ASSUME_BIND_SYSCALL - return INLINE_SYSCALL (bind, 3, fd, addr.__sockaddr__, len); + return INLINE_SYSCALL_CALL (bind, fd, addr.__sockaddr__, len); #else return SOCKETCALL (bind, fd, addr.__sockaddr__, len, 0, 0, 0); #endif |