Mercurial > hg > toybox
view lib/net.c @ 1513:7a0ea74c2e0c draft
Added tag 0.5.0 for changeset 7afd32673a5c
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 02 Oct 2014 07:47:08 -0500 |
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; }