source: TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/daemon_proto.h @ 1428

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/daemon_proto.h@1428
Revision 1428, 5.1 KB checked in by spascoe, 13 years ago (diff)

Several more includes missing. Stand alone daemon/client are now built
with more warnings displayed.

Line 
1/*
2 * includes/daemon_proto.h
3 * Copyright (C) 1999, 2000, 2001, 2002 IN2P3, CNRS
4 * bbftp@in2p3.fr
5 * http://doc.in2p3.fr/bbftp
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 */ 
21
22/**************************************************************************** 
23 
24 daemon_proto.h v 2.1.0 2001/03/21  - Header creation
25
26*****************************************************************************/
27
28/*
29** Includes declaring argument types.
30*/
31#include <sys/types.h>
32#include <utime.h>
33
34/*
35** Prototype for utilities
36*/
37void checkfromwhere() ;
38int checkprotocol() ;
39void clean_child() ;
40void exit_clean() ;
41int bbftpd_checkendchild(int status) ;
42void strip_trailing_slashes (char *path) ;
43void free_all_var() ;
44/*
45** Prototypes for message routines
46*/
47int discardmessage(int sock,int msglen,int to) ;
48int readmessage(int sock,char *buffer,int msglen,int to) ;
49void reply(int n, char *str) ;
50int writemessage(int sock,char *buffer,int msglen,int to) ;
51/*
52** Prototypes for signal routines
53*/
54void bbftpd_sigchld(int sig) ;
55void bbftpd_sighup( int sig) ;
56void bbftpd_sigterm(int sig) ;
57int bbftpd_checkendchild(int status) ;
58int bbftpd_setsignals() ;
59int bbftpd_blockallsignals() ;
60/*
61** Prototype for sockets
62*/
63
64/*
65** Prototype for global private authentication routines
66*/
67int bbftpd_private_receive_connection(int msglen) ;
68int bbftpd_private_send(char *buffertosend, int buffertosendlength, char *logmessage) ;
69int bbftpd_private_recv(char *buffertorecv, int lengthtorecv, char *logmessage) ;
70/*
71** Prototype for user private authentication routines
72*/
73int bbftpd_private_auth(char *logmessage) ;
74int bbftpd_private_authz_control(int msgcode, int transferoption, char *path, char *logmessage);
75int bbftpd_private_authz_store(char *path, char *logmessage);
76int bbftpd_private_authz_retr(char *path, char *logmessage);
77/*
78** Prototype for retr routines
79*/
80int bbftpd_retrcheckfile(char *filename,char *logmessage) ;
81int bbftpd_retrlistdir(char *pattern,char **filelist,int *filelistlen,char *logmessage) ;
82int bbftpd_retrtransferfile(char *filename,int simulation,char *logmessage) ;
83
84int bbftpd_retrcheckfile_rfio(char *filename,char *logmessage) ;
85int bbftpd_retrlistdir_rfio(char *pattern,char **filelist,int *filelistlen,char *logmessage) ;
86int bbftpd_retrtransferfile_rfio(char *filename,int simulation,char *logmessage) ;
87/*
88** Prototype for store routines
89*/
90int bbftpd_storecheckoptions(char *logmessage) ;
91int bbftpd_storechmod(char *filename,int mode,char *logmessage) ;
92int bbftpd_storeclosecastfile(char *filename,char *logmessage) ;
93int bbftpd_storecreatefile(char *filename, char *logmessage) ;
94int bbftpd_storemkdir(char *dirname,char *logmessage,int recursif) ;
95int bbftpd_storerename(char *newfilename,char *oldfilename,char *logmessage) ;
96int bbftpd_storetransferfile(char *filename,int simulation,char *logmessage) ;
97int bbftpd_storeunlink(char *filename) ;
98int bbftpd_storeutime(char *filename,struct utimbuf *ftime,char *logmessage) ;
99
100int bbftpd_storecheckoptions_rfio(char *logmessage) ;
101int bbftpd_storechmod_rfio(char *filename,int mode,char *logmessage) ;
102int bbftpd_storeclosecastfile_rfio(char *filename,char *logmessage) ;
103int bbftpd_storecreatefile_rfio(char *filename, char *logmessage) ;
104int bbftpd_storemkdir_rfio(char *dirname,char *logmessage,int recursif) ;
105int bbftpd_storerename_rfio(char *newfilename,char *oldfilename,char *logmessage) ;
106int bbftpd_storetransferfile_rfio(char *filename,int simulation,char *logmessage) ;
107int bbftpd_storeunlink_rfio(char *filename) ;
108/*
109** Prototype for mains routines
110*/
111int bbftpd_cd(int sock,int msglen) ;
112int bbftpd_list(char *pattern,char *logmessage) ;
113int bbftpd_mkdir(int sock,int msglen) ;
114int bbftpd_readcontrol(int msgcode,int msglen) ;
115
116/*
117** Prototypes missing from v3.2.0 distribution
118*/
119#ifdef NDG_PYTHON_EMBED
120int do_daemon(int argc, char **argv, char **envp);
121#else
122void do_daemon(int argc,char **argv,char **envp);
123#endif
124void sendcrypt(void);
125int set_signals_v1(void);
126int readcontrol(int msgcode,int msglen);
127int writemessage(int sock,char *buffer,int msglen,int to);
128int decodersapass(char *buffer, char *username, char *password);
129int bbftpd_rm(int sock,int msglen);
130int bbftpd_stat(int sock,int msglen);
131int bbftpd_statfs(int sock,int msglen);
132int bbftpd_getdatasock(int nbsock);
133int bbftpd_createreceivesocket(int portnumber,char *logmessage);
134int storeafile(int code);
135int sendafile(int code);
136int createadir(int code, int msglen);
137int changetodir (int code, int msglen);
138int sendlist (int code, int msglen);
139int createreceivesock(int port, int socknum, char *logmessage);
140
Note: See TracBrowser for help on using the repository browser.