view lib/net.c @ 1768:4c92484c2646 draft

Fix sed bug David Halls hit trying to compile libiconv.
author Rob Landley <rob@landley.net>
date Sat, 28 Mar 2015 20:21:03 -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;
}