Add the bytes field in the mptp_dest structure.
[swifty.git] / src / kernel / test / test_getsockname.c
1 /*
2  * Test getsockname "syscall".
3  */
4
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <string.h>
8 #include <sys/types.h>
9 #include <unistd.h>
10 #include <sys/socket.h>
11 #include <netinet/in.h>
12 #include <errno.h>
13
14 #include "swift_types.h"
15
16 #include "debug.h"
17 #include "util.h"
18
19 #include "test_sw.h"
20 #include "test.h"
21
22 static void getsockname_dummy(void);
23 static void getsockname_invalid_descriptor(void);
24 static void getsockname_descriptor_not_a_socket(void);
25 static void getsockname_invalid_len(void);
26 static void getsockname_ok(void);
27
28 void getsockname_test_suite(void)
29 {
30         start_suite();
31         getsockname_dummy();
32 }
33
34 static void getsockname_dummy(void)
35 {
36         test(1 == 1);
37 }
38