summaryrefslogtreecommitdiffstats
path: root/lib/libnv/msgio.h
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-12-15 22:58:09 +0000
committerpjd <pjd@FreeBSD.org>2013-12-15 22:58:09 +0000
commitd2d5bec62ca1a0000a3d686837388bc93c1587b0 (patch)
tree667109fec4abeb318fdf15525f4363f4641ef591 /lib/libnv/msgio.h
parent8f9b4c6a1e9be0e98ffdf5ee87683de092014b89 (diff)
downloadFreeBSD-src-d2d5bec62ca1a0000a3d686837388bc93c1587b0.zip
FreeBSD-src-d2d5bec62ca1a0000a3d686837388bc93c1587b0.tar.gz
MFp4 @1189139:
Get rid of the msg_peek() function, which has a problem. If there was less data in the socket buffer than requested by the caller, the function would busy loop, as select(2) will always return immediately. We can just receive nvlhdr now, because some time ago we splitted receive of data from the receive of descriptors. MFC after: 1 week
Diffstat (limited to 'lib/libnv/msgio.h')
-rw-r--r--lib/libnv/msgio.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libnv/msgio.h b/lib/libnv/msgio.h
index c6de92d..fd5e462 100644
--- a/lib/libnv/msgio.h
+++ b/lib/libnv/msgio.h
@@ -38,8 +38,6 @@ struct cmsgcred;
struct iovec;
struct msghdr;
-int msg_peek(int sock, void *buf, size_t size);
-
int cred_send(int sock);
int cred_recv(int sock, struct cmsgcred *cred);
OpenPOWER on IntegriCloud