Mercurial > hg > toybox
view toynet.h @ 991:252caf3d2b88
Forgot to check in xfdopen(). My bad.
Failure of fdopen() is most likely failure of malloc() for the FILE structure.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 07 Aug 2013 12:19:51 -0500 |
parents | aca8323e2690 |
children |
line wrap: on
line source
// Included after toys.h, for network stuff. Some build environments // don't include network support, so we shouldn't include it unless we're // going to build it. #include <arpa/inet.h> #include <netdb.h> #include <net/if.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <poll.h> #include <sys/socket.h> #include <sys/un.h>