2 * Test recvmsg "syscall".
10 #include <sys/socket.h>
11 #include <netinet/in.h>
14 #include "swift_types.h"
22 static void recvmsg_dummy(void);
23 static void recvmsg_invalid_descriptor(void);
24 static void recvmsg_descriptor_is_not_a_socket(void);
25 static void recvmsg_socket_is_not_bound(void);
26 static void recvmsg_after_sendto_ok(void);
27 static void recvmsg_after_sendmsg_ok(void);
29 void recvmsg_test_suite(void)
34 recvmsg_invalid_descriptor();
35 recvmsg_descriptor_is_not_a_socket();
36 recvmsg_socket_is_not_bound();
37 recvmsg_after_sendto_ok();
38 recvmsg_after_sendmsg_ok();
41 static void recvmsg_dummy(void)
46 static void recvmsg_invalid_descriptor(void)
50 static void recvmsg_descriptor_is_not_a_socket(void)
54 static void recvmsg_socket_is_not_bound(void)
58 static void recvmsg_after_sendto_ok(void)
62 static void recvmsg_after_sendmsg_ok(void)