closefds() doesn't seem relevant or large enough to be a function.
[mmh] / h / prototypes.h
1 /*
2 ** prototypes.h -- various prototypes
3 */
4
5 /*
6 ** missing system prototypes
7 */
8 #ifndef HAVE_TERMCAP_H
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));
15 #endif
16
17 /*
18 ** prototype from config.h
19 */
20 char *etcpath(char *);
21
22 /*
23 ** prototypes from the nmh subroutine library
24 */
25 void adios(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 check_charset(char *, int);
32 char *concat(char *, ...);
33 int context_del(char *);
34 char *context_find(char *);
35 int context_foil(char *);
36 void context_read(void);
37 void context_replace(char *, char *);
38 void context_save(void);
39 char **copyip(char **, char **, int);
40 void cpydata(int, int, char *, char *);
41 void cpydgst(int, int, char *, char *);
42 int decode_rfc2047(char *, char *, size_t);
43 void discard(FILE *);
44 int default_done(int);
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, int);
50 void folder_free(struct msgs *);
51 int folder_pack(struct msgs **, int);
52 struct msgs *folder_read(char *);
53 struct msgs *folder_realloc(struct msgs *, int, int);
54 int gans(char *, struct swit *);
55 char **getans(char *, struct swit *);
56 int getanswer(char *);
57 char **getarguments(char *, int, char **, int);
58 char *get_charset();
59 char *getcpy(char *);
60 char *getcurfol(void);
61 char *getdeffol(void);
62 int lkclose(int, char*);
63 int lkfclose(FILE *, char *);
64 FILE *lkfopen(char *, char *);
65 int lkopen(char *, int, mode_t);
66 int m_atoi(char *);
67 char *m_backup(char *);
68 int m_convert(struct msgs *, char *);
69 char *m_draft(char *);
70 int m_getfld(int, unsigned char *, unsigned char *, int, FILE *);
71 int m_gmprot(void);
72 char *m_name(int);
73 int m_putenv(char *, char *);
74 char *m_mktemp(const char *, int *, FILE **);
75 char *m_mktemp2(const char *, const char *, int *, FILE **);
76 void m_unknown(FILE *);
77 int makedir(char *);
78 char *nmh_getpass(const char *);
79 char *norm_charmap(char *);
80 char *new_fs(char *, char *);
81 int pidwait(pid_t, int);
82 int pidstatus(int, FILE *, char *);
83 void print_help(char *, struct swit *, int);
84 void print_sw(char *, struct swit *, char *, FILE *);
85 void print_version(char *);
86 void push(void);
87 char *pwd(void);
88 char *mhbasename(char *);
89 void readconfig(struct node **, FILE *, char *, int);
90 int refile(char **, char *);
91 void ruserpass(char *, char **, char **);
92 int seq_addmsg(struct msgs *, char *, int, int, int);
93 int seq_addsel(struct msgs *, char *, int, int);
94 char *seq_bits(struct msgs *);
95 int seq_delmsg(struct msgs *, char *, int);
96 int seq_delsel(struct msgs *, char *, int, int);
97 int seq_getnum(struct msgs *, char *);
98 char *seq_list(struct msgs *, char *);
99 int seq_nameok(unsigned char *);
100 void seq_print(struct msgs *, char *);
101 void seq_printall(struct msgs *);
102 void seq_read(struct msgs *);
103 void seq_save(struct msgs *);
104 void seq_setcur(struct msgs *, int);
105 void seq_setprev(struct msgs *);
106 void seq_setunseen(struct msgs *, int);
107 int showfile(char **, char *);
108 int smatch(char *, struct swit *);
109 char *snprintb(char *, size_t, unsigned, char *);
110 int stringdex(char *, char *);
111 char *toabsdir(char *);
112 char *trimcpy(unsigned char *);
113 int unputenv(char *);
114 int uprf(char *, char *);
115 int vfgets(FILE *, char **);
116 char *write_charset_8bit(void);
117 int get_returnpath(char *, int, char *, int);
118
119 /*
120 ** prototypes for compatibility functions in library
121 */
122 #ifndef HAVE_SNPRINTF_PROTOTYPE
123 int snprintf(char *, size_t, const char *, ...);
124 int vsnprintf(char *, size_t, const char *, va_list);
125 #endif
126
127 int mh_strcasecmp(const char *s1, const char *s2);
128 int strncasecmp(const char *s1, const char *s2, size_t n);
129
130
131 /*
132 ** prototypes for some routines in uip
133 */
134 int distout(char *, char *, char *);
135 int what_now(char *, int, int, char *, char *, int, struct msgs *,
136                 char *, char *);
137
138 /*
139 ** from the former mts.h
140 */
141 char *LocalName(void);  /* hostname */
142 char *getusername(void);
143 char *getfullname(void);