summaryrefslogtreecommitdiff
path: root/contrib/sendmail/libsm/smstdio.c
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2003-09-19 23:11:30 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2003-09-19 23:11:30 +0000
commita7ec597c92be37562e4f76e105eeb7a3ba64d81a (patch)
treee6205d213aedfefacf00b4211611f436bae5e680 /contrib/sendmail/libsm/smstdio.c
parent58fec675655367c5258890235a8cb889c2b53fac (diff)
Notes
Diffstat (limited to 'contrib/sendmail/libsm/smstdio.c')
-rw-r--r--contrib/sendmail/libsm/smstdio.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/contrib/sendmail/libsm/smstdio.c b/contrib/sendmail/libsm/smstdio.c
index 879fcd25f400..d561e8d67a02 100644
--- a/contrib/sendmail/libsm/smstdio.c
+++ b/contrib/sendmail/libsm/smstdio.c
@@ -8,7 +8,7 @@
*/
#include <sm/gen.h>
-SM_IDSTR(id, "@(#)$Id: smstdio.c,v 1.32 2002/02/23 20:18:36 gshapiro Exp $")
+SM_IDSTR(id, "@(#)$Id: smstdio.c,v 1.32.2.2 2003/09/05 20:35:28 ca Exp $")
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
@@ -68,6 +68,23 @@ sm_stdioopen(fp, info, flags, rpool)
case SM_IO_APPENDRW:
stdiomode = "a+";
break;
+#if SM_IO_BINARY != 0
+ case SM_IO_RDONLY_B:
+ stdiomode = "rb";
+ break;
+ case SM_IO_WRONLY_B:
+ stdiomode = "wb";
+ break;
+ case SM_IO_APPEND_B:
+ stdiomode = "ab";
+ break;
+ case SM_IO_APPENDRW_B:
+ stdiomode = "a+b";
+ break;
+ case SM_IO_RDWR_B:
+ stdiomode = "r+b";
+ break;
+#endif /* SM_IO_BINARY != 0 */
case SM_IO_RDWR:
default:
stdiomode = "r+";