mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 10:22:41 +08:00
Update.
* sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected variants of socket, bind, recvmsg, and sendto.
This commit is contained in:
parent
85dd100310
commit
153da5995c
@ -1,5 +1,8 @@
|
||||
2003-04-29 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
|
||||
variants of socket, bind, recvmsg, and sendto.
|
||||
|
||||
* sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
|
||||
|
||||
* include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
|
||||
|
@ -134,9 +134,9 @@ netlink_sendreq (struct netlink_handle *h, int type)
|
||||
memset (&nladdr, '\0', sizeof (nladdr));
|
||||
nladdr.nl_family = AF_NETLINK;
|
||||
|
||||
return TEMP_FAILURE_RETRY (sendto (h->fd, (void *) &req, sizeof (req), 0,
|
||||
(struct sockaddr *) &nladdr,
|
||||
sizeof (nladdr)));
|
||||
return TEMP_FAILURE_RETRY (__sendto (h->fd, (void *) &req, sizeof (req), 0,
|
||||
(struct sockaddr *) &nladdr,
|
||||
sizeof (nladdr)));
|
||||
}
|
||||
|
||||
|
||||
@ -161,7 +161,7 @@ netlink_receive (struct netlink_handle *h)
|
||||
0
|
||||
};
|
||||
|
||||
read_len = TEMP_FAILURE_RETRY (recvmsg (h->fd, &msg, 0));
|
||||
read_len = TEMP_FAILURE_RETRY (__recvmsg (h->fd, &msg, 0));
|
||||
if (read_len < 0)
|
||||
return -1;
|
||||
|
||||
@ -230,13 +230,13 @@ netlink_open (struct netlink_handle *h)
|
||||
{
|
||||
struct sockaddr_nl nladdr;
|
||||
|
||||
h->fd = socket (PF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
|
||||
h->fd = __socket (PF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
|
||||
if (h->fd < 0)
|
||||
return -1;
|
||||
|
||||
memset (&nladdr, '\0', sizeof (nladdr));
|
||||
nladdr.nl_family = AF_NETLINK;
|
||||
if (bind (h->fd, (struct sockaddr *) &nladdr, sizeof (nladdr)) < 0)
|
||||
if (__bind (h->fd, (struct sockaddr *) &nladdr, sizeof (nladdr)) < 0)
|
||||
{
|
||||
netlink_close (h);
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user