view lib/net.c @ 1002:4226645d3388

More grep tests, remove obsolete comment.
author Rob Landley <rob@landley.net>
date Mon, 12 Aug 2013 04:28:03 -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;
}