vm: fix potential null deref
[minix.git] / commands / ftp101 / ftp.h
blob251b1298313b1bdf5775defe7693361681b646b7
1 /* ftp.h Copyright 1992-2000 by Michael Temari All Rights Reserved
3 * This file is part of ftp.
6 * 01/25/96 Initial Release Michael Temari, <Michael@TemWare.Com>
7 */
9 extern int linkopen;
10 extern int loggedin;
11 extern int type;
12 extern int format;
13 extern int mode;
14 extern int structure;
15 extern int passive;
16 extern int atty;
18 #define NUMARGS 10
19 extern int cmdargc;
20 extern char *cmdargv[NUMARGS];
22 extern int printreply;
23 extern char reply[1024];
25 #define RETR 0
26 #define STOR 1
28 #define TYPE_A 0
29 #define TYPE_I 1
31 #define MODE_S 0
32 #define MODE_B 1
34 #define MODE_B_EOF 64
36 int readline(char *prompt, char *buff, int len);
37 int DOgetreply(void);
38 int DOcmdcheck(void);
39 int DOcommand(char *ftpcommand, char *ftparg);