| 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 |
| 48 |
|
#define REASONLEN 120 |
| 49 |
|
#define KICKLEN 160 |
| 50 |
|
#define AWAYLEN 160 |
| 51 |
< |
|
| 53 |
< |
/* 23+1 for \0 */ |
| 54 |
< |
#define KEYLEN 24 |
| 55 |
< |
#define OPERNICKLEN NICKLEN*2 /* Length of OPERNICKs. */ |
| 51 |
> |
#define KEYLEN 23 |
| 52 |
|
|
| 53 |
|
#define USERHOST_REPLYLEN (NICKLEN+HOSTLEN+USERLEN+5) |
| 54 |
|
#define MAX_DATE_STRING 32 /* maximum string length for a date string */ |
| 55 |
< |
#define IRCD_MAXNS 2 /* Maximum number of nameservers in |
| 55 |
> |
#define IRCD_MAXNS 3 /* Maximum number of nameservers in |
| 56 |
|
/etc/resolv.conf we care about */ |
| 57 |
|
|
| 58 |
|
#define LOWEST_SAFE_FD 4 /* skip stdin, stdout, stderr, and profiler */ |
| 59 |
|
|
| 64 |
– |
#define PLATFORMLEN 200 /* platform string used in info response */ |
| 65 |
– |
|
| 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 |
| 88 |
– |
|
| 60 |
|
/* This is to get around the fact that some implementations have ss_len and |
| 61 |
|
* others do not |
| 62 |
|
*/ |