1 | |
---|
2 | /* |
---|
3 | * prototypes.h -- various prototypes |
---|
4 | * |
---|
5 | * $Id: prototypes.h,v 1.1.1.1 1999-02-07 18:14:06 danw Exp $ |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * missing system prototypes |
---|
10 | */ |
---|
11 | #ifndef HAVE_TERMCAP_H |
---|
12 | extern int tgetent (char *bp, char *name); |
---|
13 | extern int tgetnum (char *id); |
---|
14 | extern int tgetflag (char *id); |
---|
15 | extern char *tgetstr (char *id, char **area); |
---|
16 | extern char *tgoto (char *cm, int destcol, int destline); |
---|
17 | extern int tputs (char *cp, int affcnt, int (*outc) (int)); |
---|
18 | #endif |
---|
19 | |
---|
20 | /* |
---|
21 | * prototype from config.h |
---|
22 | */ |
---|
23 | char *etcpath(char *); |
---|
24 | |
---|
25 | /* |
---|
26 | * prototypes from the nmh subroutine library |
---|
27 | */ |
---|
28 | char *add (char *, char *); |
---|
29 | void adios (char *, char *, ...); |
---|
30 | void admonish (char *, char *, ...); |
---|
31 | void advertise (char *, char *, char *, va_list); |
---|
32 | void advise (char *, char *, ...); |
---|
33 | void ambigsw (char *, struct swit *); |
---|
34 | int atooi(char *); |
---|
35 | char **brkstring (char *, char *, char *); |
---|
36 | int check_charset (char *, int); |
---|
37 | void closefds(int); |
---|
38 | char *concat (char *, ...); |
---|
39 | int context_del (char *); |
---|
40 | char *context_find (char *); |
---|
41 | int context_foil (char *); |
---|
42 | void context_read (void); |
---|
43 | void context_replace (char *, char *); |
---|
44 | void context_save (void); |
---|
45 | char *copy (char *, char *); |
---|
46 | char **copyip (char **, char **, int); |
---|
47 | void cpydata (int, int, char *, char *); |
---|
48 | void cpydgst (int, int, char *, char *); |
---|
49 | int decode_rfc2047 (char *, char *); |
---|
50 | void discard (FILE *); |
---|
51 | void done (int); |
---|
52 | int fdcompare (int, int); |
---|
53 | int folder_addmsg (struct msgs **, char *, int, int, int); |
---|
54 | int folder_delmsgs (struct msgs *, int); |
---|
55 | void folder_free (struct msgs *); |
---|
56 | int folder_pack (struct msgs **, int); |
---|
57 | struct msgs *folder_read (char *); |
---|
58 | struct msgs *folder_realloc (struct msgs *, int, int); |
---|
59 | int gans (char *, struct swit *); |
---|
60 | char **getans (char *, struct swit *); |
---|
61 | int getanswer (char *); |
---|
62 | char **getarguments (char *, int, char **, int); |
---|
63 | char *getcpy (char *); |
---|
64 | char *getfolder(int); |
---|
65 | int lkclose(int, char*); |
---|
66 | int lkfclose(FILE *, char *); |
---|
67 | FILE *lkfopen(char *, char *); |
---|
68 | int lkopen(char *, int, mode_t); |
---|
69 | int m_atoi (char *); |
---|
70 | char *m_backup (char *); |
---|
71 | int m_convert (struct msgs *, char *); |
---|
72 | char *m_draft (char *, char *, int, int *); |
---|
73 | void m_eomsbr (int (*)()); |
---|
74 | int m_getfld (int, unsigned char *, unsigned char *, int, FILE *); |
---|
75 | int m_gmprot (void); |
---|
76 | char *m_maildir (char *); |
---|
77 | char *m_mailpath (char *); |
---|
78 | char *m_name (int); |
---|
79 | int m_putenv (char *, char *); |
---|
80 | char *m_scratch (char *, char *); |
---|
81 | char *m_tmpfil (char *); |
---|
82 | void m_unknown(FILE *); |
---|
83 | int makedir (char *); |
---|
84 | char *new_fs (char *, char *, char *); |
---|
85 | char *path(char *, int); |
---|
86 | int peekc(FILE *ib); |
---|
87 | int pidwait (pid_t, int); |
---|
88 | int pidstatus (int, FILE *, char *); |
---|
89 | void print_help (char *, struct swit *, int); |
---|
90 | void print_sw (char *, struct swit *, char *); |
---|
91 | void print_version (char *); |
---|
92 | void push (void); |
---|
93 | char *pwd (void); |
---|
94 | char *r1bindex(char *, int); |
---|
95 | void readconfig (struct node **, FILE *, char *, int); |
---|
96 | int refile (char **, char *); |
---|
97 | int remdir (char *); |
---|
98 | int seq_addmsg (struct msgs *, char *, int, int, int); |
---|
99 | int seq_addsel (struct msgs *, char *, int, int); |
---|
100 | char *seq_bits (struct msgs *); |
---|
101 | int seq_delmsg (struct msgs *, char *, int); |
---|
102 | int seq_delsel (struct msgs *, char *, int, int); |
---|
103 | int seq_getnum (struct msgs *, char *); |
---|
104 | char *seq_list (struct msgs *, char *); |
---|
105 | int seq_nameok (char *); |
---|
106 | void seq_print (struct msgs *, char *); |
---|
107 | void seq_printall (struct msgs *); |
---|
108 | void seq_read (struct msgs *); |
---|
109 | void seq_save (struct msgs *); |
---|
110 | void seq_setcur (struct msgs *, int); |
---|
111 | void seq_setprev (struct msgs *); |
---|
112 | void seq_setunseen (struct msgs *, int); |
---|
113 | int showfile (char **, char *); |
---|
114 | int smatch(char *, struct swit *); |
---|
115 | char *snprintb (char *, size_t, unsigned, char *); |
---|
116 | int ssequal (char *, char *); |
---|
117 | int stringdex (char *, char *); |
---|
118 | char *trimcpy (char *); |
---|
119 | int unputenv (char *); |
---|
120 | int uprf (char *, char *); |
---|
121 | int vfgets (FILE *, char **); |
---|
122 | char *write_charset_8bit (void); |
---|
123 | |
---|
124 | #ifdef RPATHS |
---|
125 | int get_returnpath (char *, int, char *, int); |
---|
126 | #endif |
---|
127 | |
---|
128 | /* |
---|
129 | * prototypes for compatibility functions in library |
---|
130 | */ |
---|
131 | #ifndef HAVE_SNPRINTF |
---|
132 | int snprintf (char *, size_t, const char *, ...); |
---|
133 | int vsnprintf (char *, size_t, const char *, va_list); |
---|
134 | #endif |
---|
135 | |
---|
136 | #ifndef HAVE_STRERROR |
---|
137 | char *strerror (int); |
---|
138 | #endif |
---|
139 | |
---|
140 | |
---|
141 | /* |
---|
142 | * some prototypes for address parsing system |
---|
143 | * (others are in addrsbr.h) |
---|
144 | */ |
---|
145 | char *LocalName(void); |
---|
146 | char *SystemName(void); |
---|
147 | char *OfficialName(char *); |
---|
148 | |
---|
149 | /* |
---|
150 | * prototypes for some routines in uip |
---|
151 | */ |
---|
152 | int annotate (char *, char *, char *, int, int); |
---|
153 | int distout (char *, char *, char *); |
---|
154 | void replout (FILE *, char *, char *, struct msgs *, int, |
---|
155 | int, char *, char *, char *); |
---|
156 | int sendsbr (char **, int, char *, struct stat *, int); |
---|
157 | int what_now (char *, int, int, char *, char *, |
---|
158 | int, struct msgs *, char *, int, char *); |
---|
159 | |
---|