]> diplodocus.org Git - nmh/blob - h/prototypes.h
Document argsplit changes in mh-profile man page.
[nmh] / h / prototypes.h
1
2 /*
3 * prototypes.h -- various prototypes
4 */
5
6 /*
7 * missing system prototypes
8 */
9 #if ! defined(HAVE_TERMCAP_H) && ! defined (HAVE_NCURSES_TERMCAP_H)
10 extern int tgetent (char *bp, char *name);
11 extern int tgetnum (char *id);
12 extern int tgetflag (char *id);
13 extern char *tgetstr (char *id, char **area);
14 extern char *tgoto (char *cm, int destcol, int destline);
15 extern int tputs (char *cp, int affcnt, int (*outc) (int));
16 #endif
17
18 /*
19 * prototype from config.h
20 */
21 char *etcpath(char *);
22
23 /*
24 * prototypes from the nmh subroutine library
25 */
26
27 struct msgs_array;
28
29 void adios (char *, char *, ...) NORETURN;
30 void admonish (char *, char *, ...);
31 void advertise (char *, char *, char *, va_list);
32 void advise (char *, char *, ...);
33 char **argsplit (char *, char **, int *);
34 void argsplit_msgarg (struct msgs_array *, char *, char **);
35 void argsplit_insert (struct msgs_array *, char *, char **);
36 void arglist_free (char *, char **);
37 void ambigsw (char *, struct swit *);
38 int atooi(char *);
39 char **brkstring (char *, char *, char *);
40 int check_charset (char *, int);
41 int client(char *, char *, char *, int, int);
42 void closefds(int);
43 char *concat (char *, ...);
44 int context_del (char *);
45 char *context_find (char *);
46 int context_foil (char *);
47 void context_read (void);
48 void context_replace (char *, char *);
49 void context_save (void);
50 char *copy (char *, char *);
51 char **copyip (char **, char **, int);
52 void cpydata (int, int, char *, char *);
53 void cpydgst (int, int, char *, char *);
54 int decode_rfc2047 (char *, char *, size_t);
55 void discard (FILE *);
56 int default_done (int);
57 void escape_display_name (char *, size_t);
58 void escape_local_part (char *, size_t);
59 int ext_hook(char *, char *, char *);
60 int fdcompare (int, int);
61 int folder_addmsg (struct msgs **, char *, int, int, int, int, char *);
62 int folder_delmsgs (struct msgs *, int, int);
63 void folder_free (struct msgs *);
64 int folder_pack (struct msgs **, int);
65 struct msgs *folder_read (char *);
66 struct msgs *folder_realloc (struct msgs *, int, int);
67 int gans (char *, struct swit *);
68 char **getans (char *, struct swit *);
69 #ifdef READLINE_SUPPORT
70 char **getans_via_readline (char *, struct swit *);
71 #endif /* READLINE_SUPPORT */
72 int getanswer (char *);
73 char **getarguments (char *, int, char **, int);
74 char *get_charset(void);
75 char *getcpy (char *);
76 char *get_default_editor(void);
77 char *getfolder(int);
78 int lkclose(int, char*);
79 int lkfclose(FILE *, char *);
80 FILE *lkfopen(char *, char *);
81 int lkopen(char *, int, mode_t);
82 int m_atoi (char *);
83 char *m_backup (char *);
84 int m_convert (struct msgs *, char *);
85 char *m_draft (char *, char *, int, int *);
86 void m_eomsbr (m_getfld_state_t, int (*)(int));
87 void m_getfld_state_reset (m_getfld_state_t *);
88 void m_getfld_state_destroy (m_getfld_state_t *);
89 void m_getfld_track_filepos (m_getfld_state_t *, FILE *);
90 int m_getfld (m_getfld_state_t *, char[NAMESZ], char *, int *, FILE *);
91 int m_gmprot (void);
92 char *m_maildir (char *);
93 char *m_mailpath (char *);
94 char *m_name (int);
95 int m_putenv (char *, char *);
96 int m_rand (unsigned char *, size_t);
97 char *m_mktemp(const char *, int *, FILE **);
98 char *m_mktemp2(const char *, const char *, int *, FILE **);
99 void m_unknown(m_getfld_state_t *, FILE *);
100 int makedir (char *);
101 char *message_id (time_t, int);
102 char *nmh_getpass(const char *);
103 char *norm_charmap(char *);
104 char *new_fs (char *, char *, char *);
105 char *path(char *, int);
106 int peekc(FILE *ib);
107 int pidwait (pid_t, int);
108 int pidstatus (int, FILE *, char *);
109 char *pluspath(char *);
110 void print_help (char *, struct swit *, int);
111 void print_sw (char *, struct swit *, char *, FILE *);
112 void print_version (char *);
113 void push (void);
114 char *pwd (void);
115 char *r1bindex(char *, int);
116 void readconfig (struct node **, FILE *, char *, int);
117 int refile (char **, char *);
118 void ruserpass(char *, char **, char **);
119 int remdir (char *);
120 void scan_detect_mbox_style (FILE *);
121 void scan_finished ();
122 void scan_eom_action (int (*)());
123 void scan_reset_m_getfld_state ();
124 int seq_addmsg (struct msgs *, char *, int, int, int);
125 int seq_addsel (struct msgs *, char *, int, int);
126 char *seq_bits (struct msgs *);
127 int seq_delmsg (struct msgs *, char *, int);
128 int seq_delsel (struct msgs *, char *, int, int);
129 int seq_getnum (struct msgs *, char *);
130 char *seq_list (struct msgs *, char *);
131 int seq_nameok (char *);
132 void seq_print (struct msgs *, char *);
133 void seq_printall (struct msgs *);
134 void seq_read (struct msgs *);
135 void seq_save (struct msgs *);
136 void seq_setcur (struct msgs *, int);
137 void seq_setprev (struct msgs *);
138 void seq_setunseen (struct msgs *, int);
139 int showfile (char **, char *);
140 int smatch(char *, struct swit *);
141 char *snprintb (char *, size_t, unsigned, char *);
142 int ssequal (char *, char *);
143 int stringdex (char *, char *);
144 char *trimcpy (char *);
145 int unputenv (char *);
146 int uprf (char *, char *);
147 int vfgets (FILE *, char **);
148 char *write_charset_8bit (void);
149
150 int mh_strcasecmp (const char *s1, const char *s2);
151 int strncasecmp (const char *s1, const char *s2, size_t n);
152
153
154 /*
155 * some prototypes for address parsing system
156 * (others are in addrsbr.h)
157 */
158 char *LocalName(int);
159 char *SystemName(void);
160
161 /*
162 * prototypes for some routines in uip
163 */
164 int annotate (char *, char *, char *, int, int, int, int);
165 void annolist(char *, char *, char *, int);
166 void annopreserve(int);
167 void clear_screen(void);
168 void m_pclose(void);
169 int make_intermediates(char *);
170 int mhl(int, char **);
171 int mhlsbr(int, char **, FILE *(*)(char *));
172 int distout (char *, char *, char *);
173 void replout (FILE *, char *, char *, struct msgs *, int,
174 int, char *, char *, char *, int);
175 int sc_hardcopy(void);
176 int sc_length(void);
177 int sc_width(void);
178 int build_form (char *, char *, int *, char *, char *, char *, char *,
179 char *, char *);
180 int sendsbr (char **, int, char *, char *, struct stat *, int, char *, int);
181 int SOprintf (char *, ...);
182 int what_now (char *, int, int, char *, char *,
183 int, struct msgs *, char *, int, char *, int);
184 int WhatNow(int, char **);
185 int writeBase64aux(FILE *, FILE *);
186 int writeBase64 (unsigned char *, size_t, unsigned char *);