view lib/net.c @ 1101:ccf4193167c3 draft

Make the patch -x option (only enabled with CONFIG_DEBUG) provide more information about why a patch didn't apply. (Offset of first nonmatching character at each line during seek phase.)
author Rob Landley <>
date Thu, 31 Oct 2013 09:36:55 -0500
parents aca8323e2690
children e11684e3bbc5
line wrap: on
line source

#include "toys.h"
#include "toynet.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;