Path: blob/main/crypto/heimdal/appl/ftp/ftpd/extern.h
34907 views
/*-1* Copyright (c) 1992, 19932* The Regents of the University of California. All rights reserved.3*4* Redistribution and use in source and binary forms, with or without5* modification, are permitted provided that the following conditions6* are met:7* 1. Redistributions of source code must retain the above copyright8* notice, this list of conditions and the following disclaimer.9* 2. Redistributions in binary form must reproduce the above copyright10* notice, this list of conditions and the following disclaimer in the11* documentation and/or other materials provided with the distribution.12* 3. All advertising materials mentioning features or use of this software13* must display the following acknowledgement:14* This product includes software developed by the University of15* California, Berkeley and its contributors.16* 4. Neither the name of the University 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 REGENTS 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 REGENTS 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*32* @(#)extern.h 8.2 (Berkeley) 4/4/9433*/3435#ifndef _EXTERN_H_36#define _EXTERN_H_3738#ifdef HAVE_SYS_TYPES_H39#include <sys/types.h>40#endif41#ifdef HAVE_NETINET_IN_H42#include <netinet/in.h>43#endif44#ifdef HAVE_NETDB_H45#include <netdb.h>46#endif4748#include <stdio.h>49#include <stdarg.h>50#ifdef HAVE_PWD_H51#include <pwd.h>52#endif5354#ifdef HAVE_LIMITS_H55#include <limits.h>56#endif5758#ifndef NBBY59#define NBBY CHAR_BIT60#endif6162void abor(void);63void blkfree(char **);64char **copyblk(char **);65void cwd(const char *);66void do_delete(char *);67void dologout(int);68void eprt(char *);69void epsv(char *);70void fatal(char *);71int filename_check(char *);72int ftpd_pclose(FILE *);73FILE *ftpd_popen(char *, char *, int, int);74char *ftpd_getline(char *, int);75void ftpd_logwtmp(char *, char *, char *);76void lreply(int, const char *, ...)77__attribute__ ((format (printf, 2, 3)));78void makedir(char *);79void nack(char *);80void nreply(const char *, ...)81__attribute__ ((format (printf, 1, 2)));82void pass(char *);83void pasv(void);84void perror_reply(int, const char *);85void pwd(void);86void removedir(char *);87void renamecmd(char *, char *);88char *renamefrom(char *);89void reply(int, const char *, ...)90__attribute__ ((format (printf, 2, 3)));91void retrieve(const char *, char *);92void send_file_list(char *);93void setproctitle(const char *, ...)94__attribute__ ((format (printf, 1, 2)));95void statcmd(void);96void statfilecmd(char *);97void do_store(char *, char *, int);98void upper(char *);99void user(char *);100void yyerror(char *);101102void list_file(char*);103104void kauth(char *, char*);105void klist(void);106void cond_kdestroy(void);107void kdestroy(void);108void krbtkfile(const char *tkfile);109void afslog(const char *, int);110void afsunlog(void);111112extern int do_destroy_tickets;113extern char *k5ccname;114115int find(char *);116117int builtin_ls(FILE*, const char*);118119int do_login(int code, char *passwd);120int klogin(char *name, char *password);121122const char *ftp_rooted(const char *path);123124extern struct sockaddr *ctrl_addr, *his_addr;125extern char hostname[];126127extern struct sockaddr *data_dest;128extern int logged_in;129extern struct passwd *pw;130extern int guest;131extern int dochroot;132extern int logging;133extern int type;134extern off_t file_size;135extern off_t byte_count;136extern int ccc_passed;137138extern int form;139extern int debug;140extern int ftpd_timeout;141extern int maxtimeout;142extern int pdata;143extern char hostname[], remotehost[];144extern char proctitle[];145extern int usedefault;146extern char tmpline[];147extern int paranoid;148149#endif /* _EXTERN_H_ */150151152