Mercurial > hg > toybox
view toynet.h @ 877:37e668afd008
Isaac Dunham pointed out that the kernel treats - and _ as identical in module names, so modinfo should too. Made it use mmap() while I was there, and some cosmetic refactoring.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 24 Apr 2013 03:04:31 -0500 |
parents | 4dcd5decb4fd |
children | aca8323e2690 |
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 <sys/socket.h> #include <sys/un.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <poll.h>