summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncftp/main.h
blob: 4e3bba68a14c303ee9d5152a74284ed429427948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* main.h */

#ifndef _main_h_
#define _main_h_

struct userinfo {
	str32   username;
	string  homedir;
	string  shell;
	string  hostname;
	int		uid;
};

void intr SIG_PARAMS;
int getuserinfo(void);
int init_arrays(void);
void init_transfer_buffer(void);
void init_prompt(void);
void lostpeer SIG_PARAMS;
int cmdscanner(int top);
char *strprompt(void);
void makeargv(void);
char *slurpstring(void);
int help(int argc, char **argv);
void trim_log(void);
int CheckNewMail(void);

#ifdef CURSES
	void tcap_put(char *cap);
	void termcap_init(void);
	int termcap_get(char **dest, char *attr);
#	ifndef TERMH /* <term.h> would take care of this. */
#		ifdef NO_CONST
			extern char *tgetstr(char *, char **);
#		else
			extern char *tgetstr(const char *, char **);
#		endif
#	endif	/* TERMH */
#endif	/* CURSES */

/* Should be in a 'tips.h,' but... */
void PrintTip(void);

#endif	/* _main_h_ */

OpenPOWER on IntegriCloud