2 * Test sw_sendmsg "syscall".
10 #include <sys/socket.h>
11 #include <netinet/in.h>
14 #include "swift_raw.h"
15 #include "swift_types.h"
23 static void sendmsg_dummy(void);
24 static void sendmsg_invalid_descriptor(void);
25 static void sendmsg_descriptor_is_not_socket(void);
26 static void sendmsg_socket_is_not_bound(void);
27 static void sendmsg_ok(void);
29 void sendmsg_test_suite(void)
33 sendmsg_invalid_descriptor();
34 sendmsg_descriptor_is_not_socket();
35 sendmsg_socket_is_not_bound();
39 static void sendmsg_dummy(void)
44 static void sendmsg_invalid_descriptor(void)
49 static void sendmsg_descriptor_is_not_socket(void)
54 static void sendmsg_socket_is_not_bound(void)
59 static void sendmsg_ok(void)