diff options
| author | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2003-09-19 23:11:30 +0000 |
|---|---|---|
| committer | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2003-09-19 23:11:30 +0000 |
| commit | 2baeb480ca7e9ef7a135c663faa77c95880915f3 (patch) | |
| tree | 7c19504cd6f9f226c7ed599b71ff34bbc38f82c8 /contrib/sendmail/libsm/smstdio.c | |
| parent | 3e0cab95c0622b6792ca07844ef2e53af436797c (diff) | |
| parent | a7ec597c92be37562e4f76e105eeb7a3ba64d81a (diff) | |
Notes
Diffstat (limited to 'contrib/sendmail/libsm/smstdio.c')
| -rw-r--r-- | contrib/sendmail/libsm/smstdio.c | 19 |
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+"; |
