version 1.10, 2001/11/20 20:50:00 |
version 1.11, 2001/11/21 15:26:39 |
|
|
|
|
#ifndef lint |
#ifndef lint |
#if 0 |
#if 0 |
static char sccsid[] = "@(#)edit.c 8.1 (Berkeley) 6/6/93"; |
static const char sccsid[] = "@(#)edit.c 8.1 (Berkeley) 6/6/93"; |
#else |
#else |
static char rcsid[] = "$OpenBSD$"; |
static const char rcsid[] = "$OpenBSD$"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
|
* Edit a message list. |
* Edit a message list. |
*/ |
*/ |
int |
int |
editor(v) |
editor(void *v) |
void *v; |
|
{ |
{ |
int *msgvec = v; |
int *msgvec = v; |
|
|
|
|
* Invoke the visual editor on a message list. |
* Invoke the visual editor on a message list. |
*/ |
*/ |
int |
int |
visual(v) |
visual(void *v) |
void *v; |
|
{ |
{ |
int *msgvec = v; |
int *msgvec = v; |
|
|
|
|
* We get the editor from the stuff above. |
* We get the editor from the stuff above. |
*/ |
*/ |
int |
int |
edit1(msgvec, type) |
edit1(int *msgvec, int type) |
int *msgvec; |
|
int type; |
|
{ |
{ |
int c, i; |
int c, i; |
FILE *fp; |
FILE *fp; |
|
|
* "Type" is 'e' for _PATH_EX, 'v' for _PATH_VI. |
* "Type" is 'e' for _PATH_EX, 'v' for _PATH_VI. |
*/ |
*/ |
FILE * |
FILE * |
run_editor(fp, size, type, readonly) |
run_editor(FILE *fp, off_t size, int type, int readonly) |
FILE *fp; |
|
off_t size; |
|
int type, readonly; |
|
{ |
{ |
FILE *nf = NULL; |
FILE *nf = NULL; |
int t; |
int t; |