/[svn]/ircd-hybrid-7.2/include/ircd_defs.h
ViewVC logotype

Contents of /ircd-hybrid-7.2/include/ircd_defs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 908 - (show annotations)
Sun Nov 4 23:21:51 2007 UTC (12 years, 10 months ago) by stu
File MIME type: text/x-csrc
File size: 3176 byte(s)
Completely redo the build system.  Now uses libtool and automake.  Suggest you clean out your tree and then do ./autogen.sh.
1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * ircd_defs.h: A header for ircd global definitions.
4 *
5 * Copyright (C) 2002 by the past and present ircd coders, and others.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 * USA
21 *
22 * $Id$
23 */
24
25 /*
26 * NOTE: NICKLEN and TOPICLEN do not live here anymore. Set it with configure
27 * Otherwise there are no user servicable part here.
28 *
29 */
30 /* ircd_defs.h - Global size definitions for record entries used
31 * througout ircd. Please think 3 times before adding anything to this
32 * file.
33 */
34 #ifndef INCLUDED_ircd_defs_h
35 #define INCLUDED_ircd_defs_h
36 #include "inet_misc.h"
37
38 /* Right out of the RFC */
39 #define IRCD_BUFSIZE 512 /* WARNING: *DONT* CHANGE THIS!!!! */
40 #define PORTNAMELEN 6 /* ":31337" */
41
42 #define REALLEN 50
43 #define KILLLEN 90
44 #define LOCAL_CHANNELLEN 50
45 #define CHANNELLEN 200
46 #define REASONLEN 120
47 #define KICKLEN 160
48 #define AWAYLEN 160
49
50 /* 23+1 for \0 */
51 #define KEYLEN 24
52 #define OPERNICKLEN NICKLEN*2 /* Length of OPERNICKs. */
53
54 #define USERHOST_REPLYLEN (NICKLEN+HOSTLEN+USERLEN+5)
55 #define MAX_DATE_STRING 32 /* maximum string length for a date string */
56 #define IRCD_MAXNS 2 /* Maximum number of nameservers in
57 /etc/resolv.conf we care about */
58
59 #define LOWEST_SAFE_FD 4 /* skip stdin, stdout, stderr, and profiler */
60
61 #define PLATFORMLEN 200 /* platform string used in info response */
62
63 #ifdef _WIN32
64 #define EAFNOSUPPORT WSAEAFNOSUPPORT
65 #define EALREADY WSAEALREADY
66 #define EINPROGRESS WSAEINPROGRESS
67 #define EISCONN WSAEISCONN
68 #define EMSGSIZE WSAEMSGSIZE
69 #define EWOULDBLOCK WSAEWOULDBLOCK
70
71 #define _UTSNAME_LENGTH 65
72 #define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH
73 #define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH
74 struct utsname
75 {
76 char sysname[_UTSNAME_LENGTH];
77 char nodename[_UTSNAME_NODENAME_LENGTH];
78 char release[_UTSNAME_LENGTH];
79 char version[_UTSNAME_LENGTH];
80 char machine[_UTSNAME_LENGTH];
81 char domainname[_UTSNAME_DOMAIN_LENGTH];
82 };
83 int uname (struct utsname *);
84
85 #define PATH_DEVNULL "dev.null"
86 #else
87 #define PATH_DEVNULL "/dev/null"
88 #endif
89
90 /* This is to get around the fact that some implementations have ss_len and
91 * others do not
92 */
93 struct irc_ssaddr
94 {
95 struct sockaddr_storage ss;
96 unsigned char ss_len;
97 in_port_t ss_port;
98 };
99
100 #define REJECT_HOLD_TIME GlobalSetOptions.rejecttime
101
102 #endif /* INCLUDED_ircd_defs_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28