-/* $OpenBSD: cmd1.c,v 1.14 2000/04/25 16:42:22 millert Exp $ */
+/* $OpenBSD: cmd1.c,v 1.15 2000/04/26 15:47:29 millert Exp $ */
/* $NetBSD: cmd1.c,v 1.9 1997/07/09 05:29:48 mikel Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)cmd1.c 8.2 (Berkeley) 4/20/95";
#else
-static char rcsid[] = "$OpenBSD: cmd1.c,v 1.14 2000/04/25 16:42:22 millert Exp $";
+static char rcsid[] = "$OpenBSD: cmd1.c,v 1.15 2000/04/26 15:47:29 millert Exp $";
#endif
#endif /* not lint */
dot = mp;
if (value("quiet") == NULL)
fprintf(obuf, "Message %d:\n", *ip);
- (void)send(mp, obuf, doign ? ignore : 0, NULL);
+ (void)sendmessage(mp, obuf, doign ? ignore : 0, NULL);
}
close_pipe:
if (obuf != stdout) {
-/* $OpenBSD: cmd2.c,v 1.8 1997/11/14 00:23:43 millert Exp $ */
+/* $OpenBSD: cmd2.c,v 1.9 2000/04/26 15:47:30 millert Exp $ */
/* $NetBSD: cmd2.c,v 1.7 1997/05/17 19:55:10 pk Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmd2.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: cmd2.c,v 1.8 1997/11/14 00:23:43 millert Exp $";
+static char rcsid[] = "$OpenBSD: cmd2.c,v 1.9 2000/04/26 15:47:30 millert Exp $";
#endif
#endif /* not lint */
for (ip = msgvec; *ip && ip-msgvec < msgCount; ip++) {
mp = &message[*ip - 1];
touch(mp);
- if (send(mp, obuf, ignore, NULL) < 0) {
+ if (sendmessage(mp, obuf, ignore, NULL) < 0) {
warn("%s", file);
(void)Fclose(obuf);
return(1);
-/* $OpenBSD: collect.c,v 1.17 1998/06/12 18:07:54 millert Exp $ */
+/* $OpenBSD: collect.c,v 1.18 2000/04/26 15:47:30 millert Exp $ */
/* $NetBSD: collect.c,v 1.9 1997/07/09 05:25:45 mikel Exp $ */
/*
#if 0
static char sccsid[] = "@(#)collect.c 8.2 (Berkeley) 4/19/94";
#else
-static char rcsid[] = "$OpenBSD: collect.c,v 1.17 1998/06/12 18:07:54 millert Exp $";
+static char rcsid[] = "$OpenBSD: collect.c,v 1.18 2000/04/26 15:47:30 millert Exp $";
#endif
#endif /* not lint */
touch(mp);
printf(" %d", *msgvec);
- if (send(mp, fp, ig, tabst) < 0) {
+ if (sendmessage(mp, fp, ig, tabst) < 0) {
warn(fn);
return(-1);
}
-/* $OpenBSD: extern.h,v 1.13 2000/04/25 16:42:22 millert Exp $ */
+/* $OpenBSD: extern.h,v 1.14 2000/04/26 15:47:31 millert Exp $ */
/* $NetBSD: extern.h,v 1.7 1997/07/09 05:22:00 mikel Exp $ */
/*-
* SUCH DAMAGE.
*
* @(#)extern.h 8.2 (Berkeley) 4/20/95
- * $OpenBSD: extern.h,v 1.13 2000/04/25 16:42:22 millert Exp $
+ * $OpenBSD: extern.h,v 1.14 2000/04/26 15:47:31 millert Exp $
*/
struct name;
int schdir __P((void *));
int screensize __P((void));
int scroll __P((void *));
-int send __P((struct message *, FILE *, struct ignoretab *, char *));
+int sendmessage __P((struct message *, FILE *, struct ignoretab *, char *));
int sendmail __P((void *));
int set __P((void *));
int setfile __P((char *));
-/* $OpenBSD: quit.c,v 1.11 1998/09/10 16:18:37 millert Exp $ */
+/* $OpenBSD: quit.c,v 1.12 2000/04/26 15:47:31 millert Exp $ */
/* $NetBSD: quit.c,v 1.6 1996/12/28 07:11:07 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)quit.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: quit.c,v 1.11 1998/09/10 16:18:37 millert Exp $";
+static char rcsid[] = "$OpenBSD: quit.c,v 1.12 2000/04/26 15:47:31 millert Exp $";
#endif
#endif /* not lint */
}
for (mp = &message[0]; mp < &message[msgCount]; mp++)
if (mp->m_flag & MBOX)
- if (send(mp, obuf, saveignore, NULL) < 0) {
+ if (sendmessage(mp, obuf, saveignore, NULL) < 0) {
warn(mbox);
(void)Fclose(ibuf);
(void)Fclose(obuf);
for (mp = &message[0]; mp < &message[msgCount]; mp++)
if ((mp->m_flag&MPRESERVE)||(mp->m_flag&MTOUCH)==0) {
p++;
- if (send(mp, obuf, (struct ignoretab *)0, NULL) < 0) {
+ if (sendmessage(mp, obuf, NULL, NULL) < 0) {
warn(mailname);
(void)Fclose(obuf);
return(-1);
if ((mp->m_flag & MDELETED) != 0)
continue;
c++;
- if (send(mp, obuf, (struct ignoretab *) NULL, NULL) < 0) {
+ if (sendmessage(mp, obuf, NULL, NULL) < 0) {
warn(mailname);
relsesigs();
reset(0);
-/* $OpenBSD: send.c,v 1.9 1997/11/14 00:23:57 millert Exp $ */
+/* $OpenBSD: send.c,v 1.10 2000/04/26 15:47:31 millert Exp $ */
/* $NetBSD: send.c,v 1.6 1996/06/08 19:48:39 christos Exp $ */
/*
#if 0
static char sccsid[] = "@(#)send.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: send.c,v 1.9 1997/11/14 00:23:57 millert Exp $";
+static char rcsid[] = "$OpenBSD: send.c,v 1.10 2000/04/26 15:47:31 millert Exp $";
#endif
#endif /* not lint */
* prefix is a string to prepend to each output line.
*/
int
-send(mp, obuf, doign, prefix)
+sendmessage(mp, obuf, doign, prefix)
struct message *mp;
FILE *obuf;
struct ignoretab *doign;