comparison lib-src/movemail.c @ 31080:7ae519dba237

(main) [WINDOWSNT]: Force binary mode for fileio.
author Andrew Innes <andrewi@gnu.org>
date Tue, 22 Aug 2000 21:20:07 +0000
parents 7d5565d3cf32
children 77ed917b12ee
comparison
equal deleted inserted replaced
31079:ace4a0e50572 31080:7ae519dba237
93 [18-Feb-97 andrewi] I now believe my comment above to be incorrect, 93 [18-Feb-97 andrewi] I now believe my comment above to be incorrect,
94 since it was based on a misunderstanding of how locking calls are 94 since it was based on a misunderstanding of how locking calls are
95 implemented and used on Unix. */ 95 implemented and used on Unix. */
96 //#define DISABLE_DIRECT_ACCESS 96 //#define DISABLE_DIRECT_ACCESS
97 97
98 /* Ensure all file i/o is in binary mode. */
99 #include <fcntl.h> 98 #include <fcntl.h>
100 int _fmode = _O_BINARY;
101 #endif /* WINDOWSNT */ 99 #endif /* WINDOWSNT */
102 100
103 #ifdef USG 101 #ifdef USG
104 #include <fcntl.h> 102 #include <fcntl.h>
105 #include <unistd.h> 103 #include <unistd.h>
191 int pop_reverse_order = 0; 189 int pop_reverse_order = 0;
192 # define ARGSTR "pr" 190 # define ARGSTR "pr"
193 #else /* ! MAIL_USE_POP */ 191 #else /* ! MAIL_USE_POP */
194 # define ARGSTR "p" 192 # define ARGSTR "p"
195 #endif /* MAIL_USE_POP */ 193 #endif /* MAIL_USE_POP */
194
195 #ifdef WINDOWSNT
196 /* Ensure all file i/o is in binary mode. */
197 _fmode = _O_BINARY;
198 #endif
196 199
197 delete_lockname = 0; 200 delete_lockname = 0;
198 201
199 while ((c = getopt (argc, argv, ARGSTR)) != EOF) 202 while ((c = getopt (argc, argv, ARGSTR)) != EOF)
200 { 203 {