diff options
| author | Dan Nicolaescu | 2008-07-16 07:45:52 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-07-16 07:45:52 +0000 |
| commit | c7607b94f52c04bcc4e1e8b00ce954c9e34c3e19 (patch) | |
| tree | 8d84d5379ef49e50fa966cb3fc06f2c974b1bdb5 | |
| parent | 2c369af74f77c013250f3f7ba2cca52abb941e39 (diff) | |
| download | emacs-c7607b94f52c04bcc4e1e8b00ce954c9e34c3e19.tar.gz emacs-c7607b94f52c04bcc4e1e8b00ce954c9e34c3e19.zip | |
* sysdep.c: Remove code depending on NEED_PTEM_H, unused. Remove
if 0-ed code.
(baud_convert): Don't depend on BAUD_CONVERT, all definitions the
were the same as the default.
* s/vms.h (BAUD_CONVERT): Remove, same as the default.
Remove boilerplate comments.
* s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
(HAVE_SYSVIPC): Remove, unused.
(LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
| -rw-r--r-- | src/ChangeLog | 15 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 80 | ||||
| -rw-r--r-- | src/s/vms.h | 49 | ||||
| -rw-r--r-- | src/sysdep.c | 131 |
4 files changed, 10 insertions, 265 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f3cb107438e..e121a7625f0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * sysdep.c: Remove code depending on NEED_PTEM_H, unused. Remove | ||
| 4 | if 0-ed code. | ||
| 5 | (baud_convert): Don't depend on BAUD_CONVERT, all definitions the | ||
| 6 | were the same as the default. | ||
| 7 | * s/vms.h (BAUD_CONVERT): Remove, same as the default. | ||
| 8 | Remove boilerplate comments. | ||
| 9 | * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default. | ||
| 10 | (HAVE_SYSVIPC): Remove, unused. | ||
| 11 | (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore. | ||
| 12 | |||
| 3 | * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default. | 13 | * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default. |
| 4 | Remove boilerplate comments. | 14 | Remove boilerplate comments. |
| 5 | * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default. | 15 | * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default. |
| @@ -8,11 +18,6 @@ | |||
| 8 | Remove boilerplate comments. | 18 | Remove boilerplate comments. |
| 9 | * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally. | 19 | * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally. |
| 10 | 20 | ||
| 11 | * sysdep.c: Remove code depending on NEED_PTEM_H, unused. Remove | ||
| 12 | if 0-ed code. | ||
| 13 | (baud_convert): Don't depend on BAUD_CONVERT, all definitions the | ||
| 14 | were the same as the default. | ||
| 15 | |||
| 16 | * m/ibms390.h: | 21 | * m/ibms390.h: |
| 17 | * m/intel386.h: | 22 | * m/intel386.h: |
| 18 | * m/m68k.h: | 23 | * m/m68k.h: |
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index 8411f74191b..45242c6862b 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -36,17 +36,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 36 | 36 | ||
| 37 | #define SYSTEM_TYPE "hpux" | 37 | #define SYSTEM_TYPE "hpux" |
| 38 | 38 | ||
| 39 | /* `nomultiplejobs' should be defined if your system's shell | ||
| 40 | does not have "job control" (the ability to stop a program, | ||
| 41 | run some other program, then continue the first one). | ||
| 42 | |||
| 43 | On hpux this depends on the precise kind of machine in use, | ||
| 44 | so the m- file defines this symbol if appropriate. */ | ||
| 45 | |||
| 46 | /* Default is to set interrupt_input to 0: don't do input buffering within Emacs */ | ||
| 47 | |||
| 48 | /* #define INTERRUPT_INPUT */ | ||
| 49 | |||
| 50 | /* Letter to use in finding device name of first pty, | 39 | /* Letter to use in finding device name of first pty, |
| 51 | if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */ | 40 | if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */ |
| 52 | 41 | ||
| @@ -85,22 +74,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 85 | 74 | ||
| 86 | #define subprocesses | 75 | #define subprocesses |
| 87 | 76 | ||
| 88 | /* If your system uses COFF (Common Object File Format) then define the | ||
| 89 | preprocessor symbol "COFF". */ | ||
| 90 | |||
| 91 | /* #define COFF */ | ||
| 92 | |||
| 93 | /* define MAIL_USE_FLOCK if the mailer uses flock | ||
| 94 | to interlock access to /usr/spool/mail/$USER. | ||
| 95 | The alternative is that a lock file named | ||
| 96 | /usr/spool/mail/$USER.lock. */ | ||
| 97 | |||
| 98 | /* #define MAIL_USE_FLOCK */ | ||
| 99 | |||
| 100 | /* Say we have the SYSV style of interprocess communication. */ | ||
| 101 | |||
| 102 | #define HAVE_SYSVIPC | ||
| 103 | |||
| 104 | /* Define CLASH_DETECTION if you want lock files to be written | 77 | /* Define CLASH_DETECTION if you want lock files to be written |
| 105 | so that Emacs can tell instantly when you try to modify | 78 | so that Emacs can tell instantly when you try to modify |
| 106 | a file that someone else has modified in his Emacs. */ | 79 | a file that someone else has modified in his Emacs. */ |
| @@ -112,24 +85,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 112 | 85 | ||
| 113 | /* Special hacks needed to make Emacs run on this system. */ | 86 | /* Special hacks needed to make Emacs run on this system. */ |
| 114 | 87 | ||
| 115 | /* | ||
| 116 | * Make the sigsetmask function go away. Don't know what the | ||
| 117 | * ramifications of this are, but doesn't seem possible to | ||
| 118 | * emulate it properly anyway at this point. | ||
| 119 | */ | ||
| 120 | |||
| 121 | /* HPUX has sigsetmask */ | ||
| 122 | /* #define sigsetmask(mask) / * Null expansion * / */ | ||
| 123 | |||
| 124 | /* setjmp and longjmp can safely replace _setjmp and _longjmp, | ||
| 125 | but they will run slower. */ | ||
| 126 | |||
| 127 | /* HP-UX has _setjmp and _longjmp */ | ||
| 128 | /* | ||
| 129 | #define _setjmp setjmp | ||
| 130 | #define _longjmp longjmp | ||
| 131 | */ | ||
| 132 | |||
| 133 | /* Use the system provided termcap(3) library */ | 88 | /* Use the system provided termcap(3) library */ |
| 134 | #define TERMINFO | 89 | #define TERMINFO |
| 135 | 90 | ||
| @@ -138,31 +93,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 138 | 93 | ||
| 139 | #define BROKEN_SIGIO | 94 | #define BROKEN_SIGIO |
| 140 | 95 | ||
| 141 | /* USG systems tend to put everything declared static | ||
| 142 | into the initialized data area, which becomes pure after dumping Emacs. | ||
| 143 | Foil this. Emacs carefully avoids static vars inside functions. | ||
| 144 | http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg00368.html | ||
| 145 | As of at least HPUX 11.11 (2000), it seems this workaround is no | ||
| 146 | longer needed. Try uncommenting the following if you have problems | ||
| 147 | on older versions. */ | ||
| 148 | |||
| 149 | /* This is unnecessary in HPUX versions 10.20, 11.0, 11.11, 11.23. */ | ||
| 150 | |||
| 151 | /* #define static */ | ||
| 152 | |||
| 153 | /* Some additional system facilities exist. */ | 96 | /* Some additional system facilities exist. */ |
| 154 | 97 | ||
| 155 | #define HAVE_PERROR /* Delete this line for version 6. */ | 98 | #define HAVE_PERROR /* Delete this line for version 6. */ |
| 156 | 99 | ||
| 157 | /* The following maps shared exec file to demand loaded exec. | ||
| 158 | Don't do this as demand loaded exec is broken in hpux. */ | ||
| 159 | |||
| 160 | /* Baud-rate values in tty status have nonstandard meanings. */ | ||
| 161 | |||
| 162 | #define BAUD_CONVERT \ | ||
| 163 | { 0, 50, 75, 110, 135, 150, 200, 300, 600, 900, 1200, \ | ||
| 164 | 1800, 2400, 3600, 4800, 7200, 9600, 19200, 38400 } | ||
| 165 | |||
| 166 | /* This is how to get the device name of the tty end of a pty. */ | 100 | /* This is how to get the device name of the tty end of a pty. */ |
| 167 | #define PTY_TTY_NAME_SPRINTF \ | 101 | #define PTY_TTY_NAME_SPRINTF \ |
| 168 | sprintf (pty_name, "/dev/pty/tty%c%x", c, i); | 102 | sprintf (pty_name, "/dev/pty/tty%c%x", c, i); |
| @@ -177,21 +111,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 177 | /* Don't use shared libraries. unexec doesn't handle them. | 111 | /* Don't use shared libraries. unexec doesn't handle them. |
| 178 | Note GCC automatically passes -a archive to ld, and it has its own | 112 | Note GCC automatically passes -a archive to ld, and it has its own |
| 179 | conflicting -a. */ | 113 | conflicting -a. */ |
| 180 | #ifdef __GNUC__ | ||
| 181 | |||
| 182 | #define LD_SWITCH_SYSTEM_TEMACS | ||
| 183 | |||
| 184 | #else /* not __GNUC__ */ | ||
| 185 | /* Note, -a only works for hpux ld, not cc. And "cc LD_SWITCH_SYSTEM" | ||
| 186 | is used in configure's $ac_link to do various autoconf checks. | ||
| 187 | Since we only need -a when unexec'ing, only pass in -a to | ||
| 188 | "ld temacs" (ghazi@caip.rutgers.edu 7/10/97). */ | ||
| 189 | #if (defined(hp9000s700) || defined(__hp9000s700)) | ||
| 190 | #define LD_SWITCH_SYSTEM_TEMACS -L/lib/pa1.1 | ||
| 191 | #else /* not (defined(hp9000s700) || defined(__hp9000s700)) */ | ||
| 192 | #define LD_SWITCH_SYSTEM_TEMACS | 114 | #define LD_SWITCH_SYSTEM_TEMACS |
| 193 | #endif /* not (defined(hp9000s700) || defined(__hp9000s700)) */ | ||
| 194 | #endif /* not __GNUC__ */ | ||
| 195 | 115 | ||
| 196 | /* Some hpux 8 machines seem to have TIOCGWINSZ, | 116 | /* Some hpux 8 machines seem to have TIOCGWINSZ, |
| 197 | and none have sioctl.h, so might as well define this. */ | 117 | and none have sioctl.h, so might as well define this. */ |
diff --git a/src/s/vms.h b/src/s/vms.h index 6e269e61a0d..7c2d4ad43d1 100644 --- a/src/s/vms.h +++ b/src/s/vms.h | |||
| @@ -33,43 +33,18 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | 33 | ||
| 34 | #define SYSTEM_TYPE "vax-vms" | 34 | #define SYSTEM_TYPE "vax-vms" |
| 35 | 35 | ||
| 36 | /* NOMULTIPLEJOBS should be defined if your system's shell | ||
| 37 | does not have "job control" (the ability to stop a program, | ||
| 38 | run some other program, then continue the first one). */ | ||
| 39 | |||
| 40 | /* #define NOMULTIPLEJOBS */ | ||
| 41 | |||
| 42 | /* INTERRUPT_INPUT controls a default for Unix systems. | ||
| 43 | VMS uses a separate mechanism. */ | ||
| 44 | |||
| 45 | /* #define INTERRUPT_INPUT */ | ||
| 46 | |||
| 47 | /* Letter to use in finding device name of first pty, | 36 | /* Letter to use in finding device name of first pty, |
| 48 | if system supports pty's. 'a' means it is /dev/ptya0 */ | 37 | if system supports pty's. 'a' means it is /dev/ptya0 */ |
| 49 | 38 | ||
| 50 | #define FIRST_PTY_LETTER 'a' | 39 | #define FIRST_PTY_LETTER 'a' |
| 51 | 40 | ||
| 52 | /* | 41 | /* |
| 53 | * Define HAVE_PTYS if the system supports pty devices. | ||
| 54 | */ | ||
| 55 | |||
| 56 | /* #define HAVE_PTYS */ | ||
| 57 | |||
| 58 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | ||
| 59 | |||
| 60 | /* #define HAVE_SOCKETS */ | ||
| 61 | |||
| 62 | /* | ||
| 63 | * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | 42 | * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate |
| 64 | * The 4.2 opendir, etc., library functions. | 43 | * The 4.2 opendir, etc., library functions. |
| 65 | */ | 44 | */ |
| 66 | 45 | ||
| 67 | #define NONSYSTEM_DIR_LIBRARY | 46 | #define NONSYSTEM_DIR_LIBRARY |
| 68 | 47 | ||
| 69 | /* Define this symbol if your system has the functions bcopy, etc. */ | ||
| 70 | |||
| 71 | /* #define BSTRING */ | ||
| 72 | |||
| 73 | /* subprocesses should be defined if you want to | 48 | /* subprocesses should be defined if you want to |
| 74 | have code for asynchronous subprocesses | 49 | have code for asynchronous subprocesses |
| 75 | (as used in M-x compile and M-x shell). | 50 | (as used in M-x compile and M-x shell). |
| @@ -78,24 +53,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 78 | 53 | ||
| 79 | #define subprocesses | 54 | #define subprocesses |
| 80 | 55 | ||
| 81 | /* If your system uses COFF (Common Object File Format) then define the | ||
| 82 | preprocessor symbol "COFF". */ | ||
| 83 | |||
| 84 | /* #define COFF */ | ||
| 85 | |||
| 86 | /* define MAIL_USE_FLOCK if the mailer uses flock | ||
| 87 | to interlock access to /usr/spool/mail/$USER. | ||
| 88 | The alternative is that a lock file named | ||
| 89 | /usr/spool/mail/$USER.lock. */ | ||
| 90 | |||
| 91 | /* #define MAIL_USE_FLOCK */ | ||
| 92 | |||
| 93 | /* Define CLASH_DETECTION if you want lock files to be written | ||
| 94 | so that Emacs can tell instantly when you try to modify | ||
| 95 | a file that someone else has modified in his Emacs. */ | ||
| 96 | |||
| 97 | /* #define CLASH_DETECTION */ | ||
| 98 | |||
| 99 | /* Define the maximum record length for print strings, if needed. */ | 56 | /* Define the maximum record length for print strings, if needed. */ |
| 100 | 57 | ||
| 101 | #define MAX_PRINT_CHARS 300 | 58 | #define MAX_PRINT_CHARS 300 |
| @@ -225,12 +182,6 @@ globalref char sdata[]; | |||
| 225 | #define DATA_START (((int) sdata + 511) & ~511) | 182 | #define DATA_START (((int) sdata + 511) & ~511) |
| 226 | #define TEXT_START 512 | 183 | #define TEXT_START 512 |
| 227 | 184 | ||
| 228 | /* Baud-rate values from tty status are not standard. */ | ||
| 229 | |||
| 230 | #define BAUD_CONVERT \ | ||
| 231 | { 0, 50, 75, 110, 134, 150, 300, 600, 1200, 1800, \ | ||
| 232 | 2000, 2400, 3600, 4800, 7200, 9600, 19200 } | ||
| 233 | |||
| 234 | #define PURESIZE 330000 | 185 | #define PURESIZE 330000 |
| 235 | 186 | ||
| 236 | /* Stdio FILE type has extra indirect on VMS, so must alter this macro. */ | 187 | /* Stdio FILE type has extra indirect on VMS, so must alter this macro. */ |
diff --git a/src/sysdep.c b/src/sysdep.c index ef56346a313..1721172e0d6 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -31,13 +31,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 31 | #include "lisp.h" | 31 | #include "lisp.h" |
| 32 | /* Including stdlib.h isn't necessarily enough to get srandom | 32 | /* Including stdlib.h isn't necessarily enough to get srandom |
| 33 | declared, e.g. without __USE_XOPEN_EXTENDED with glibc 2. */ | 33 | declared, e.g. without __USE_XOPEN_EXTENDED with glibc 2. */ |
| 34 | #ifdef HAVE_RANDOM | ||
| 35 | #if 0 /* Don't prototype srandom; it takes an unsigned argument on | ||
| 36 | some systems, and an unsigned long on others, like FreeBSD | ||
| 37 | 4.1. */ | ||
| 38 | extern void srandom P_ ((unsigned int)); | ||
| 39 | #endif | ||
| 40 | #endif | ||
| 41 | 34 | ||
| 42 | /* The w32 build defines select stuff in w32.h, which is included by | 35 | /* The w32 build defines select stuff in w32.h, which is included by |
| 43 | sys/select.h (included below). */ | 36 | sys/select.h (included below). */ |
| @@ -138,12 +131,6 @@ extern int errno; | |||
| 138 | #if defined (USG) | 131 | #if defined (USG) |
| 139 | #include <sys/utsname.h> | 132 | #include <sys/utsname.h> |
| 140 | #include <memory.h> | 133 | #include <memory.h> |
| 141 | #if defined (TIOCGWINSZ) | ||
| 142 | #ifdef NEED_PTEM_H | ||
| 143 | #include <sys/stream.h> | ||
| 144 | #include <sys/ptem.h> | ||
| 145 | #endif | ||
| 146 | #endif /* TIOCGWINSZ */ | ||
| 147 | #endif /* USG */ | 134 | #endif /* USG */ |
| 148 | 135 | ||
| 149 | extern int quit_char; | 136 | extern int quit_char; |
| @@ -199,14 +186,10 @@ struct utimbuf { | |||
| 199 | #endif | 186 | #endif |
| 200 | 187 | ||
| 201 | static int baud_convert[] = | 188 | static int baud_convert[] = |
| 202 | #ifdef BAUD_CONVERT | ||
| 203 | BAUD_CONVERT; | ||
| 204 | #else | ||
| 205 | { | 189 | { |
| 206 | 0, 50, 75, 110, 135, 150, 200, 300, 600, 1200, | 190 | 0, 50, 75, 110, 135, 150, 200, 300, 600, 1200, |
| 207 | 1800, 2400, 4800, 9600, 19200, 38400 | 191 | 1800, 2400, 4800, 9600, 19200, 38400 |
| 208 | }; | 192 | }; |
| 209 | #endif | ||
| 210 | 193 | ||
| 211 | #ifdef HAVE_SPEED_T | 194 | #ifdef HAVE_SPEED_T |
| 212 | #include <termios.h> | 195 | #include <termios.h> |
| @@ -593,13 +576,6 @@ child_setup_tty (out) | |||
| 593 | #endif | 576 | #endif |
| 594 | s.main.c_lflag &= ~ECHO; /* Disable echo */ | 577 | s.main.c_lflag &= ~ECHO; /* Disable echo */ |
| 595 | s.main.c_lflag |= ISIG; /* Enable signals */ | 578 | s.main.c_lflag |= ISIG; /* Enable signals */ |
| 596 | #if 0 /* This causes bugs in (for instance) telnet to certain sites. */ | ||
| 597 | s.main.c_iflag &= ~ICRNL; /* Disable map of CR to NL on input */ | ||
| 598 | #ifdef INLCR /* Just being cautious, since I can't check how | ||
| 599 | widespread INLCR is--rms. */ | ||
| 600 | s.main.c_iflag &= ~INLCR; /* Disable map of NL to CR on input */ | ||
| 601 | #endif | ||
| 602 | #endif | ||
| 603 | #ifdef IUCLC | 579 | #ifdef IUCLC |
| 604 | s.main.c_iflag &= ~IUCLC; /* Disable downcasing on input. */ | 580 | s.main.c_iflag &= ~IUCLC; /* Disable downcasing on input. */ |
| 605 | #endif | 581 | #endif |
| @@ -611,12 +587,6 @@ child_setup_tty (out) | |||
| 611 | #endif | 587 | #endif |
| 612 | s.main.c_oflag &= ~TAB3; /* Disable tab expansion */ | 588 | s.main.c_oflag &= ~TAB3; /* Disable tab expansion */ |
| 613 | s.main.c_cflag = (s.main.c_cflag & ~CSIZE) | CS8; /* Don't strip 8th bit */ | 589 | s.main.c_cflag = (s.main.c_cflag & ~CSIZE) | CS8; /* Don't strip 8th bit */ |
| 614 | #if 0 | ||
| 615 | /* Said to be unnecessary: */ | ||
| 616 | s.main.c_cc[VMIN] = 1; /* minimum number of characters to accept */ | ||
| 617 | s.main.c_cc[VTIME] = 0; /* wait forever for at least 1 character */ | ||
| 618 | #endif | ||
| 619 | |||
| 620 | s.main.c_lflag |= ICANON; /* Enable erase/kill and eof processing */ | 590 | s.main.c_lflag |= ICANON; /* Enable erase/kill and eof processing */ |
| 621 | s.main.c_cc[VEOF] = 04; /* insure that EOF is Control-D */ | 591 | s.main.c_cc[VEOF] = 04; /* insure that EOF is Control-D */ |
| 622 | s.main.c_cc[VERASE] = CDISABLE; /* disable erase processing */ | 592 | s.main.c_cc[VERASE] = CDISABLE; /* disable erase processing */ |
| @@ -862,10 +832,6 @@ sys_subshell () | |||
| 862 | if (epwd) | 832 | if (epwd) |
| 863 | putenv (old_pwd); /* restore previous value */ | 833 | putenv (old_pwd); /* restore previous value */ |
| 864 | } | 834 | } |
| 865 | #if 0 /* This is also reported if last command executed in subshell failed, KFS */ | ||
| 866 | if (st) | ||
| 867 | report_file_error ("Can't execute subshell", Fcons (build_string (sh), Qnil)); | ||
| 868 | #endif | ||
| 869 | #else /* not MSDOS */ | 835 | #else /* not MSDOS */ |
| 870 | #ifdef WINDOWSNT | 836 | #ifdef WINDOWSNT |
| 871 | /* Waits for process completion */ | 837 | /* Waits for process completion */ |
| @@ -1279,13 +1245,6 @@ init_sys_modes (tty_out) | |||
| 1279 | { | 1245 | { |
| 1280 | struct emacs_tty tty; | 1246 | struct emacs_tty tty; |
| 1281 | 1247 | ||
| 1282 | #ifdef VMS | ||
| 1283 | #if 0 | ||
| 1284 | static int oob_chars[2] = {0, 1 << 7}; /* catch C-g's */ | ||
| 1285 | extern int (*interrupt_signal) (); | ||
| 1286 | #endif | ||
| 1287 | #endif | ||
| 1288 | |||
| 1289 | Vtty_erase_char = Qnil; | 1248 | Vtty_erase_char = Qnil; |
| 1290 | 1249 | ||
| 1291 | if (noninteractive) | 1250 | if (noninteractive) |
| @@ -1304,21 +1263,8 @@ init_sys_modes (tty_out) | |||
| 1304 | timer_ef = get_timer_event_flag (); | 1263 | timer_ef = get_timer_event_flag (); |
| 1305 | /* LIB$GET_EF (&timer_ef); */ | 1264 | /* LIB$GET_EF (&timer_ef); */ |
| 1306 | SYS$CLREF (timer_ef); | 1265 | SYS$CLREF (timer_ef); |
| 1307 | #if 0 | ||
| 1308 | if (!process_ef) | ||
| 1309 | { | ||
| 1310 | LIB$GET_EF (&process_ef); | ||
| 1311 | SYS$CLREF (process_ef); | ||
| 1312 | } | ||
| 1313 | if (input_ef / 32 != process_ef / 32) | ||
| 1314 | croak ("Input and process event flags in different clusters."); | ||
| 1315 | #endif | ||
| 1316 | if (input_ef / 32 != timer_ef / 32) | 1266 | if (input_ef / 32 != timer_ef / 32) |
| 1317 | croak ("Input and timer event flags in different clusters."); | 1267 | croak ("Input and timer event flags in different clusters."); |
| 1318 | #if 0 | ||
| 1319 | input_eflist = ((unsigned) 1 << (input_ef % 32)) | | ||
| 1320 | ((unsigned) 1 << (process_ef % 32)); | ||
| 1321 | #endif | ||
| 1322 | timer_eflist = ((unsigned) 1 << (input_ef % 32)) | | 1268 | timer_eflist = ((unsigned) 1 << (input_ef % 32)) | |
| 1323 | ((unsigned) 1 << (timer_ef % 32)); | 1269 | ((unsigned) 1 << (timer_ef % 32)); |
| 1324 | #ifndef VMS4_4 | 1270 | #ifndef VMS4_4 |
| @@ -2341,9 +2287,6 @@ init_system_name () | |||
| 2341 | if (hp) | 2287 | if (hp) |
| 2342 | { | 2288 | { |
| 2343 | char *fqdn = (char *) hp->h_name; | 2289 | char *fqdn = (char *) hp->h_name; |
| 2344 | #if 0 | ||
| 2345 | char *p; | ||
| 2346 | #endif | ||
| 2347 | 2290 | ||
| 2348 | if (!index (fqdn, '.')) | 2291 | if (!index (fqdn, '.')) |
| 2349 | { | 2292 | { |
| @@ -2358,62 +2301,10 @@ init_system_name () | |||
| 2358 | fqdn = *alias; | 2301 | fqdn = *alias; |
| 2359 | } | 2302 | } |
| 2360 | hostname = fqdn; | 2303 | hostname = fqdn; |
| 2361 | #if 0 | ||
| 2362 | /* Convert the host name to lower case. */ | ||
| 2363 | /* Using ctype.h here would introduce a possible locale | ||
| 2364 | dependence that is probably wrong for hostnames. */ | ||
| 2365 | p = hostname; | ||
| 2366 | while (*p) | ||
| 2367 | { | ||
| 2368 | if (*p >= 'A' && *p <= 'Z') | ||
| 2369 | *p += 'a' - 'A'; | ||
| 2370 | p++; | ||
| 2371 | } | ||
| 2372 | #endif | ||
| 2373 | } | 2304 | } |
| 2374 | #endif /* !HAVE_GETADDRINFO */ | 2305 | #endif /* !HAVE_GETADDRINFO */ |
| 2375 | } | 2306 | } |
| 2376 | #endif /* HAVE_SOCKETS */ | 2307 | #endif /* HAVE_SOCKETS */ |
| 2377 | /* We used to try using getdomainname here, | ||
| 2378 | but NIIBE Yutaka <gniibe@etl.go.jp> says that | ||
| 2379 | getdomainname gets the NIS/YP domain which often is not the same | ||
| 2380 | as in Internet domain name. */ | ||
| 2381 | #if 0 /* Turned off because sysinfo is not really likely to return the | ||
| 2382 | correct Internet domain. */ | ||
| 2383 | #if (HAVE_SYSINFO && defined (SI_SRPC_DOMAIN)) | ||
| 2384 | if (! index (hostname, '.')) | ||
| 2385 | { | ||
| 2386 | /* The hostname is not fully qualified. Append the domain name. */ | ||
| 2387 | |||
| 2388 | int hostlen = strlen (hostname); | ||
| 2389 | int domain_size = 256; | ||
| 2390 | |||
| 2391 | for (;;) | ||
| 2392 | { | ||
| 2393 | char *domain = (char *) alloca (domain_size + 1); | ||
| 2394 | char *fqdn = (char *) alloca (hostlen + 1 + domain_size + 1); | ||
| 2395 | int sys_domain_size = sysinfo (SI_SRPC_DOMAIN, domain, domain_size); | ||
| 2396 | if (sys_domain_size <= 0) | ||
| 2397 | break; | ||
| 2398 | if (domain_size < sys_domain_size) | ||
| 2399 | { | ||
| 2400 | domain_size = sys_domain_size; | ||
| 2401 | continue; | ||
| 2402 | } | ||
| 2403 | strcpy (fqdn, hostname); | ||
| 2404 | if (domain[0] == '.') | ||
| 2405 | strcpy (fqdn + hostlen, domain); | ||
| 2406 | else if (domain[0] != 0) | ||
| 2407 | { | ||
| 2408 | fqdn[hostlen] = '.'; | ||
| 2409 | strcpy (fqdn + hostlen + 1, domain); | ||
| 2410 | } | ||
| 2411 | hostname = fqdn; | ||
| 2412 | break; | ||
| 2413 | } | ||
| 2414 | } | ||
| 2415 | #endif /* HAVE_SYSINFO && defined (SI_SRPC_DOMAIN) */ | ||
| 2416 | #endif /* 0 */ | ||
| 2417 | Vsystem_name = build_string (hostname); | 2308 | Vsystem_name = build_string (hostname); |
| 2418 | #endif /* HAVE_GETHOSTNAME */ | 2309 | #endif /* HAVE_GETHOSTNAME */ |
| 2419 | #endif /* VMS */ | 2310 | #endif /* VMS */ |
| @@ -4112,28 +4003,6 @@ sys_read (fildes, buf, nbyte) | |||
| 4112 | return read (fildes, buf, (nbyte < MAXIOSIZE ? nbyte : MAXIOSIZE)); | 4003 | return read (fildes, buf, (nbyte < MAXIOSIZE ? nbyte : MAXIOSIZE)); |
| 4113 | } | 4004 | } |
| 4114 | 4005 | ||
| 4115 | #if 0 | ||
| 4116 | int | ||
| 4117 | sys_write (fildes, buf, nbyte) | ||
| 4118 | int fildes; | ||
| 4119 | char *buf; | ||
| 4120 | unsigned int nbyte; | ||
| 4121 | { | ||
| 4122 | register int nwrote, rtnval = 0; | ||
| 4123 | |||
| 4124 | while (nbyte > MAXIOSIZE && (nwrote = write (fildes, buf, MAXIOSIZE)) > 0) { | ||
| 4125 | nbyte -= nwrote; | ||
| 4126 | buf += nwrote; | ||
| 4127 | rtnval += nwrote; | ||
| 4128 | } | ||
| 4129 | if (nwrote < 0) | ||
| 4130 | return rtnval ? rtnval : -1; | ||
| 4131 | if ((nwrote = write (fildes, buf, nbyte)) < 0) | ||
| 4132 | return rtnval ? rtnval : -1; | ||
| 4133 | return (rtnval + nwrote); | ||
| 4134 | } | ||
| 4135 | #endif /* 0 */ | ||
| 4136 | |||
| 4137 | /* | 4006 | /* |
| 4138 | * VAX/VMS VAX C RTL really loses. It insists that records | 4007 | * VAX/VMS VAX C RTL really loses. It insists that records |
| 4139 | * end with a newline (carriage return) character, and if they | 4008 | * end with a newline (carriage return) character, and if they |