view lib/net.c @ 1401:8a67f42e4f76 draft

Have single.sh enable I18N and FLOAT.
author Rob Landley <rob@landley.net>
date Mon, 21 Jul 2014 20:03:06 -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;
}