Replaced atooi() with strtoul(..., 8). That's part of C89 and thus okay for us.
[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 void closefds(int);
33 char *concat(char *, ...);
34 int context_del(char *);
35 char *context_find(char *);
36 int context_foil(char *);
37 void context_read(void);
38 void context_replace(char *, char *);
39 void context_save(void);
40 char **copyip(char **, char **, int);
41 void cpydata(int, int, char *, char *);
42 void cpydgst(int, int, char *, char *);
43 int decode_rfc2047(char *, char *, size_t);
44 void discard(FILE *);
45 int default_done(int);
46 char *expandfol(char *);
47 char *expanddir(char *);
48 int ext_hook(char *, char *, char *);
49 int folder_addmsg(struct msgs **, char *, int, int, int, int, char *);
50 int folder_delmsgs(struct msgs *, int, int);
51 void folder_free(struct msgs *);
52 int folder_pack(struct msgs **, int);
53 struct msgs *folder_read(char *);
54 struct msgs *folder_realloc(struct msgs *, int, int);
55 int gans(char *, struct swit *);
56 char **getans(char *, struct swit *);
57 int getanswer(char *);
58 char **getarguments(char *, int, char **, int);
59 char *get_charset();
60 char *getcpy(char *);
61 char *getcurfol(void);
62 char *getdeffol(void);
63 int lkclose(int, char*);
64 int lkfclose(FILE *, char *);
65 FILE *lkfopen(char *, char *);
66 int lkopen(char *, int, mode_t);
67 int m_atoi(char *);
68 char *m_backup(char *);
69 int m_convert(struct msgs *, char *);
70 char *m_draft(char *);
71 int m_getfld(int, unsigned char *, unsigned char *, int, FILE *);
72 int m_gmprot(void);
73 char *m_name(int);
74 int m_putenv(char *, char *);
75 char *m_mktemp(const char *, int *, FILE **);
76 char *m_mktemp2(const char *, const char *, int *, FILE **);
77 void m_unknown(FILE *);
78 int makedir(char *);
79 char *nmh_getpass(const char *);
80 char *norm_charmap(char *);
81 char *new_fs(char *, char *);
82 int pidwait(pid_t, int);
83 int pidstatus(int, FILE *, char *);
84 void print_help(char *, struct swit *, int);
85 void print_sw(char *, struct swit *, char *, FILE *);
86 void print_version(char *);
87 void push(void);
88 char *pwd(void);
89 char *mhbasename(char *);
90 void readconfig(struct node **, FILE *, char *, int);
91 int refile(char **, char *);
92 void ruserpass(char *, char **, char **);
93 int seq_addmsg(struct msgs *, char *, int, int, int);
94 int seq_addsel(struct msgs *, char *, int, int);
95 char *seq_bits(struct msgs *);
96 int seq_delmsg(struct msgs *, char *, int);
97 int seq_delsel(struct msgs *, char *, int, int);
98 int seq_getnum(struct msgs *, char *);
99 char *seq_list(struct msgs *, char *);
100 int seq_nameok(unsigned char *);
101 void seq_print(struct msgs *, char *);
102 void seq_printall(struct msgs *);
103 void seq_read(struct msgs *);
104 void seq_save(struct msgs *);
105 void seq_setcur(struct msgs *, int);
106 void seq_setprev(struct msgs *);
107 void seq_setunseen(struct msgs *, int);
108 int showfile(char **, char *);
109 int smatch(char *, struct swit *);
110 char *snprintb(char *, size_t, unsigned, char *);
111 int stringdex(char *, char *);
112 char *toabsdir(char *);
113 char *trimcpy(unsigned char *);
114 int unputenv(char *);
115 int uprf(char *, char *);
116 int vfgets(FILE *, char **);
117 char *write_charset_8bit(void);
118 int get_returnpath(char *, int, char *, int);
119
120 /*
121 ** prototypes for compatibility functions in library
122 */
123 #ifndef HAVE_SNPRINTF_PROTOTYPE
124 int snprintf(char *, size_t, const char *, ...);
125 int vsnprintf(char *, size_t, const char *, va_list);
126 #endif
127
128 int mh_strcasecmp(const char *s1, const char *s2);
129 int strncasecmp(const char *s1, const char *s2, size_t n);
130
131
132 /*
133 ** prototypes for some routines in uip
134 */
135 int distout(char *, char *, char *);
136 int what_now(char *, int, int, char *, char *, int, struct msgs *,
137                 char *, char *);
138
139 /*
140 ** from the former mts.h
141 */
142 char *LocalName(void);  /* hostname */
143 char *getusername(void);
144 char *getfullname(void);