Mercurial > hg > toybox
view lib/net.c @ 1189:95ae2805622f draft
Add Szabolcs Nagy's deflate/inflate code from git://git.suckless.org/flate
Confirmed with him on IRC it's ok to use under toybox license, glued the files
together and hammered square peg into round hole, no other changes yet.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 31 Jan 2014 06:01:30 -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; }