aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-06 03:58:35 +0000
committerRichard M. Stallman1994-01-06 03:58:35 +0000
commitc6880c90ff2d2182c472976eab875d4c01481ee3 (patch)
tree3e4bafb0ee37b63a293138091134c592a9b6e89a /lib-src
parent26528bbc92de88bba1cf9d9a27db2bb992dc5a12 (diff)
downloademacs-c6880c90ff2d2182c472976eab875d4c01481ee3.tar.gz
emacs-c6880c90ff2d2182c472976eab875d4c01481ee3.zip
(main) [MSDOS]: Open all files as binary.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/b2m.c8
-rw-r--r--lib-src/etags.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/lib-src/b2m.c b/lib-src/b2m.c
index 2bf7767ec4b..f4f3888345c 100644
--- a/lib-src/b2m.c
+++ b/lib-src/b2m.c
@@ -18,6 +18,9 @@
18#include <stdio.h> 18#include <stdio.h>
19#include <time.h> 19#include <time.h>
20#include <sys/types.h> 20#include <sys/types.h>
21#ifdef MSDOS
22#include <fcntl.h>
23#endif
21 24
22#include <../src/config.h> 25#include <../src/config.h>
23 26
@@ -45,6 +48,11 @@ main (argc, argv)
45 int argc; 48 int argc;
46 char **argv; 49 char **argv;
47{ 50{
51#ifdef MSDOS
52 _fmode = O_BINARY; /* all of files are treated as binary files */
53 (stdout)->_flag &= ~_IOTEXT;
54 (stdin)->_flag &= ~_IOTEXT;
55#endif
48 ltoday = time(0); 56 ltoday = time(0);
49 today = ctime(&ltoday); 57 today = ctime(&ltoday);
50 58
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 5f7ee3437f8..423c3987d5a 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -28,6 +28,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
28 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. 9.8 28 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. 9.8
29 */ 29 */
30 30
31#ifdef MSDOS
32#include <fcntl.h>
33#endif /* MSDOS */
34
31#ifdef HAVE_CONFIG_H 35#ifdef HAVE_CONFIG_H
32#include <../src/config.h> 36#include <../src/config.h>
33#endif 37#endif
@@ -546,6 +550,10 @@ main (argc, argv)
546 extern char *massage_name (); 550 extern char *massage_name ();
547#endif 551#endif
548 552
553#ifdef MSDOS
554 _fmode = O_BINARY; /* all of files are treated as binary files */
555#endif /* MSDOS */
556
549 progname = argv[0]; 557 progname = argv[0];
550 558
551#ifndef CTAGS 559#ifndef CTAGS