| 1 |
/* |
| 2 |
* ircd-hybrid: an advanced, lightweight 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 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 |
| 20 |
* USA |
| 21 |
* |
| 22 |
* $Id$ |
| 23 |
* |
| 24 |
*/ |
| 25 |
|
| 26 |
#ifndef INCLUDED_stdinc_h /* prevent multiple #includes */ |
| 27 |
#define INCLUDED_stdinc_h |
| 28 |
|
| 29 |
#include "config.h" |
| 30 |
|
| 31 |
#include "defaults.h" |
| 32 |
|
| 33 |
#include <stddef.h> |
| 34 |
#include <stdlib.h> |
| 35 |
#include <string.h> |
| 36 |
#include <stdint.h> |
| 37 |
#include <errno.h> |
| 38 |
#include <sys/types.h> |
| 39 |
|
| 40 |
#ifdef HAVE_CRYPT_H |
| 41 |
#include <crypt.h> |
| 42 |
#endif |
| 43 |
|
| 44 |
#ifdef HAVE_LIBGEOIP |
| 45 |
#include <GeoIP.h> |
| 46 |
#endif |
| 47 |
|
| 48 |
#include <stdio.h> |
| 49 |
#include <assert.h> |
| 50 |
#include <time.h> |
| 51 |
#include <fcntl.h> |
| 52 |
|
| 53 |
#include <stdarg.h> |
| 54 |
#include <signal.h> |
| 55 |
#include <ctype.h> |
| 56 |
|
| 57 |
#include <dirent.h> |
| 58 |
#include <netdb.h> |
| 59 |
#include <sys/socket.h> |
| 60 |
#include <netinet/in.h> |
| 61 |
#include <arpa/inet.h> |
| 62 |
#include <sys/time.h> |
| 63 |
#include <sys/file.h> |
| 64 |
|
| 65 |
#include <limits.h> |
| 66 |
#include <inttypes.h> |
| 67 |
|
| 68 |
#ifdef HAVE_UNISTD_H |
| 69 |
#include <unistd.h> |
| 70 |
#endif |
| 71 |
|
| 72 |
#include <sys/resource.h> |
| 73 |
#include <sys/stat.h> |
| 74 |
|
| 75 |
#ifdef HAVE_SYS_WAIT_H |
| 76 |
#include <sys/wait.h> |
| 77 |
#endif |
| 78 |
|
| 79 |
#ifdef HAVE_SYS_PARAM_H |
| 80 |
#include <sys/param.h> |
| 81 |
#endif |
| 82 |
|
| 83 |
#ifdef PATH_MAX |
| 84 |
#define HYB_PATH_MAX PATH_MAX |
| 85 |
#else |
| 86 |
#define HYB_PATH_MAX 4096 |
| 87 |
#endif |
| 88 |
|
| 89 |
#if 0 && __GNUC__ |
| 90 |
#define AFP(a,b) __attribute__((format (printf, a, b))) |
| 91 |
#else |
| 92 |
#define AFP(a,b) |
| 93 |
#endif |
| 94 |
|
| 95 |
#endif |