| 33 |
|
*/ |
| 34 |
|
#ifndef INCLUDED_ircd_defs_h |
| 35 |
|
#define INCLUDED_ircd_defs_h |
| 36 |
< |
#include "inet_misc.h" |
| 37 |
< |
|
| 36 |
> |
#include "stdinc.h" |
| 37 |
|
/* Right out of the RFC */ |
| 38 |
|
#define IRCD_BUFSIZE 512 /* WARNING: *DONT* CHANGE THIS!!!! */ |
| 39 |
|
#define HOSTLEN 63 /* Length of hostname. Updated to comply |
| 62 |
|
|
| 63 |
|
#define PLATFORMLEN 200 /* platform string used in info response */ |
| 64 |
|
|
| 66 |
– |
#ifdef _WIN32 |
| 67 |
– |
#define EAFNOSUPPORT WSAEAFNOSUPPORT |
| 68 |
– |
#define EALREADY WSAEALREADY |
| 69 |
– |
#define EINPROGRESS WSAEINPROGRESS |
| 70 |
– |
#define EISCONN WSAEISCONN |
| 71 |
– |
#define EMSGSIZE WSAEMSGSIZE |
| 72 |
– |
#define EWOULDBLOCK WSAEWOULDBLOCK |
| 73 |
– |
|
| 74 |
– |
#define _UTSNAME_LENGTH 65 |
| 75 |
– |
#define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH |
| 76 |
– |
#define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH |
| 77 |
– |
struct utsname |
| 78 |
– |
{ |
| 79 |
– |
char sysname[_UTSNAME_LENGTH]; |
| 80 |
– |
char nodename[_UTSNAME_NODENAME_LENGTH]; |
| 81 |
– |
char release[_UTSNAME_LENGTH]; |
| 82 |
– |
char version[_UTSNAME_LENGTH]; |
| 83 |
– |
char machine[_UTSNAME_LENGTH]; |
| 84 |
– |
char domainname[_UTSNAME_DOMAIN_LENGTH]; |
| 85 |
– |
}; |
| 86 |
– |
int uname (struct utsname *); |
| 87 |
– |
#endif |
| 65 |
|
|
| 66 |
|
/* This is to get around the fact that some implementations have ss_len and |
| 67 |
|
* others do not |