Mercurial > hg > toybox
view lib/net.c @ 974:5a50be9d00a7
The attached KLOGD patch is an improved version of the one you have in hg.
This also has a fix for boundary condition crash.
author | Ashwini Sharma <ak.ashwini@gmail.com> |
---|---|
date | Mon, 29 Jul 2013 00:42:30 -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; }