aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/ifaddrs.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-04-29 23:49:37 +0000
committerUlrich Drepper <drepper@redhat.com>2003-04-29 23:49:37 +0000
commit153da5995c2d820a221aa5388edf2fb229ed3450 (patch)
tree94a36f3e3cfde9bb064977391d92bfdb81392a4c /sysdeps/unix/sysv/linux/ifaddrs.c
parent85dd10031084e8b4a17d84a08afdb9d24beaa510 (diff)
downloadglibc-153da5995c2d820a221aa5388edf2fb229ed3450.tar
glibc-153da5995c2d820a221aa5388edf2fb229ed3450.tar.gz
glibc-153da5995c2d820a221aa5388edf2fb229ed3450.tar.bz2
glibc-153da5995c2d820a221aa5388edf2fb229ed3450.zip
Update.
* sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected variants of socket, bind, recvmsg, and sendto.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ifaddrs.c')
-rw-r--r--sysdeps/unix/sysv/linux/ifaddrs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/ifaddrs.c b/sysdeps/unix/sysv/linux/ifaddrs.c
index a6f928d846..e7b59574d1 100644
--- a/sysdeps/unix/sysv/linux/ifaddrs.c
+++ b/sysdeps/unix/sysv/linux/ifaddrs.c
@@ -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;