home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
kaffe-0.5p4-src.tgz
/
tar.out
/
contrib
/
kaffe
/
lib
/
support
/
nets.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
737b
|
38 lines
/*
* nets.h
*
* Copyright (c) 1996 Systems Architecture Research Centre,
* City University, London, UK.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* Written by Tim Wilkinson <tim@sarc.city.ac.uk>, February 1996.
*/
#ifndef __nets_h
#define __nets_h
#include "config.h"
#include <errno.h>
extern int errno;
extern int h_errno;
#define MAXHOSTNAME 128
#if defined(HAVE_STRERROR)
#define SYS_ERROR (char*)strerror(errno)
#else
extern char* sys_errlist[];
#define SYS_ERROR sys_errlist[errno]
#endif
#if defined(HAVE_HSTRERROR)
#define SYS_HERROR (char*)hstrerror(h_errno)
#else
#define SYS_HERROR "Network error"
#endif
#endif