Home | History | Annotate | Line # | Download | only in ftpd
extern.h revision 1.3
      1  1.3    lukem /*	$NetBSD: extern.h,v 1.3 1997/06/14 08:43:28 lukem Exp $	*/
      2  1.2      cgd 
      3  1.1  deraadt /*-
      4  1.1  deraadt  * Copyright (c) 1992, 1993
      5  1.1  deraadt  *	The Regents of the University of California.  All rights reserved.
      6  1.1  deraadt  *
      7  1.1  deraadt  * Redistribution and use in source and binary forms, with or without
      8  1.1  deraadt  * modification, are permitted provided that the following conditions
      9  1.1  deraadt  * are met:
     10  1.1  deraadt  * 1. Redistributions of source code must retain the above copyright
     11  1.1  deraadt  *    notice, this list of conditions and the following disclaimer.
     12  1.1  deraadt  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1  deraadt  *    notice, this list of conditions and the following disclaimer in the
     14  1.1  deraadt  *    documentation and/or other materials provided with the distribution.
     15  1.1  deraadt  * 3. All advertising materials mentioning features or use of this software
     16  1.1  deraadt  *    must display the following acknowledgement:
     17  1.1  deraadt  *	This product includes software developed by the University of
     18  1.1  deraadt  *	California, Berkeley and its contributors.
     19  1.1  deraadt  * 4. Neither the name of the University nor the names of its contributors
     20  1.1  deraadt  *    may be used to endorse or promote products derived from this software
     21  1.1  deraadt  *    without specific prior written permission.
     22  1.1  deraadt  *
     23  1.1  deraadt  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     24  1.1  deraadt  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     25  1.1  deraadt  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     26  1.1  deraadt  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     27  1.1  deraadt  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     28  1.1  deraadt  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     29  1.1  deraadt  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     30  1.1  deraadt  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     31  1.1  deraadt  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     32  1.1  deraadt  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     33  1.1  deraadt  * SUCH DAMAGE.
     34  1.1  deraadt  *
     35  1.2      cgd  *	@(#)extern.h	8.2 (Berkeley) 4/4/94
     36  1.1  deraadt  */
     37  1.1  deraadt 
     38  1.1  deraadt void	blkfree __P((char **));
     39  1.1  deraadt char  **copyblk __P((char **));
     40  1.1  deraadt void	cwd __P((char *));
     41  1.1  deraadt void	delete __P((char *));
     42  1.3    lukem char   *do_conversion __P((const char *));
     43  1.1  deraadt void	dologout __P((int));
     44  1.1  deraadt void	fatal __P((char *));
     45  1.1  deraadt int	ftpd_pclose __P((FILE *));
     46  1.3    lukem FILE   *ftpd_popen __P((char *, char *, int));
     47  1.1  deraadt char   *getline __P((char *, int, FILE *));
     48  1.1  deraadt void	logwtmp __P((char *, char *, char *));
     49  1.1  deraadt void	lreply __P((int, const char *, ...));
     50  1.1  deraadt void	makedir __P((char *));
     51  1.1  deraadt void	nack __P((char *));
     52  1.3    lukem void	parse_conf __P((const char *));
     53  1.1  deraadt void	pass __P((char *));
     54  1.1  deraadt void	passive __P((void));
     55  1.1  deraadt void	perror_reply __P((int, char *));
     56  1.1  deraadt void	pwd __P((void));
     57  1.1  deraadt void	removedir __P((char *));
     58  1.1  deraadt void	renamecmd __P((char *, char *));
     59  1.1  deraadt char   *renamefrom __P((char *));
     60  1.1  deraadt void	reply __P((int, const char *, ...));
     61  1.1  deraadt void	retrieve __P((char *, char *));
     62  1.1  deraadt void	send_file_list __P((char *));
     63  1.3    lukem void	show_chdir_messages __P((int));
     64  1.1  deraadt void	statcmd __P((void));
     65  1.1  deraadt void	statfilecmd __P((char *));
     66  1.1  deraadt void	store __P((char *, char *, int));
     67  1.1  deraadt void	upper __P((char *));
     68  1.1  deraadt void	user __P((char *));
     69  1.1  deraadt void	yyerror __P((char *));
     70  1.3    lukem 
     71  1.3    lukem 
     72  1.3    lukem #define CLASS_CHROOT	"chroot"
     73  1.3    lukem #define CLASS_GUEST	"guest"
     74  1.3    lukem #define CLASS_REAL	"real"
     75  1.3    lukem 
     76  1.3    lukem struct ftpconv {
     77  1.3    lukem 	struct ftpconv	*next;
     78  1.3    lukem 	const char	*suffix;	/* Suffix of requested name */
     79  1.3    lukem 	const char	*types;		/* Valid file types */
     80  1.3    lukem 	const char	*disable;	/* File to disable conversions */
     81  1.3    lukem 	const char	*command;	/* Command to do the conversion */
     82  1.3    lukem };
     83  1.3    lukem 
     84  1.3    lukem struct ftpclass {
     85  1.3    lukem 	const char	*classname;	/* Current class */
     86  1.3    lukem 	struct ftpconv 	*conversions;	/* List of conversions */
     87  1.3    lukem 	const char	*display;	/* Files to display upon chdir */
     88  1.3    lukem 	unsigned int	 maxtimeout;	/* Maximum permitted timeout */
     89  1.3    lukem 	int		 modify;	/* Allow dele, mkd, rmd, umask, chmod */
     90  1.3    lukem 	const char	*notify;	/* Files to notify about upon chdir */
     91  1.3    lukem 	unsigned int	 timeout;	/* Default timeout */
     92  1.3    lukem 	mode_t		 umask;		/* Umask to use */
     93  1.3    lukem };
     94