version 1.9, 2001/01/19 04:11:28 |
version 1.10, 2001/11/20 20:50:00 |
|
|
{ |
{ |
int c, i; |
int c, i; |
FILE *fp; |
FILE *fp; |
|
struct sigaction oact; |
|
sigset_t oset; |
struct message *mp; |
struct message *mp; |
off_t size; |
off_t size; |
|
|
|
|
* Deal with each message to be edited . . . |
* Deal with each message to be edited . . . |
*/ |
*/ |
for (i = 0; msgvec[i] && i < msgCount; i++) { |
for (i = 0; msgvec[i] && i < msgCount; i++) { |
sig_t sigint; |
|
|
|
if (i > 0) { |
if (i > 0) { |
char buf[100]; |
char buf[100]; |
char *p; |
char *p; |
|
|
} |
} |
dot = mp = &message[msgvec[i] - 1]; |
dot = mp = &message[msgvec[i] - 1]; |
touch(mp); |
touch(mp); |
sigint = signal(SIGINT, SIG_IGN); |
(void)ignoresig(SIGINT, &oact, &oset); |
fp = run_editor(setinput(mp), mp->m_size, type, readonly); |
fp = run_editor(setinput(mp), mp->m_size, type, readonly); |
if (fp != NULL) { |
if (fp != NULL) { |
(void)fseek(otf, 0L, 2); |
(void)fseek(otf, 0L, 2); |
|
|
warn("/tmp"); |
warn("/tmp"); |
(void)Fclose(fp); |
(void)Fclose(fp); |
} |
} |
(void)signal(SIGINT, sigint); |
(void)sigprocmask(SIG_SETMASK, &oset, NULL); |
|
(void)sigaction(SIGINT, &oact, NULL); |
} |
} |
return(0); |
return(0); |
} |
} |