diff options
| author | Richard M. Stallman | 1994-01-08 08:48:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-08 08:48:32 +0000 |
| commit | 29b89fe042eb86fda2473778ef303fbf695fdf11 (patch) | |
| tree | 5944503d408d94518bc1a1bcc9cc40c4d13a1631 | |
| parent | 128ecc89ba3dd843f4d4007a04cac79aa5a51a8a (diff) | |
| download | emacs-29b89fe042eb86fda2473778ef303fbf695fdf11.tar.gz emacs-29b89fe042eb86fda2473778ef303fbf695fdf11.zip | |
(main) [MSDOS]: Call init_environment. Set file types to
binary for all files. Call init_dosfns.
(fatal_error_signal) [MSDOS]: Uncomment sigblock.
| -rw-r--r-- | src/emacs.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index a8952ad2a28..b3f4ca79814 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -150,7 +150,9 @@ fatal_error_signal (sig) | |||
| 150 | Remember that since we're in a signal handler, the signal we're | 150 | Remember that since we're in a signal handler, the signal we're |
| 151 | going to send is probably blocked, so we have to unblock it if we | 151 | going to send is probably blocked, so we have to unblock it if we |
| 152 | want to really receive it. */ | 152 | want to really receive it. */ |
| 153 | #ifndef MSDOS | ||
| 153 | sigunblock (sigmask (fatal_error_code)); | 154 | sigunblock (sigmask (fatal_error_code)); |
| 155 | #endif | ||
| 154 | kill (getpid (), fatal_error_code); | 156 | kill (getpid (), fatal_error_code); |
| 155 | #endif /* not VMS */ | 157 | #endif /* not VMS */ |
| 156 | } | 158 | } |
| @@ -367,6 +369,15 @@ main (argc, argv, envp) | |||
| 367 | } | 369 | } |
| 368 | #endif /* not SYSTEM_MALLOC */ | 370 | #endif /* not SYSTEM_MALLOC */ |
| 369 | 371 | ||
| 372 | #ifdef MSDOS | ||
| 373 | /* We do all file input/output as binary files. When we need to translate | ||
| 374 | newlines, we do that manually. */ | ||
| 375 | _fmode = O_BINARY; | ||
| 376 | (stdin)->_flag &= ~_IOTEXT; | ||
| 377 | (stdout)->_flag &= ~_IOTEXT; | ||
| 378 | (stderr)->_flag &= ~_IOTEXT; | ||
| 379 | #endif /* MSDOS */ | ||
| 380 | |||
| 370 | #ifdef PRIO_PROCESS | 381 | #ifdef PRIO_PROCESS |
| 371 | if (emacs_priority) | 382 | if (emacs_priority) |
| 372 | nice (emacs_priority); | 383 | nice (emacs_priority); |
| @@ -512,6 +523,13 @@ main (argc, argv, envp) | |||
| 512 | init_eval (); | 523 | init_eval (); |
| 513 | init_data (); | 524 | init_data (); |
| 514 | 525 | ||
| 526 | #ifdef MSDOS | ||
| 527 | /* Call early 'cause init_environment needs it. */ | ||
| 528 | init_dosfns (); | ||
| 529 | /* Set defaults for several environment variables. */ | ||
| 530 | if (initialized) init_environment (argc, argv, skip_args); | ||
| 531 | #endif | ||
| 532 | |||
| 515 | /* egetenv is a pretty low-level facility, which may get called in | 533 | /* egetenv is a pretty low-level facility, which may get called in |
| 516 | many circumstances; it seems flimsy to put off initializing it | 534 | many circumstances; it seems flimsy to put off initializing it |
| 517 | until calling init_callproc. */ | 535 | until calling init_callproc. */ |