| 1 |
adx |
30 |
/* |
| 2 |
|
|
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). |
| 3 |
|
|
* stdinc.h: Pull in all of the necessary system headers |
| 4 |
|
|
* |
| 5 |
|
|
* Copyright (C) 2002 Aaron Sethman <androsyn@ratbox.org> |
| 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 |
michael |
4564 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 |
| 20 |
adx |
30 |
* USA |
| 21 |
|
|
* |
| 22 |
knight |
31 |
* $Id$ |
| 23 |
adx |
30 |
* |
| 24 |
|
|
*/ |
| 25 |
|
|
|
| 26 |
|
|
#ifndef STDINC_H /* prevent multiple #includes */ |
| 27 |
|
|
#define STDINC_H |
| 28 |
michael |
3799 |
|
| 29 |
michael |
912 |
#include "config.h" |
| 30 |
adx |
30 |
|
| 31 |
|
|
#include "defaults.h" |
| 32 |
|
|
|
| 33 |
michael |
1015 |
#include <stddef.h> |
| 34 |
adx |
30 |
#include <stdlib.h> |
| 35 |
michael |
923 |
#include <string.h> |
| 36 |
michael |
1329 |
#include <stdint.h> |
| 37 |
|
|
#include <errno.h> |
| 38 |
adx |
30 |
|
| 39 |
|
|
#ifdef HAVE_STRTOK_R |
| 40 |
|
|
# define strtoken(x, y, z) strtok_r(y, z, x) |
| 41 |
|
|
#endif |
| 42 |
|
|
|
| 43 |
|
|
#include <sys/types.h> |
| 44 |
|
|
|
| 45 |
|
|
#ifdef HAVE_CRYPT_H |
| 46 |
|
|
#include <crypt.h> |
| 47 |
|
|
#endif |
| 48 |
|
|
|
| 49 |
|
|
#ifdef HAVE_LIBCRYPTO |
| 50 |
|
|
#include <openssl/ssl.h> |
| 51 |
|
|
#include <openssl/err.h> |
| 52 |
|
|
#endif |
| 53 |
|
|
|
| 54 |
michael |
1858 |
#ifdef HAVE_LIBGEOIP |
| 55 |
|
|
#include <GeoIP.h> |
| 56 |
|
|
#endif |
| 57 |
|
|
|
| 58 |
adx |
30 |
#include <stdio.h> |
| 59 |
|
|
#include <assert.h> |
| 60 |
|
|
#include <time.h> |
| 61 |
|
|
#include <fcntl.h> |
| 62 |
|
|
|
| 63 |
|
|
#include <stdarg.h> |
| 64 |
|
|
#include <signal.h> |
| 65 |
|
|
#include <ctype.h> |
| 66 |
|
|
|
| 67 |
|
|
#include <dirent.h> |
| 68 |
|
|
#include <netdb.h> |
| 69 |
|
|
#include <sys/socket.h> |
| 70 |
|
|
#include <netinet/in.h> |
| 71 |
|
|
#include <arpa/inet.h> |
| 72 |
|
|
#include <sys/time.h> |
| 73 |
|
|
#include <sys/file.h> |
| 74 |
|
|
|
| 75 |
|
|
#include <limits.h> |
| 76 |
|
|
|
| 77 |
|
|
#ifdef HAVE_UNISTD_H |
| 78 |
|
|
#include <unistd.h> |
| 79 |
|
|
#endif |
| 80 |
|
|
|
| 81 |
|
|
#ifdef HAVE_SYS_RESOURCE_H |
| 82 |
|
|
#include <sys/resource.h> |
| 83 |
|
|
#endif |
| 84 |
|
|
|
| 85 |
|
|
#include <sys/stat.h> |
| 86 |
|
|
#ifdef HAVE_SYS_WAIT_H |
| 87 |
|
|
#include <sys/wait.h> |
| 88 |
|
|
#endif |
| 89 |
|
|
|
| 90 |
|
|
#ifdef HAVE_SYS_PARAM_H |
| 91 |
|
|
#include <sys/param.h> |
| 92 |
|
|
#endif |
| 93 |
|
|
|
| 94 |
michael |
1737 |
#ifdef PATH_MAX |
| 95 |
|
|
#define HYB_PATH_MAX PATH_MAX |
| 96 |
|
|
#else |
| 97 |
|
|
#define HYB_PATH_MAX 4096 |
| 98 |
adx |
30 |
#endif |
| 99 |
michael |
1737 |
|
| 100 |
michael |
1834 |
#if 0 && __GNUC__ |
| 101 |
michael |
1761 |
#define AFP(a,b) __attribute__((format (printf, a, b))) |
| 102 |
michael |
1834 |
#else |
| 103 |
|
|
#define AFP(a,b) |
| 104 |
|
|
#endif |
| 105 |
michael |
1761 |
|
| 106 |
|
|
#endif |