Magellan Linux

Annotation of /trunk/mkinitrd-magellan/klibc/usr/klibc/tests/socket.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1297 - (hide annotations) (download)
Fri May 27 15:12:11 2011 UTC (13 years ago) by niro
File MIME type: text/plain
File size: 287 byte(s)
-updated to klibc-1.5.22 with mntproc definitions patch included
1 niro 1122 #include <stdio.h>
2     #include <string.h>
3     #include <errno.h>
4     #include <sys/socket.h>
5    
6     int main(int argc, char *argv[])
7     {
8     int ret;
9    
10     ret = socket(AF_INET, SOCK_DGRAM, 0);
11     if (ret == -1) {
12     fprintf(stderr, "klibc: socket(AF_INET): %s\n",
13     strerror(errno));
14     return 1;
15     }
16    
17     return 0;
18     }