Path: blob/main/crypto/heimdal/appl/ftp/ftpd/ftpd_locl.h
34889 views
/*1* Copyright (c) 1998 - 2000 Kungliga Tekniska Högskolan2* (Royal Institute of Technology, Stockholm, Sweden).3* All rights reserved.4*5* Redistribution and use in source and binary forms, with or without6* modification, are permitted provided that the following conditions7* are met:8*9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11*12* 2. Redistributions in binary form must reproduce the above copyright13* notice, this list of conditions and the following disclaimer in the14* documentation and/or other materials provided with the distribution.15*16* 3. Neither the name of the Institute nor the names of its contributors17* may be used to endorse or promote products derived from this software18* without specific prior written permission.19*20* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND21* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE22* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE23* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE24* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL25* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS26* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)27* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT28* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY29* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF30* SUCH DAMAGE.31*/3233/* $Id$ */3435#ifndef __ftpd_locl_h__36#define __ftpd_locl_h__3738#ifdef HAVE_CONFIG_H39#include <config.h>40#endif4142/*43* FTP server.44*/45#ifdef HAVE_SYS_TYPES_H46#include <sys/types.h>47#endif48#ifdef HAVE_SYS_PARAM_H49#include <sys/param.h>50#endif51#ifdef HAVE_SYS_STAT_H52#include <sys/stat.h>53#endif54#ifdef HAVE_SYS_SOCKET_H55#include <sys/socket.h>56#endif57#if defined(HAVE_SYS_IOCTL_H) && SunOS != 4058#include <sys/ioctl.h>59#endif60#ifdef HAVE_SYS_IOCCOM_H61#include <sys/ioccom.h>62#endif63#ifdef TIME_WITH_SYS_TIME64#include <sys/time.h>65#include <time.h>66#elif defined(HAVE_SYS_TIME_H)67#include <sys/time.h>68#else69#include <time.h>70#endif71#ifdef HAVE_SYS_RESOURCE_H72#include <sys/resource.h>73#endif74#ifdef HAVE_SYS_WAIT_H75#include <sys/wait.h>76#endif7778#ifdef HAVE_NETINET_IN_H79#include <netinet/in.h>80#endif81#ifdef HAVE_NETINET_IN_SYSTM_H82#include <netinet/in_systm.h>83#endif84#ifdef HAVE_NETINET_IP_H85#include <netinet/ip.h>86#endif8788#ifdef HAVE_SYS_MMAN_H89#include <sys/mman.h>90#endif9192#include <arpa/ftp.h>93#ifdef HAVE_ARPA_INET_H94#include <arpa/inet.h>95#endif96#ifdef HAVE_ARPA_TELNET_H97#include <arpa/telnet.h>98#endif99100#include <ctype.h>101#ifdef HAVE_DIRENT_H102#include <dirent.h>103#endif104#include <errno.h>105#ifdef HAVE_FCNTL_H106#include <fcntl.h>107#endif108#include <glob.h>109#include <limits.h>110#ifdef HAVE_PWD_H111#include <pwd.h>112#endif113#include <signal.h>114#include <stdio.h>115#include <stdlib.h>116#include <stdarg.h>117#include <string.h>118#ifdef HAVE_SYSLOG_H119#include <syslog.h>120#endif121#include <time.h>122#ifdef HAVE_UNISTD_H123#include <unistd.h>124#endif125#ifdef HAVE_GRP_H126#include <grp.h>127#endif128#include <fnmatch.h>129130#ifdef HAVE_BSD_BSD_H131#include <bsd/bsd.h>132#endif133134#include <err.h>135#include "roken.h"136137#include "pathnames.h"138#include "extern.h"139#include "common.h"140141#include "security.h"142143#ifdef KRB5144#include <krb5.h>145#endif /* KRB5 */146147#if defined(KRB5)148#include <kafs.h>149#endif150151#ifdef OTP152#include <otp.h>153#endif154155#ifdef SOCKS156#include <socks.h>157extern int LIBPREFIX(fclose) (FILE *);158#endif159160/* SunOS doesn't have any declaration of fclose */161162int fclose(FILE *stream);163164int yyparse(void);165166#ifndef LOG_FTP167#define LOG_FTP LOG_DAEMON168#endif169170#endif /* __ftpd_locl_h__ */171172173