view toynet.h @ 746:5caa4035c1c8

essat's flag not to follow symlinks isn't in the system call, and if libc is supposed to implement this as a wrapper uClibc gets it wrong. So use the stat info about symlinks instead. (Doesn't check the parent directory, but if that's read only we can't delete the file anyway so prompting is moot.)
author Rob Landley <rob@landley.net>
date Mon, 10 Dec 2012 01:48:02 -0600
parents e864c5ed1d25
children 4dcd5decb4fd
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 <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <poll.h>