view lib/net.c @ 1213:5918424045a1 draft

Broken URL that's been pointed out to me a couple times when I'm not at a machine I can fix it from, keep forgetting...
author Rob Landley <rob@landley.net>
date Sat, 08 Mar 2014 19:26:33 -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;
}