1 /* 2 * ProFTPD - FTP server daemon 3 * Copyright (c) 1997, 1998 Public Flood Software 4 * Copyright (c) 1999, 2000 MacGyver aka Habeeb J. Dihu <macgyver@tos.net> 5 * Copyright (c) 2001-2017 The ProFTPD Project team 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, Suite 500, Boston, MA 02110-1335, USA. 20 * 21 * As a special exemption, Public Flood Software/MacGyver aka Habeeb J. Dihu 22 * and other respective copyright holders give permission to link this program 23 * with OpenSSL, and distribute the resulting executable, without including 24 * the source code for OpenSSL in the source distribution. 25 */ 26 27 /* Generic configuration and standard header file includes. */ 28 29 #ifndef PR_CONF_H 30 #define PR_CONF_H 31 32 #include "os.h" 33 #include "version.h" 34 35 /* The tunable options header needs to be included after all the system headers, 36 * so that limits are picked up properly. 37 */ 38 #include "options.h" 39 40 #if defined(HAVE_LLU) && SIZEOF_OFF_T == 8 41 # define PR_LU "llu" 42 # define pr_off_t unsigned long long 43 #else 44 # define PR_LU "lu" 45 # define pr_off_t unsigned long 46 #endif 47 48 /******************************************************************** 49 * This is NOT the user configurable section. Look in options.h 50 * for tunable parameters. 51 ********************************************************************/ 52 53 #ifndef __PROFTPD_SUPPORT_LIBRARY 54 55 /* This section is only needed for modules and the core source files, 56 * not for the support library. 57 */ 58 59 #include "pool.h" 60 #include "str.h" 61 #include "ascii.h" 62 #include "table.h" 63 #include "signals.h" 64 #include "proftpd.h" 65 #include "support.h" 66 #include "str.h" 67 #include "sets.h" 68 #include "configdb.h" 69 #include "dirtree.h" 70 #include "expr.h" 71 #include "rlimit.h" 72 #include "filter.h" 73 #include "modules.h" 74 #include "netio.h" 75 #include "regexp.h" 76 #include "stash.h" 77 #include "auth.h" 78 #include "response.h" 79 #include "timers.h" 80 #include "inet.h" 81 #include "child.h" 82 #include "netaddr.h" 83 #include "netacl.h" 84 #include "class.h" 85 #include "cmd.h" 86 #include "bindings.h" 87 #include "help.h" 88 #include "feat.h" 89 #include "ftp.h" 90 #include "log.h" 91 #include "parser.h" 92 #include "xferlog.h" 93 #include "scoreboard.h" 94 #include "data.h" 95 #include "display.h" 96 #include "libsupp.h" 97 #include "fsio.h" 98 #include "mkhome.h" 99 #include "ctrls.h" 100 #include "session.h" 101 #include "event.h" 102 #include "var.h" 103 #include "throttle.h" 104 #include "trace.h" 105 #include "encode.h" 106 #include "compat.h" 107 #include "proctitle.h" 108 #include "pidfile.h" 109 #include "env.h" 110 #include "random.h" 111 #include "pr-syslog.h" 112 #include "json.h" 113 #include "memcache.h" 114 #include "redis.h" 115 116 # ifdef HAVE_SETPASSENT 117 # define setpwent() setpassent(1) 118 # endif /* HAVE_SETPASSENT */ 119 120 # ifdef HAVE_SETGROUPENT 121 # define setgrent() setgroupent(1) 122 # endif /* HAVE_SETGROUPENT */ 123 124 /* Define a buffer size to use for responses, making sure it is big enough 125 * to handle large path names (e.g. for MKD responses). 126 */ 127 #define PR_RESPONSE_BUFFER_SIZE (PR_TUNABLE_BUFFER_SIZE + PR_TUNABLE_PATH_MAX) 128 129 #endif /* __PROFTPD_SUPPORT_LIBRARY */ 130 131 #ifdef WITH_DMALLOC 132 # include <dmalloc.h> 133 #endif /* WITH_DMALLOC */ 134 135 #endif /* PR_CONF_H */ 136