annotate toynet.h @ 931:011df43e35d5

Option type @ counts number of occurrences, it doesn't take an argument.
author Rob Landley <rob@landley.net>
date Sat, 22 Jun 2013 15:36:25 -0500
parents aca8323e2690
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
190
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 // Included after toys.h, for network stuff. Some build environments
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
2 // don't include network support, so we shouldn't include it unless we're
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
3 // going to build it.
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
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
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
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