Mercurial > hg > toybox
view toynet.h @ 1046:673fe8f927b0 draft
fix rm to handle "mkdir sub/sub && chmod 007 sub/sub && rm -rf sub".
Previous version didn't delete it, but exited without error. Neither was right.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 05 Sep 2013 04:19:37 -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>