2 ** prototypes.h -- various prototypes
6 ** missing system prototypes
9 extern int tgetent(char *bp, char *name);
10 extern int tgetnum(char *id);
11 extern int tgetflag(char *id);
12 extern char *tgetstr(char *id, char **area);
13 extern char *tgoto(char *cm, int destcol, int destline);
14 extern int tputs(char *cp, int affcnt, int (*outc) (int));
18 ** prototype from config.h
20 char *etcpath(char *);
23 ** prototypes from the nmh subroutine library
25 void adios(int, char *, char *, ...) NORETURN;
26 void admonish(char *, char *, ...);
27 void advertise(char *, char *, char *, va_list);
28 void advise(char *, char *, ...);
29 void ambigsw(char *, struct swit *);
30 char **brkstring(char *, char *, char *);
31 int is_native_charset(char *);
32 char *concat(char *, ...);
33 int context_del(char *);
34 char *context_find(char *);
35 void context_read(void);
36 void context_replace(char *, char *);
37 void context_save(void);
38 void cpydata(int, int, char *, char *);
39 void cpydgst(int, int, char *, char *);
40 int decode_rfc2047(char *, char *, size_t);
41 int default_done(int);
42 int encode_rfc2047(const char *name, char **value, const char *charset);
43 int execprog(char *, char **);
44 int execprogl(char *, char *, ...);
45 char *expandfol(char *);
46 char *expanddir(char *);
47 int ext_hook(char *, char *, char *);
48 int folder_addmsg(struct msgs **, char *, int, int, int, int, char *);
49 int folder_delmsgs(struct msgs *, int);
50 void folder_free(struct msgs *);
51 struct msgs *folder_read(char *);
52 struct msgs *folder_realloc(struct msgs *, int, int);
53 int gans(char *, struct swit *);
54 char **getans(char *, struct swit *);
55 int getanswer(char *);
56 char **getarguments(char *, int, char **, int);
59 char *getcurfol(void);
60 char *getdeffol(void);
61 int lkclose(int, char*);
62 int lkfclose(FILE *, char *);
63 FILE *lkfopen(char *, char *);
64 int lkopen(char *, int, mode_t);
66 char *m_backup(char *);
67 int m_convert(struct msgs *, char *);
68 char *m_draft(char *);
69 int m_getfld(int, unsigned char *, unsigned char *, int, FILE *);
72 int m_putenv(char *, char *);
73 char *m_mktemp(const char *, int *, FILE **);
74 char *m_mktemp2(const char *, const char *, int *, FILE **);
75 void thisisanmbox(FILE *);
77 int mh_strcasecmp(const char *s1, const char *s2);
78 char *norm_charmap(char *);
79 char *new_fs(char *, char *);
80 int pidwait(pid_t, int);
81 int pidstatus(int, FILE *, char *);
82 int pidXwait(int, char *);
83 void print_help(char *, struct swit *, int);
84 void print_sw(char *, struct swit *, char *, FILE *);
85 void print_version(char *);
88 char *mhbasename(char *);
89 void readconfig(struct node **, FILE *, char *, int);
90 int seq_addmsg(struct msgs *, char *, int, int, int);
91 int seq_addsel(struct msgs *, char *, int, int);
92 char *seq_bits(struct msgs *);
93 int seq_delmsg(struct msgs *, char *, int);
94 int seq_delsel(struct msgs *, char *, int, int);
95 int seq_getnum(struct msgs *, char *);
96 char *seq_list(struct msgs *, char *);
97 int seq_nameok(unsigned char *);
98 void seq_print(struct msgs *, char *);
99 void seq_printall(struct msgs *);
100 void seq_read(struct msgs *);
101 void seq_save(struct msgs *);
102 void seq_setcur(struct msgs *, int);
103 void seq_setprev(struct msgs *);
104 void seq_setunseen(struct msgs *, int);
105 int showfile(char **, char *);
106 int smatch(char *, struct swit *);
107 char *snprintb(char *, size_t, unsigned, char *);
108 int stringdex(char *, char *);
109 char *toabsdir(char *);
110 char *trim(unsigned char *);
111 char *trimcpy(unsigned char *);
112 int unputenv(char *);
113 void unquote_string(const char *input, char *output);
114 int uprf(char *, char *);
115 int vfgets(FILE *, char **);
116 char *write_charset_8bit(void);
122 ** prototypes for some routines in uip
124 int distout(char *, char *, char *);
125 int what_now(char *, int, char *, char *, int, struct msgs *,
129 ** from the former mts.h
131 char *LocalName(void); /* hostname */
132 char *getusername(void);
133 char *getfullname(void);
137 ** prototypes for message and sequence manipulation
139 void clear_msg_flags(struct msgs *, int);
140 void copy_msg_flags(struct msgs *, int, int);
141 void get_msg_flags(struct msgs *, seqset_t *, int);
142 void set_msg_flags(struct msgs *, seqset_t *, int);
143 seqset_t does_exist(struct msgs *, int);
144 void unset_exists(struct msgs *, int);
145 void set_exists(struct msgs *, int);
146 seqset_t is_selected(struct msgs *, int);
147 void unset_selected(struct msgs *, int);
148 void set_selected(struct msgs *, int);
149 seqset_t is_unseen(struct msgs *, int);
150 void unset_unseen(struct msgs *, int);
151 void set_unseen(struct msgs *, int);
152 seqset_t in_sequence(struct msgs *, int, int);
153 void clear_sequence(struct msgs *, int, int);
154 void add_sequence(struct msgs *, int, int);
156 int is_seq_private(struct msgs *, int);
157 void make_seq_public(struct msgs *, int);
158 void make_seq_private(struct msgs *, int);
159 void make_all_public(struct msgs *);
161 void clear_folder_flags(struct msgs *);
162 int is_readonly(struct msgs *);
163 void set_readonly(struct msgs *);
164 int other_files(struct msgs *);
165 void set_other_files(struct msgs *);