diff options
| author | Richard M. Stallman | 1996-09-19 03:09:10 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-09-19 03:09:10 +0000 |
| commit | 2a6334563b477eaabb675ac23d4d49d1b00305fa (patch) | |
| tree | 0907d0a3acbd5c3d619cd0bf24328d0ad6aa29f2 /src | |
| parent | 7ae686336551c7cf0f241198d53d39ebfc5ab17e (diff) | |
| download | emacs-2a6334563b477eaabb675ac23d4d49d1b00305fa.tar.gz emacs-2a6334563b477eaabb675ac23d4d49d1b00305fa.zip | |
Replaced symbol BSD with BSD_SYSTEM.
Don't explicitly Include termios.h.
(ospeed): Use HAVE_TERMIOS to decide whether to use speed_t.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 3d8349acfb0..a7026b87824 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -124,7 +124,7 @@ extern int errno; | |||
| 124 | #endif /* VMS */ | 124 | #endif /* VMS */ |
| 125 | 125 | ||
| 126 | #ifndef BSD4_1 | 126 | #ifndef BSD4_1 |
| 127 | #ifdef BSD /* this is done this way to avoid defined (BSD) || defined (USG) | 127 | #ifdef BSD_SYSTEM /* avoid writing defined (BSD_SYSTEM) || defined (USG) |
| 128 | because the vms compiler doesn't grok `defined' */ | 128 | because the vms compiler doesn't grok `defined' */ |
| 129 | #include <fcntl.h> | 129 | #include <fcntl.h> |
| 130 | #endif | 130 | #endif |
| @@ -138,6 +138,7 @@ extern int errno; | |||
| 138 | #ifndef MSDOS | 138 | #ifndef MSDOS |
| 139 | #include <sys/ioctl.h> | 139 | #include <sys/ioctl.h> |
| 140 | #endif | 140 | #endif |
| 141 | |||
| 141 | #include "systty.h" | 142 | #include "systty.h" |
| 142 | #include "syswait.h" | 143 | #include "syswait.h" |
| 143 | 144 | ||
| @@ -225,8 +226,7 @@ static int baud_convert[] = | |||
| 225 | }; | 226 | }; |
| 226 | #endif | 227 | #endif |
| 227 | 228 | ||
| 228 | #ifdef HAVE_TERMIOS_H | 229 | #ifdef HAVE_TERMIOS |
| 229 | #include <termios.h> | ||
| 230 | extern speed_t ospeed; | 230 | extern speed_t ospeed; |
| 231 | #else | 231 | #else |
| 232 | extern short ospeed; | 232 | extern short ospeed; |
| @@ -377,7 +377,7 @@ set_exclusive_use (fd) | |||
| 377 | 377 | ||
| 378 | wait_without_blocking () | 378 | wait_without_blocking () |
| 379 | { | 379 | { |
| 380 | #ifdef BSD | 380 | #ifdef BSD_SYSTEM |
| 381 | wait3 (0, WNOHANG | WUNTRACED, 0); | 381 | wait3 (0, WNOHANG | WUNTRACED, 0); |
| 382 | #else | 382 | #else |
| 383 | croak ("wait_without_blocking"); | 383 | croak ("wait_without_blocking"); |
| @@ -409,7 +409,7 @@ wait_for_termination (pid) | |||
| 409 | status = SYS$FORCEX (&pid, 0, 0); | 409 | status = SYS$FORCEX (&pid, 0, 0); |
| 410 | break; | 410 | break; |
| 411 | #else /* not VMS */ | 411 | #else /* not VMS */ |
| 412 | #if defined (BSD) || (defined (HPUX) && !defined (HPUX_5)) | 412 | #if defined (BSD_SYSTEM) || (defined (HPUX) && !defined (HPUX_5)) |
| 413 | /* Note that kill returns -1 even if the process is just a zombie now. | 413 | /* Note that kill returns -1 even if the process is just a zombie now. |
| 414 | But inevitably a SIGCHLD interrupt should be generated | 414 | But inevitably a SIGCHLD interrupt should be generated |
| 415 | and child_sig will do wait3 and make the process go away. */ | 415 | and child_sig will do wait3 and make the process go away. */ |
| @@ -428,12 +428,12 @@ wait_for_termination (pid) | |||
| 428 | sleep (1); | 428 | sleep (1); |
| 429 | else | 429 | else |
| 430 | sigpause (SIGEMPTYMASK); | 430 | sigpause (SIGEMPTYMASK); |
| 431 | #else /* not BSD, and not HPUX version >= 6 */ | 431 | #else /* not BSD_SYSTEM, and not HPUX version >= 6 */ |
| 432 | #if defined (UNIPLUS) | 432 | #if defined (UNIPLUS) |
| 433 | if (0 > kill (pid, 0)) | 433 | if (0 > kill (pid, 0)) |
| 434 | break; | 434 | break; |
| 435 | wait (0); | 435 | wait (0); |
| 436 | #else /* neither BSD nor UNIPLUS: random sysV */ | 436 | #else /* neither BSD_SYSTEM nor UNIPLUS: random sysV */ |
| 437 | #ifdef POSIX_SIGNALS /* would this work for LINUX as well? */ | 437 | #ifdef POSIX_SIGNALS /* would this work for LINUX as well? */ |
| 438 | sigblock (sigmask (SIGCHLD)); | 438 | sigblock (sigmask (SIGCHLD)); |
| 439 | if (0 > kill (pid, 0)) | 439 | if (0 > kill (pid, 0)) |
| @@ -466,7 +466,7 @@ wait_for_termination (pid) | |||
| 466 | #endif /* not HAVE_SYSV_SIGPAUSE */ | 466 | #endif /* not HAVE_SYSV_SIGPAUSE */ |
| 467 | #endif /* not POSIX_SIGNALS */ | 467 | #endif /* not POSIX_SIGNALS */ |
| 468 | #endif /* not UNIPLUS */ | 468 | #endif /* not UNIPLUS */ |
| 469 | #endif /* not BSD, and not HPUX version >= 6 */ | 469 | #endif /* not BSD_SYSTEM, and not HPUX version >= 6 */ |
| 470 | #endif /* not VMS */ | 470 | #endif /* not VMS */ |
| 471 | #else /* not subprocesses */ | 471 | #else /* not subprocesses */ |
| 472 | #if __DJGPP__ > 1 | 472 | #if __DJGPP__ > 1 |
| @@ -1671,7 +1671,7 @@ reset_sys_modes () | |||
| 1671 | 1671 | ||
| 1672 | reset_terminal_modes (); | 1672 | reset_terminal_modes (); |
| 1673 | fflush (stdout); | 1673 | fflush (stdout); |
| 1674 | #ifdef BSD | 1674 | #ifdef BSD_SYSTEM |
| 1675 | #ifndef BSD4_1 | 1675 | #ifndef BSD4_1 |
| 1676 | /* Avoid possible loss of output when changing terminal modes. */ | 1676 | /* Avoid possible loss of output when changing terminal modes. */ |
| 1677 | fsync (fileno (stdout)); | 1677 | fsync (fileno (stdout)); |
| @@ -2758,7 +2758,7 @@ sys_sigsetmask (sigset_t new_mask) | |||
| 2758 | # define random rand | 2758 | # define random rand |
| 2759 | # else | 2759 | # else |
| 2760 | # define random() (rand () >> 16) | 2760 | # define random() (rand () >> 16) |
| 2761 | # endif /* !BSD */ | 2761 | # endif /* !USG */ |
| 2762 | # endif /* RAND_MAX != 2147483647 */ | 2762 | # endif /* RAND_MAX != 2147483647 */ |
| 2763 | # endif /* RAND_MAX != 32767 */ | 2763 | # endif /* RAND_MAX != 32767 */ |
| 2764 | # endif /* !HAVE_LRAND48 */ | 2764 | # endif /* !HAVE_LRAND48 */ |