diff options
Diffstat (limited to 'socket')
-rw-r--r-- | socket/Makefile | 4 | ||||
-rw-r--r-- | socket/Versions | 1 | ||||
-rw-r--r-- | socket/accept.c | 2 | ||||
-rw-r--r-- | socket/accept4.c | 2 | ||||
-rw-r--r-- | socket/bind.c | 2 | ||||
-rw-r--r-- | socket/bits/socket2.h | 2 | ||||
-rw-r--r-- | socket/connect.c | 2 | ||||
-rw-r--r-- | socket/getpeername.c | 2 | ||||
-rw-r--r-- | socket/getsockname.c | 2 | ||||
-rw-r--r-- | socket/getsockopt.c | 2 | ||||
-rw-r--r-- | socket/have_sock_cloexec.c | 2 | ||||
-rw-r--r-- | socket/isfdtype.c | 2 | ||||
-rw-r--r-- | socket/listen.c | 2 | ||||
-rw-r--r-- | socket/opensock.c | 2 | ||||
-rw-r--r-- | socket/recv.c | 3 | ||||
-rw-r--r-- | socket/recvfrom.c | 2 | ||||
-rw-r--r-- | socket/recvmmsg.c | 4 | ||||
-rw-r--r-- | socket/recvmsg.c | 2 | ||||
-rw-r--r-- | socket/sa_len.c | 2 | ||||
-rw-r--r-- | socket/send.c | 2 | ||||
-rw-r--r-- | socket/sendmmsg.c | 2 | ||||
-rw-r--r-- | socket/sendmsg.c | 2 | ||||
-rw-r--r-- | socket/sendto.c | 2 | ||||
-rw-r--r-- | socket/setsockopt.c | 2 | ||||
-rw-r--r-- | socket/shutdown.c | 2 | ||||
-rw-r--r-- | socket/sockatmark.c | 2 | ||||
-rw-r--r-- | socket/socket.c | 3 | ||||
-rw-r--r-- | socket/socketpair.c | 2 | ||||
-rw-r--r-- | socket/sys/socket.h | 8 | ||||
-rw-r--r-- | socket/sys/un.h | 2 |
30 files changed, 38 insertions, 33 deletions
diff --git a/socket/Makefile b/socket/Makefile index a297084cc7..2fd9ff6406 100644 --- a/socket/Makefile +++ b/socket/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1991-2014 Free Software Foundation, Inc. +# Copyright (C) 1991-2015 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -20,6 +20,8 @@ # subdir := socket +include ../Makeconfig + headers := sys/socket.h sys/un.h bits/sockaddr.h bits/socket.h \ bits/socket2.h sys/socketvar.h net/if.h diff --git a/socket/Versions b/socket/Versions index dcad32988f..7ce6f43841 100644 --- a/socket/Versions +++ b/socket/Versions @@ -39,5 +39,6 @@ libc { } GLIBC_PRIVATE { __sendmmsg; + __recv; __socket; } } diff --git a/socket/accept.c b/socket/accept.c index 7cf3832485..619bee5b25 100644 --- a/socket/accept.c +++ b/socket/accept.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/accept4.c b/socket/accept4.c index 94a9864677..e1a6d05de0 100644 --- a/socket/accept4.c +++ b/socket/accept4.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2008-2014 Free Software Foundation, Inc. +/* Copyright (C) 2008-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/bind.c b/socket/bind.c index 24914fc592..4dea286c8f 100644 --- a/socket/bind.c +++ b/socket/bind.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/bits/socket2.h b/socket/bits/socket2.h index 74e1648e7c..18e4fbd0d1 100644 --- a/socket/bits/socket2.h +++ b/socket/bits/socket2.h @@ -1,5 +1,5 @@ /* Checking macros for socket functions. - Copyright (C) 2005-2014 Free Software Foundation, Inc. + Copyright (C) 2005-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/connect.c b/socket/connect.c index 311ee3f1a7..45cee74a5a 100644 --- a/socket/connect.c +++ b/socket/connect.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/getpeername.c b/socket/getpeername.c index d6597c0db0..d3425bbe40 100644 --- a/socket/getpeername.c +++ b/socket/getpeername.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/getsockname.c b/socket/getsockname.c index 01d0b062b6..47e1838aa7 100644 --- a/socket/getsockname.c +++ b/socket/getsockname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/getsockopt.c b/socket/getsockopt.c index ce35f336dc..73fb15e341 100644 --- a/socket/getsockopt.c +++ b/socket/getsockopt.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/have_sock_cloexec.c b/socket/have_sock_cloexec.c index f7b83411a0..c849f92059 100644 --- a/socket/have_sock_cloexec.c +++ b/socket/have_sock_cloexec.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2008-2014 Free Software Foundation, Inc. +/* Copyright (C) 2008-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/isfdtype.c b/socket/isfdtype.c index 4b127584df..2e60b3c2af 100644 --- a/socket/isfdtype.c +++ b/socket/isfdtype.c @@ -1,5 +1,5 @@ /* isfdtype - Determine whether descriptor has given property. Stub version. - Copyright (C) 1996-2014 Free Software Foundation, Inc. + Copyright (C) 1996-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/listen.c b/socket/listen.c index 19fc726a0d..2bbdfdc8db 100644 --- a/socket/listen.c +++ b/socket/listen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/opensock.c b/socket/opensock.c index 8dd89060fa..31f247eb40 100644 --- a/socket/opensock.c +++ b/socket/opensock.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999-2014 Free Software Foundation, Inc. +/* Copyright (C) 1999-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/recv.c b/socket/recv.c index de9061e786..63a9fcb8b7 100644 --- a/socket/recv.c +++ b/socket/recv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -30,6 +30,7 @@ __recv (fd, buf, n, flags) __set_errno (ENOSYS); return -1; } +libc_hidden_def (__recv) weak_alias (__recv, recv) stub_warning (recv) diff --git a/socket/recvfrom.c b/socket/recvfrom.c index ada4bebca2..479350f83b 100644 --- a/socket/recvfrom.c +++ b/socket/recvfrom.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/recvmmsg.c b/socket/recvmmsg.c index ed0c369486..ea945b41b7 100644 --- a/socket/recvmmsg.c +++ b/socket/recvmmsg.c @@ -1,5 +1,5 @@ /* Receive multiple messages on a socket. Stub version. - Copyright (C) 2010-2014 Free Software Foundation, Inc. + Copyright (C) 2010-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,7 +23,7 @@ Returns the number of bytes read or -1 for errors. */ int recvmmsg (int fd, struct mmsghdr *vmessages, unsigned int vlen, int flags, - const struct timespec *tmo) + struct timespec *tmo) { __set_errno (ENOSYS); return -1; diff --git a/socket/recvmsg.c b/socket/recvmsg.c index a3aa567c8c..d34a435f4a 100644 --- a/socket/recvmsg.c +++ b/socket/recvmsg.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/sa_len.c b/socket/sa_len.c index 183e679aa5..a71f017694 100644 --- a/socket/sa_len.c +++ b/socket/sa_len.c @@ -1,5 +1,5 @@ /* Helper for SA_LEN macro. - Copyright (C) 2013-2014 Free Software Foundation, Inc. + Copyright (C) 2013-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/send.c b/socket/send.c index 39f05faa00..4ecb332e9e 100644 --- a/socket/send.c +++ b/socket/send.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/sendmmsg.c b/socket/sendmmsg.c index e7e5cdc95f..6435e3c79c 100644 --- a/socket/sendmmsg.c +++ b/socket/sendmmsg.c @@ -1,5 +1,5 @@ /* Send multiple messages on a socket. Stub version. - Copyright (C) 2011-2014 Free Software Foundation, Inc. + Copyright (C) 2011-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/sendmsg.c b/socket/sendmsg.c index 08749b64f8..586f598c77 100644 --- a/socket/sendmsg.c +++ b/socket/sendmsg.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/sendto.c b/socket/sendto.c index 42f8e58494..de2e523a51 100644 --- a/socket/sendto.c +++ b/socket/sendto.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/setsockopt.c b/socket/setsockopt.c index 3730da2b2a..cf36f1c29b 100644 --- a/socket/setsockopt.c +++ b/socket/setsockopt.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/shutdown.c b/socket/shutdown.c index 63506779bf..ea5f7b3042 100644 --- a/socket/shutdown.c +++ b/socket/shutdown.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/sockatmark.c b/socket/sockatmark.c index 4cc299a2f2..6ff6d0198b 100644 --- a/socket/sockatmark.c +++ b/socket/sockatmark.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2014 Free Software Foundation, Inc. +/* Copyright (C) 2001-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/socket.c b/socket/socket.c index 42ae4114d3..9fe8fd9929 100644 --- a/socket/socket.c +++ b/socket/socket.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -32,5 +32,6 @@ __socket (domain, type, protocol) } +libc_hidden_def (__socket) weak_alias (__socket, socket) stub_warning (socket) diff --git a/socket/socketpair.c b/socket/socketpair.c index da36155d58..e0948f03bb 100644 --- a/socket/socketpair.c +++ b/socket/socketpair.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/socket/sys/socket.h b/socket/sys/socket.h index 10e17d3926..affc29ea6d 100644 --- a/socket/sys/socket.h +++ b/socket/sys/socket.h @@ -1,5 +1,5 @@ /* Declarations of socket constants, types, and functions. - Copyright (C) 1991-2014 Free Software Foundation, Inc. + Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -37,7 +37,7 @@ __BEGIN_DECLS `struct msghdr', and `struct linger' types. */ #include <bits/socket.h> -#ifdef __USE_BSD +#ifdef __USE_MISC /* This is the 4.3 BSD `struct sockaddr' format, which is used as wire format in the grotty old 4.3 `talk' protocol. */ struct osockaddr @@ -203,13 +203,13 @@ extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags); #ifdef __USE_GNU /* Receive up to VLEN messages as described by VMESSAGES from socket FD. - Returns the number of bytes read or -1 for errors. + Returns the number of messages received or -1 for errors. This function is a cancellation point and therefore not marked with __THROW. */ extern int recvmmsg (int __fd, struct mmsghdr *__vmessages, unsigned int __vlen, int __flags, - const struct timespec *__tmo); + struct timespec *__tmo); #endif diff --git a/socket/sys/un.h b/socket/sys/un.h index fc0ed39cd8..0059570f49 100644 --- a/socket/sys/un.h +++ b/socket/sys/un.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. +/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or |