Mercurial > hg > toybox
view lib/net.c @ 958:019f54d50c8b
More ifconfig cleanup: Remove if_list, unify get_device_info and display_ifconfig(), inline another magic constant #define that's only used once.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 22 Jul 2013 01:54:28 -0500 |
parents | aca8323e2690 |
children | e11684e3bbc5 |
line wrap: on
line source
#include "toys.h" #include "toynet.h" int xsocket(int domain, int type, int protocol) { int fd = socket(domain, type, protocol); if (fd < 0) perror_exit("socket %x %x", type, protocol); return fd; }