#include "array.h"
#include <assert.h>
-
#include <stdlib.h>
#include <string.h>
/* Enable more Debug messages in alloc / append / memmove code. */
/* #define DEBUG_ARRAY */
+#define array_UNUSABLE(x) ( !(x)->mem )
-#define array_UNUSABLE(x) ( !(x)->mem )
static bool
safemult_sizet(size_t a, size_t b, size_t *res)
{
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#define __channel_c__
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __channel_h__
#define __channel_h__
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#define __client_c__
-
#include "portab.h"
/**
#include <exp.h>
-
#define GETID_LEN (CLIENT_NICK_LEN-1) + 1 + (CLIENT_USER_LEN-1) + 1 + (CLIENT_HOST_LEN-1) + 1
-
static CLIENT *This_Server, *My_Clients;
static WHOWAS My_Whowas[MAX_WHOWAS];
GLOBAL void Client_DebugDump PARAMS((void));
#endif
-
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __conf_h__
#define __conf_h__
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#define CONN_MODULE
#include "portab.h"
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __conn_func_h__
#define __conn_func_h__
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifdef ZLIB
#ifndef __conn_zip_h__
GLOBAL long Zip_SendBytes PARAMS(( CONN_ID Idx ));
GLOBAL long Zip_RecvBytes PARAMS(( CONN_ID Idx ));
-
#endif /* __conn_zip_h__ */
#endif /* ZLIB */
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#define CONN_MODULE
#include "portab.h"
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __conn_h__
#define __conn_h__
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __defines_h__
#define __defines_h__
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
(UINT32)strlen(buffer), 42);
} /* Hash */
-
/*
* Die hier verwendete Hash-Funktion stammt aus lookup2.c von Bob Jenkins
* (URL: <http://burtleburtle.net/bob/c/lookup2.c>). Aus dem Header:
* nicht alle seiner Funktionen werden hier genutzt.
*/
-
#define hashsize(n) ((UINT32)1<<(n))
#define hashmask(n) (hashsize(n)-1)
c -= a; c -= b; c ^= (b>>15); \
} /* mix */
-
static UINT32
jenkins_hash( register UINT8 *k, register UINT32 length, register UINT32 initval )
{
return c;
} /* jenkins_hash */
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __hash_h__
#define __hash_h__
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*
* Copyright (c) 2005 Florian Westphal (westphal@foo.fh-furtwangen.de)
- *
*/
#include "portab.h"
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __irc_channel_h__
#define __irc_channel_h__
GLOBAL bool IRC_CHANINFO PARAMS((CLIENT *Client, REQUEST *Req ));
-
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __irc_info_h__
#define __irc_info_h__
GLOBAL bool IRC_Show_MOTD PARAMS(( CLIENT *Client ));
GLOBAL bool IRC_Send_ISUPPORT PARAMS(( CLIENT *Client ));
-
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __irc_login_h__
#define __irc_login_h__
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __irc_mode_h__
#define __irc_mode_h__
GLOBAL bool IRC_MODE PARAMS((CLIENT *Client, REQUEST *Req ));
GLOBAL bool IRC_AWAY PARAMS((CLIENT *Client, REQUEST *Req ));
-
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Channel operator commands (header)
*/
-
#ifndef __irc_op_h__
#define __irc_op_h__
GLOBAL bool IRC_KICK PARAMS(( CLIENT *Client, REQUEST *Req ));
GLOBAL bool IRC_INVITE PARAMS(( CLIENT *Client, REQUEST *Req ));
-
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __irc_oper_h__
#define __irc_oper_h__
GLOBAL bool IRC_DISCONNECT PARAMS((CLIENT *Client, REQUEST *Req ));
GLOBAL bool IRC_WALLOPS PARAMS(( CLIENT *Client, REQUEST *Req ));
-
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __irc_server_h__
#define __irc_server_h__
GLOBAL bool IRC_ENDOFMOTD_Server PARAMS((CLIENT *Client));
-
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
} /* Lists_MakeMask */
-
bool
Lists_Check( struct list_head *header, CLIENT *Client)
{
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __lists_h__
#define __lists_h__
struct list_elem *first;
};
-
GLOBAL struct list_elem *Lists_GetFirst PARAMS((const struct list_head *));
GLOBAL struct list_elem *Lists_GetNext PARAMS((const struct list_elem *));
GLOBAL const char *Lists_GetMask PARAMS(( const struct list_elem *e ));
#endif
+
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __log_h__
#define __log_h__
# define LOG_DEBUG 7
#endif
-
#define LOG_snotice 1024
-
GLOBAL void Log_Init PARAMS(( bool Daemon_Mode ));
GLOBAL void Log_Exit PARAMS(( void ));
GLOBAL void Log_InitErrorfile PARAMS(( void ));
#endif
-
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __match_h__
#define __match_h__
GLOBAL bool Match PARAMS(( const char *Pattern, const char *String ));
GLOBAL bool MatchCaseInsensitive PARAMS(( const char *Pattern, const char *searchme ));
-
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __messages_h__
#define __messages_h__
#define RPL_STATSLINKINFOZIP_MSG "211 %s %s %d %ld %ld/%ld %ld %ld/%ld :%ld"
#endif
-
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
snprintf(NGIRCd_Version, sizeof NGIRCd_Version, "%s %s-%s",
PACKAGE_NAME, PACKAGE_VERSION, NGIRCd_VersionAddition);
- } /* Fill_Version */
+} /* Fill_Version */
/**
*gid = pwd->pw_gid;
endpwent();
- return true;
-}
+ return true;
+} /* NGIRCd_getNobodyID */
static bool
if (fd > 2)
close(fd);
return false;
-}
+} /* NGIRCd_Init */
/* -eof- */
* Prototypes of the "main module".
*/
-
#ifndef __ngircd_h__
#define __ngircd_h__
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
#include <exp.h>
#include "op.h"
+
/**
* Return and log a "no privileges" message.
*/
* to trust remote operators. */
return true;
} /* Op_Check */
+
+
+/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __parse_h__
#define __parse_h__
long bytes; /* number of bytes created */
} COMMAND;
-
GLOBAL bool Parse_Request PARAMS((CONN_ID Idx, char *Request ));
GLOBAL COMMAND *Parse_GetCommandStruct PARAMS(( void ));
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#define RESOLVER_TIMEOUT (Conf_PongTimeout*3)/4
#include "portab.h"
void Signals_Exit PARAMS((void));
#endif
+
+/* -eof- */
#undef GLOBAL
#define GLOBAL
-
/* -eof- */
#undef GLOBAL
#define GLOBAL extern
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __PORTAB__
#define __PORTAB__
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*/
-
#ifndef __splint__
#define __splint__
#define WNOHANG 0
-
#endif
-
/* -eof- */
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#include "portab.h"
/**
* Please read the file COPYING, README and AUTHORS for more information.
*/
-
#ifndef __tool_h__
#define __tool_h__
#endif
-
/* -eof- */