view lib/net.c @ 1159:f1c924e08e63 draft

Attached is an implementation for groupdel. This is aliased to delgroup, for a requirement at my end. Also lib/password.c is modified to along with.
author Ashwini Sharma <ak.ashwini1981@gmail.com>
date Mon, 23 Dec 2013 07:23:28 -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;
}