view lib/net.c @ 1179:260cce6c3e35 draft

Replace python help converter with C implementation.
author Rob Landley <rob@landley.net>
date Fri, 03 Jan 2014 18:23:09 -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;
}