Mercurial > hg > toybox
annotate toynet.h @ 883:aca8323e2690
Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 26 Apr 2013 02:41:05 -0500 |
parents | 4dcd5decb4fd |
children |
rev | line source |
---|---|
190 | 1 // Included after toys.h, for network stuff. Some build environments |
2 // don't include network support, so we shouldn't include it unless we're | |
3 // going to build it. | |
4 | |
883
aca8323e2690
Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
Rob Landley <rob@landley.net>
parents:
876
diff
changeset
|
5 #include <arpa/inet.h> |
aca8323e2690
Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
Rob Landley <rob@landley.net>
parents:
876
diff
changeset
|
6 #include <netdb.h> |
aca8323e2690
Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
Rob Landley <rob@landley.net>
parents:
876
diff
changeset
|
7 #include <net/if.h> |
aca8323e2690
Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
Rob Landley <rob@landley.net>
parents:
876
diff
changeset
|
8 #include <netinet/in.h> |
aca8323e2690
Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
Rob Landley <rob@landley.net>
parents:
876
diff
changeset
|
9 #include <netinet/tcp.h> |
aca8323e2690
Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
Rob Landley <rob@landley.net>
parents:
876
diff
changeset
|
10 #include <poll.h> |
190 | 11 #include <sys/socket.h> |
876
4dcd5decb4fd
Forgot to check in a header that moved from ifconfig to toynet.h.
Rob Landley <rob@landley.net>
parents:
190
diff
changeset
|
12 #include <sys/un.h> |
883
aca8323e2690
Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
Rob Landley <rob@landley.net>
parents:
876
diff
changeset
|
13 |