Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/sys/socket.h,v retrieving revision 1.106 retrieving revision 1.107 diff -u -p -r1.106 -r1.107 --- src/sys/sys/socket.h 2012/01/29 18:33:07 1.106 +++ src/sys/sys/socket.h 2012/06/22 18:26:35 1.107 @@ -1,4 +1,4 @@ -/* $NetBSD: socket.h,v 1.106 2012/01/29 18:33:07 roy Exp $ */ +/* $NetBSD: socket.h,v 1.107 2012/06/22 18:26:35 christos Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -495,6 +495,12 @@ struct msghdr { #if defined(_NETBSD_SOURCE) #define MSG_CMSG_CLOEXEC 0x0800 /* close on exec receiving fd */ #define MSG_NBIO 0x1000 /* use non-blocking I/O */ +#define MSG_WAITFORONE 0x2000 /* recvmmsg() wait for one message */ + +struct mmsghdr { + struct msghdr msg_hdr; + unsigned int msg_len; +}; #endif /* Extra flags used internally only */ @@ -629,6 +635,13 @@ __RENAME(__socket30) #endif ; int socketpair(int, int, int, int *); + +#if defined(_NETBSD_SOURCE) +int sendmmsg(int, struct mmsghdr *, unsigned int, unsigned int); +struct timespec; +int recvmmsg(int, struct mmsghdr *, unsigned int, unsigned int, + struct timespec *); +#endif __END_DECLS #endif /* !_KERNEL */