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.100.2.1 retrieving revision 1.100.2.2 diff -u -p -r1.100.2.1 -r1.100.2.2 --- src/sys/sys/socket.h 2012/04/17 00:08:53 1.100.2.1 +++ src/sys/sys/socket.h 2012/10/30 17:22:57 1.100.2.2 @@ -1,4 +1,4 @@ -/* $NetBSD: socket.h,v 1.100.2.1 2012/04/17 00:08:53 yamt Exp $ */ +/* $NetBSD: socket.h,v 1.100.2.2 2012/10/30 17:22:57 yamt 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 */