Mercurial > hg > toybox
view lib/net.c @ 1491:24d21baf52a3 draft
Capitalize "toybox" more consistently on the about page.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 20 Sep 2014 14:12:55 -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; }