Mercurial > hg > toybox
view toynet.h @ 1095:960462460639 draft
I noticed the user count was missing and added this, borrowing a bit of code from toys/posix/who.c.
author | Jeroen van Rijn <jvrnix@gmail.com> |
---|---|
date | Sat, 26 Oct 2013 12:59:28 -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>