summaryrefslogtreecommitdiff
path: root/usr.bin/mail
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-04-26 15:47:32 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-04-26 15:47:32 +0000
commitc7982e51474fec2f2a9529530607f9fc17b875e3 (patch)
tree256534cc05cfb20de8f9e1df5e3a4af90160869e /usr.bin/mail
parentdf876b731d4f232327086990991af10420a48f7a (diff)
Change the name of mail's send() function to sendmessages() to
avoid shadowing the libc send(2); gadams@avernus.com
Diffstat (limited to 'usr.bin/mail')
-rw-r--r--usr.bin/mail/cmd1.c6
-rw-r--r--usr.bin/mail/cmd2.c6
-rw-r--r--usr.bin/mail/collect.c6
-rw-r--r--usr.bin/mail/extern.h6
-rw-r--r--usr.bin/mail/quit.c10
-rw-r--r--usr.bin/mail/send.c6
6 files changed, 20 insertions, 20 deletions
diff --git a/usr.bin/mail/cmd1.c b/usr.bin/mail/cmd1.c
index 039f1a557e5..2e83ef729f3 100644
--- a/usr.bin/mail/cmd1.c
+++ b/usr.bin/mail/cmd1.c
@@ -1,4 +1,4 @@
-/* $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 $ */
/*-
@@ -38,7 +38,7 @@
#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 */
@@ -347,7 +347,7 @@ type1(msgvec, doign, page)
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) {
diff --git a/usr.bin/mail/cmd2.c b/usr.bin/mail/cmd2.c
index 19a6c1d3182..706273cbb74 100644
--- a/usr.bin/mail/cmd2.c
+++ b/usr.bin/mail/cmd2.c
@@ -1,4 +1,4 @@
-/* $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 $ */
/*
@@ -38,7 +38,7 @@
#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 */
@@ -202,7 +202,7 @@ save1(str, mark, cmd, ignore)
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);
diff --git a/usr.bin/mail/collect.c b/usr.bin/mail/collect.c
index cbee1730d5e..1ad6274da1e 100644
--- a/usr.bin/mail/collect.c
+++ b/usr.bin/mail/collect.c
@@ -1,4 +1,4 @@
-/* $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 $ */
/*
@@ -38,7 +38,7 @@
#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 */
@@ -589,7 +589,7 @@ forward(ms, fp, fn, f)
touch(mp);
printf(" %d", *msgvec);
- if (send(mp, fp, ig, tabst) < 0) {
+ if (sendmessage(mp, fp, ig, tabst) < 0) {
warn(fn);
return(-1);
}
diff --git a/usr.bin/mail/extern.h b/usr.bin/mail/extern.h
index 36b04e4acc3..84b01d5b07c 100644
--- a/usr.bin/mail/extern.h
+++ b/usr.bin/mail/extern.h
@@ -1,4 +1,4 @@
-/* $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 $ */
/*-
@@ -34,7 +34,7 @@
* 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;
@@ -227,7 +227,7 @@ void scaninit __P((void));
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 *));
diff --git a/usr.bin/mail/quit.c b/usr.bin/mail/quit.c
index bcf8ffb1212..310fc71a753 100644
--- a/usr.bin/mail/quit.c
+++ b/usr.bin/mail/quit.c
@@ -1,4 +1,4 @@
-/* $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 $ */
/*
@@ -38,7 +38,7 @@
#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 */
@@ -269,7 +269,7 @@ quit()
}
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);
@@ -382,7 +382,7 @@ writeback(res)
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);
@@ -494,7 +494,7 @@ edstop()
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);
diff --git a/usr.bin/mail/send.c b/usr.bin/mail/send.c
index d1a3933bd0f..df12fe6d35e 100644
--- a/usr.bin/mail/send.c
+++ b/usr.bin/mail/send.c
@@ -1,4 +1,4 @@
-/* $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 $ */
/*
@@ -38,7 +38,7 @@
#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 */
@@ -59,7 +59,7 @@ static char rcsid[] = "$OpenBSD: send.c,v 1.9 1997/11/14 00:23:57 millert Exp $"
* 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;