1b528cefcSMark Murray /* 2*ae771770SStanislav Sedov * Copyright (c) 1998 - 2000 Kungliga Tekniska Högskolan 3b528cefcSMark Murray * (Royal Institute of Technology, Stockholm, Sweden). 4b528cefcSMark Murray * All rights reserved. 5b528cefcSMark Murray * 6b528cefcSMark Murray * Redistribution and use in source and binary forms, with or without 7b528cefcSMark Murray * modification, are permitted provided that the following conditions 8b528cefcSMark Murray * are met: 9b528cefcSMark Murray * 10b528cefcSMark Murray * 1. Redistributions of source code must retain the above copyright 11b528cefcSMark Murray * notice, this list of conditions and the following disclaimer. 12b528cefcSMark Murray * 13b528cefcSMark Murray * 2. Redistributions in binary form must reproduce the above copyright 14b528cefcSMark Murray * notice, this list of conditions and the following disclaimer in the 15b528cefcSMark Murray * documentation and/or other materials provided with the distribution. 16b528cefcSMark Murray * 17b528cefcSMark Murray * 3. Neither the name of the Institute nor the names of its contributors 18b528cefcSMark Murray * may be used to endorse or promote products derived from this software 19b528cefcSMark Murray * without specific prior written permission. 20b528cefcSMark Murray * 21b528cefcSMark Murray * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 22b528cefcSMark Murray * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23b528cefcSMark Murray * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24b528cefcSMark Murray * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 25b528cefcSMark Murray * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26b528cefcSMark Murray * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27b528cefcSMark Murray * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28b528cefcSMark Murray * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29b528cefcSMark Murray * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30b528cefcSMark Murray * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31b528cefcSMark Murray * SUCH DAMAGE. 32b528cefcSMark Murray */ 33b528cefcSMark Murray 34*ae771770SStanislav Sedov /* $Id$ */ 35b528cefcSMark Murray 36b528cefcSMark Murray #ifndef __ftpd_locl_h__ 37b528cefcSMark Murray #define __ftpd_locl_h__ 38b528cefcSMark Murray 39b528cefcSMark Murray #ifdef HAVE_CONFIG_H 40b528cefcSMark Murray #include <config.h> 41b528cefcSMark Murray #endif 42b528cefcSMark Murray 43b528cefcSMark Murray /* 44b528cefcSMark Murray * FTP server. 45b528cefcSMark Murray */ 46b528cefcSMark Murray #ifdef HAVE_SYS_TYPES_H 47b528cefcSMark Murray #include <sys/types.h> 48b528cefcSMark Murray #endif 49b528cefcSMark Murray #ifdef HAVE_SYS_PARAM_H 50b528cefcSMark Murray #include <sys/param.h> 51b528cefcSMark Murray #endif 52b528cefcSMark Murray #ifdef HAVE_SYS_STAT_H 53b528cefcSMark Murray #include <sys/stat.h> 54b528cefcSMark Murray #endif 55b528cefcSMark Murray #ifdef HAVE_SYS_SOCKET_H 56b528cefcSMark Murray #include <sys/socket.h> 57b528cefcSMark Murray #endif 58b528cefcSMark Murray #if defined(HAVE_SYS_IOCTL_H) && SunOS != 40 59b528cefcSMark Murray #include <sys/ioctl.h> 60b528cefcSMark Murray #endif 61b528cefcSMark Murray #ifdef HAVE_SYS_IOCCOM_H 62b528cefcSMark Murray #include <sys/ioccom.h> 63b528cefcSMark Murray #endif 64b528cefcSMark Murray #ifdef TIME_WITH_SYS_TIME 65b528cefcSMark Murray #include <sys/time.h> 66b528cefcSMark Murray #include <time.h> 67b528cefcSMark Murray #elif defined(HAVE_SYS_TIME_H) 68b528cefcSMark Murray #include <sys/time.h> 69b528cefcSMark Murray #else 70b528cefcSMark Murray #include <time.h> 71b528cefcSMark Murray #endif 72b528cefcSMark Murray #ifdef HAVE_SYS_RESOURCE_H 73b528cefcSMark Murray #include <sys/resource.h> 74b528cefcSMark Murray #endif 75b528cefcSMark Murray #ifdef HAVE_SYS_WAIT_H 76b528cefcSMark Murray #include <sys/wait.h> 77b528cefcSMark Murray #endif 78b528cefcSMark Murray 79b528cefcSMark Murray #ifdef HAVE_NETINET_IN_H 80b528cefcSMark Murray #include <netinet/in.h> 81b528cefcSMark Murray #endif 82b528cefcSMark Murray #ifdef HAVE_NETINET_IN_SYSTM_H 83b528cefcSMark Murray #include <netinet/in_systm.h> 84b528cefcSMark Murray #endif 85b528cefcSMark Murray #ifdef HAVE_NETINET_IP_H 86b528cefcSMark Murray #include <netinet/ip.h> 87b528cefcSMark Murray #endif 88b528cefcSMark Murray 89b528cefcSMark Murray #ifdef HAVE_SYS_MMAN_H 90b528cefcSMark Murray #include <sys/mman.h> 91b528cefcSMark Murray #endif 92b528cefcSMark Murray 93b528cefcSMark Murray #include <arpa/ftp.h> 94b528cefcSMark Murray #ifdef HAVE_ARPA_INET_H 95b528cefcSMark Murray #include <arpa/inet.h> 96b528cefcSMark Murray #endif 97b528cefcSMark Murray #ifdef HAVE_ARPA_TELNET_H 98b528cefcSMark Murray #include <arpa/telnet.h> 99b528cefcSMark Murray #endif 100b528cefcSMark Murray 101b528cefcSMark Murray #include <ctype.h> 102b528cefcSMark Murray #ifdef HAVE_DIRENT_H 103b528cefcSMark Murray #include <dirent.h> 104b528cefcSMark Murray #endif 105b528cefcSMark Murray #include <errno.h> 106b528cefcSMark Murray #ifdef HAVE_FCNTL_H 107b528cefcSMark Murray #include <fcntl.h> 108b528cefcSMark Murray #endif 109b528cefcSMark Murray #include <glob.h> 110b528cefcSMark Murray #include <limits.h> 111b528cefcSMark Murray #ifdef HAVE_PWD_H 112b528cefcSMark Murray #include <pwd.h> 113b528cefcSMark Murray #endif 114b528cefcSMark Murray #include <signal.h> 115b528cefcSMark Murray #include <stdio.h> 116b528cefcSMark Murray #include <stdlib.h> 117b528cefcSMark Murray #include <stdarg.h> 118b528cefcSMark Murray #include <string.h> 119b528cefcSMark Murray #ifdef HAVE_SYSLOG_H 120b528cefcSMark Murray #include <syslog.h> 121b528cefcSMark Murray #endif 122b528cefcSMark Murray #include <time.h> 123b528cefcSMark Murray #ifdef HAVE_UNISTD_H 124b528cefcSMark Murray #include <unistd.h> 125b528cefcSMark Murray #endif 126b528cefcSMark Murray #ifdef HAVE_GRP_H 127b528cefcSMark Murray #include <grp.h> 128b528cefcSMark Murray #endif 129b528cefcSMark Murray #include <fnmatch.h> 130b528cefcSMark Murray 131b528cefcSMark Murray #ifdef HAVE_BSD_BSD_H 132b528cefcSMark Murray #include <bsd/bsd.h> 133b528cefcSMark Murray #endif 134b528cefcSMark Murray 135b528cefcSMark Murray #include <err.h> 1365e9cd1aeSAssar Westerlund #include "roken.h" 137b528cefcSMark Murray 138b528cefcSMark Murray #include "pathnames.h" 139b528cefcSMark Murray #include "extern.h" 140b528cefcSMark Murray #include "common.h" 141b528cefcSMark Murray 142b528cefcSMark Murray #include "security.h" 143b528cefcSMark Murray 1445e9cd1aeSAssar Westerlund #ifdef KRB5 1455e9cd1aeSAssar Westerlund #include <krb5.h> 1465e9cd1aeSAssar Westerlund #endif /* KRB5 */ 147b528cefcSMark Murray 148*ae771770SStanislav Sedov #if defined(KRB5) 149b528cefcSMark Murray #include <kafs.h> 150b528cefcSMark Murray #endif 151b528cefcSMark Murray 152b528cefcSMark Murray #ifdef OTP 153b528cefcSMark Murray #include <otp.h> 154b528cefcSMark Murray #endif 155b528cefcSMark Murray 156b528cefcSMark Murray #ifdef SOCKS 157b528cefcSMark Murray #include <socks.h> 158b528cefcSMark Murray extern int LIBPREFIX(fclose) (FILE *); 159b528cefcSMark Murray #endif 160b528cefcSMark Murray 161b528cefcSMark Murray /* SunOS doesn't have any declaration of fclose */ 162b528cefcSMark Murray 163b528cefcSMark Murray int fclose(FILE *stream); 164b528cefcSMark Murray 165c19800e8SDoug Rabson int yyparse(void); 166b528cefcSMark Murray 167b528cefcSMark Murray #ifndef LOG_FTP 168b528cefcSMark Murray #define LOG_FTP LOG_DAEMON 169b528cefcSMark Murray #endif 170b528cefcSMark Murray 171b528cefcSMark Murray #endif /* __ftpd_locl_h__ */ 172