view lib/net.c @ 1314:bc618abf4fb2 draft

Bugfix from Isaac Dunham (new pci database has # comments in it) and some minor cleanups I had in my tree already.
author Rob Landley <rob@landley.net>
date Sat, 24 May 2014 22:40:41 -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;
}