Mercurial > hg > toybox
view lib/net.c @ 1702:8ce8c5365f8b draft 0.5.2
stat -f didn't work on 32 bit systems because type sizes wrong (fix from Elliott Hughes).
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 25 Feb 2015 00:45:50 -0600 |
parents | e11684e3bbc5 |
children |
line wrap: on
line source
#include "toys.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; }