diff options
author | Roland McGrath <roland@gnu.org> | 2008-07-02 09:53:29 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2008-07-02 09:53:29 +0000 |
commit | e66ecb226ed6991d0c39a0daf7730e65fe555c6c (patch) | |
tree | ca2f000a788dc0c929ffd79917fbd39fa56406f3 /sysdeps/mach/hurd/recvfrom.c | |
parent | cc9f65ce82d4995e776464a1656587c39f6b14bb (diff) | |
download | glibc-e66ecb226ed6991d0c39a0daf7730e65fe555c6c.tar.gz glibc-e66ecb226ed6991d0c39a0daf7730e65fe555c6c.tar.xz glibc-e66ecb226ed6991d0c39a0daf7730e65fe555c6c.zip |
2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
* sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL. * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function. * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of __hurd_dfail. * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise * sysdeps/mach/hurd/send.c (__send): Likewise * sysdeps/mach/hurd/sendfrom.c (__sendfrom): Likewise * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise
Diffstat (limited to 'sysdeps/mach/hurd/recvfrom.c')
-rw-r--r-- | sysdeps/mach/hurd/recvfrom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/recvfrom.c b/sysdeps/mach/hurd/recvfrom.c index d5c73f4441..d30bc40c06 100644 --- a/sysdeps/mach/hurd/recvfrom.c +++ b/sysdeps/mach/hurd/recvfrom.c @@ -52,7 +52,7 @@ __recvfrom (fd, buf, n, flags, addrarg, addr_len) &cdata, &clen, &flags, n))) - return __hurd_dfail (fd, err); + return __hurd_sockfail (fd, flags, err); /* Get address data for the returned address port if requested. */ if (addr != NULL) @@ -74,7 +74,7 @@ __recvfrom (fd, buf, n, flags, addrarg, addr_len) if (err) { __mach_port_deallocate (__mach_task_self (), addrport); - return __hurd_dfail (fd, err); + return __hurd_sockfail (fd, flags, err); } if (*addr_len > buflen) |