diff options
Diffstat (limited to 'test-cmsg.c')
-rw-r--r-- | test-cmsg.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test-cmsg.c b/test-cmsg.c new file mode 100644 index 00000000..b5441f9c --- /dev/null +++ b/test-cmsg.c @@ -0,0 +1,13 @@ +#include <stddef.h> +#include <sys/socket.h> + +int +main(void) +{ + struct msghdr msg; + + msg.msg_control = NULL; + msg.msg_controllen = 0; + + return CMSG_FIRSTHDR(&msg) != NULL; +} |