diff options
| author | Richard M. Stallman | 1994-11-01 10:27:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-11-01 10:27:02 +0000 |
| commit | 95ed00257adf283a2740cb3e4feb83c075620ef8 (patch) | |
| tree | 8e82b5c8eae9e2d8d991c77cd52b06285be9b5c9 /src/s | |
| parent | b0bfea296d4127efcfe8da3f2dfdddb7324e57ee (diff) | |
| download | emacs-95ed00257adf283a2740cb3e4feb83c075620ef8.tar.gz emacs-95ed00257adf283a2740cb3e4feb83c075620ef8.zip | |
Initial revision
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/ms-w32.h | 264 |
1 files changed, 264 insertions, 0 deletions
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h new file mode 100644 index 00000000000..53df90e48a3 --- /dev/null +++ b/src/s/ms-w32.h | |||
| @@ -0,0 +1,264 @@ | |||
| 1 | /* System description file for Windows NT. | ||
| 2 | Copyright (C) 1993, 1994 Free Software Foundation, Inc. | ||
| 3 | |||
| 4 | This file is part of GNU Emacs. | ||
| 5 | |||
| 6 | GNU Emacs is free software; you can redistribute it and/or modify | ||
| 7 | it under the terms of the GNU General Public License as published by | ||
| 8 | the Free Software Foundation; either version 2, or (at your option) | ||
| 9 | any later version. | ||
| 10 | |||
| 11 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | GNU General Public License for more details. | ||
| 15 | |||
| 16 | You should have received a copy of the GNU General Public License | ||
| 17 | along with GNU Emacs; see the file COPYING. If not, write to | ||
| 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
| 19 | |||
| 20 | /* | ||
| 21 | * Define symbols to identify the version of Unix this is. | ||
| 22 | * Define all the symbols that apply correctly. | ||
| 23 | */ | ||
| 24 | |||
| 25 | /* #define UNIPLUS */ | ||
| 26 | /* #define USG5 */ | ||
| 27 | /* #define USG */ | ||
| 28 | /* #define HPUX */ | ||
| 29 | /* #define UMAX */ | ||
| 30 | /* #define BSD4_1 */ | ||
| 31 | /* #define BSD4_2 */ | ||
| 32 | /* #define BSD4_3 */ | ||
| 33 | /* #define BSD */ | ||
| 34 | /* #define VMS */ | ||
| 35 | #ifndef WINDOWSNT | ||
| 36 | #define WINDOWSNT | ||
| 37 | #endif | ||
| 38 | #ifndef DOS_NT | ||
| 39 | #define DOS_NT /* MSDOS or WINDOWSNT */ | ||
| 40 | #endif | ||
| 41 | |||
| 42 | /* SYSTEM_TYPE should indicate the kind of system you are using. | ||
| 43 | It sets the Lisp variable system-type. */ | ||
| 44 | |||
| 45 | #define SYSTEM_TYPE "windows-nt" | ||
| 46 | #define SYMS_SYSTEM syms_of_ntterm () | ||
| 47 | |||
| 48 | #define NO_MATHERR | ||
| 49 | #define HAVE_FREXP | ||
| 50 | #define HAVE_FMOD | ||
| 51 | |||
| 52 | /* NOMULTIPLEJOBS should be defined if your system's shell | ||
| 53 | does not have "job control" (the ability to stop a program, | ||
| 54 | run some other program, then continue the first one). */ | ||
| 55 | |||
| 56 | /* #define NOMULTIPLEJOBS */ | ||
| 57 | |||
| 58 | /* Emacs can read input using SIGIO and buffering characters itself, | ||
| 59 | or using CBREAK mode and making C-g cause SIGINT. | ||
| 60 | The choice is controlled by the variable interrupt_input. | ||
| 61 | |||
| 62 | Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO) | ||
| 63 | |||
| 64 | Emacs uses the presence or absence of the SIGIO macro to indicate | ||
| 65 | whether or not signal-driven I/O is possible. It uses | ||
| 66 | INTERRUPT_INPUT to decide whether to use it by default. | ||
| 67 | |||
| 68 | SIGIO can be used only on systems that implement it (4.2 and 4.3). | ||
| 69 | CBREAK mode has two disadvantages | ||
| 70 | 1) At least in 4.2, it is impossible to handle the Meta key properly. | ||
| 71 | I hear that in system V this problem does not exist. | ||
| 72 | 2) Control-G causes output to be discarded. | ||
| 73 | I do not know whether this can be fixed in system V. | ||
| 74 | |||
| 75 | Another method of doing input is planned but not implemented. | ||
| 76 | It would have Emacs fork off a separate process | ||
| 77 | to read the input and send it to the true Emacs process | ||
| 78 | through a pipe. */ | ||
| 79 | |||
| 80 | #define INTERRUPT_INPUT | ||
| 81 | |||
| 82 | /* Letter to use in finding device name of first pty, | ||
| 83 | if system supports pty's. 'a' means it is /dev/ptya0 */ | ||
| 84 | |||
| 85 | #define FIRST_PTY_LETTER 'a' | ||
| 86 | |||
| 87 | /* | ||
| 88 | * Define HAVE_TERMIOS if the system provides POSIX-style | ||
| 89 | * functions and macros for terminal control. | ||
| 90 | * | ||
| 91 | * Define HAVE_TERMIO if the system provides sysV-style ioctls | ||
| 92 | * for terminal control. | ||
| 93 | * | ||
| 94 | * Do not define both. HAVE_TERMIOS is preferred, if it is | ||
| 95 | * supported on your system. | ||
| 96 | */ | ||
| 97 | |||
| 98 | /* #define HAVE_TERMIOS */ | ||
| 99 | /* #define HAVE_TERMIO */ | ||
| 100 | |||
| 101 | /* | ||
| 102 | * Define HAVE_TIMEVAL if the system supports the BSD style clock values. | ||
| 103 | * Look in <sys/time.h> for a timeval structure. | ||
| 104 | */ | ||
| 105 | |||
| 106 | /* #define HAVE_TIMEVAL */ | ||
| 107 | |||
| 108 | /* | ||
| 109 | * Define HAVE_SELECT if the system supports the `select' system call. | ||
| 110 | */ | ||
| 111 | |||
| 112 | /* #define HAVE_SELECT */ | ||
| 113 | |||
| 114 | /* | ||
| 115 | * Define HAVE_PTYS if the system supports pty devices. | ||
| 116 | */ | ||
| 117 | |||
| 118 | /* #define HAVE_PTYS */ | ||
| 119 | |||
| 120 | /* | ||
| 121 | * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | ||
| 122 | * The 4.2 opendir, etc., library functions. | ||
| 123 | */ | ||
| 124 | |||
| 125 | /* #define NONSYSTEM_DIR_LIBRARY */ | ||
| 126 | |||
| 127 | /* Define this symbol if your system has the functions bcopy, etc. */ | ||
| 128 | |||
| 129 | #define BSTRING | ||
| 130 | #define bzero(b, l) memset(b, 0, l) | ||
| 131 | #define bcopy(s, d, l) memcpy(d, s, l) | ||
| 132 | #define bcmp(a, b, l) memcmp(a, b, l) | ||
| 133 | |||
| 134 | /* subprocesses should be defined if you want to | ||
| 135 | have code for asynchronous subprocesses | ||
| 136 | (as used in M-x compile and M-x shell). | ||
| 137 | This is generally OS dependent, and not supported | ||
| 138 | under most USG systems. */ | ||
| 139 | |||
| 140 | #define subprocesses | ||
| 141 | |||
| 142 | /* If your system uses COFF (Common Object File Format) then define the | ||
| 143 | preprocessor symbol "COFF". */ | ||
| 144 | |||
| 145 | #define COFF | ||
| 146 | |||
| 147 | /* define MAIL_USE_FLOCK if the mailer uses flock | ||
| 148 | to interlock access to /usr/spool/mail/$USER. | ||
| 149 | The alternative is that a lock file named | ||
| 150 | /usr/spool/mail/$USER.lock. */ | ||
| 151 | |||
| 152 | /* #define MAIL_USE_FLOCK */ | ||
| 153 | |||
| 154 | /* Define CLASH_DETECTION if you want lock files to be written | ||
| 155 | so that Emacs can tell instantly when you try to modify | ||
| 156 | a file that someone else has modified in his Emacs. */ | ||
| 157 | |||
| 158 | /* #define CLASH_DETECTION */ | ||
| 159 | |||
| 160 | /* Define this if your operating system declares signal handlers to | ||
| 161 | have a type other than the usual. `The usual' is `void' for ANSI C | ||
| 162 | systems (i.e. when the __STDC__ macro is defined), and `int' for | ||
| 163 | pre-ANSI systems. If you're using GCC on an older system, __STDC__ | ||
| 164 | will be defined, but the system's include files will still say that | ||
| 165 | signal returns int or whatever; in situations like that, define | ||
| 166 | this to be what the system's include files want. */ | ||
| 167 | /* #define SIGTYPE int */ | ||
| 168 | |||
| 169 | /* If the character used to separate elements of the executable path | ||
| 170 | is not ':', #define this to be the appropriate character constant. */ | ||
| 171 | #define SEPCHAR ';' | ||
| 172 | |||
| 173 | /* ============================================================ */ | ||
| 174 | |||
| 175 | /* Here, add any special hacks needed | ||
| 176 | to make Emacs work on this system. For example, | ||
| 177 | you might define certain system call names that don't | ||
| 178 | exist on your system, or that do different things on | ||
| 179 | your system and must be used only through an encapsulation | ||
| 180 | (Which you should place, by convention, in sysdep.c). */ | ||
| 181 | |||
| 182 | /* Some compilers tend to put everything declared static | ||
| 183 | into the initialized data area, which becomes pure after dumping Emacs. | ||
| 184 | On these systems, you must #define static as nothing to foil this. | ||
| 185 | Note that emacs carefully avoids static vars inside functions. */ | ||
| 186 | |||
| 187 | /* Define this to be the separator between path elements */ | ||
| 188 | #define DIRECTORY_SEP '\\' | ||
| 189 | |||
| 190 | /* Define this to be the separator between devices and paths */ | ||
| 191 | #define DEVICE_SEP ':' | ||
| 192 | |||
| 193 | /* We'll support either convention on NT. */ | ||
| 194 | #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\') | ||
| 195 | #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) | ||
| 196 | |||
| 197 | /* The null device on Windows NT. */ | ||
| 198 | #define NULL_DEVICE "NUL:" | ||
| 199 | #define EXEC_SUFFIXES ".exe:.com:.bat:" | ||
| 200 | |||
| 201 | #ifndef MAXPATHLEN | ||
| 202 | #define MAXPATHLEN _MAX_PATH | ||
| 203 | #endif | ||
| 204 | |||
| 205 | #define HAVE_DUP2 1 | ||
| 206 | #define HAVE_RENAME 1 | ||
| 207 | #define HAVE_RMDIR 1 | ||
| 208 | #define HAVE_MKDIR 1 | ||
| 209 | #define HAVE_GETHOSTNAME 1 | ||
| 210 | |||
| 211 | /* These have to be defined because our compilers treat __STDC__ as being | ||
| 212 | defined (most of them anyway). */ | ||
| 213 | |||
| 214 | #define access _access | ||
| 215 | #define chdir _chdir | ||
| 216 | #define chmod _chmod | ||
| 217 | #define close _close | ||
| 218 | #define creat _creat | ||
| 219 | #define dup _dup | ||
| 220 | #define dup2 _dup2 | ||
| 221 | #define execlp _execlp | ||
| 222 | #define execvp _execvp | ||
| 223 | #define getpid _getpid | ||
| 224 | #define index strchr | ||
| 225 | #define isatty _isatty | ||
| 226 | #define link _link | ||
| 227 | #define lseek _lseek | ||
| 228 | #define mkdir _mkdir | ||
| 229 | #define mktemp _mktemp | ||
| 230 | #define open _open | ||
| 231 | #define pipe _pipe | ||
| 232 | #define random rand | ||
| 233 | #define read _read | ||
| 234 | #define rmdir _rmdir | ||
| 235 | #define sleep nt_sleep | ||
| 236 | #define srandom srand | ||
| 237 | #define unlink _unlink | ||
| 238 | #define umask _umask | ||
| 239 | #define write _write | ||
| 240 | #define _longjmp longjmp | ||
| 241 | #define spawnve win32_spawnve | ||
| 242 | #define wait win32_wait | ||
| 243 | #define signal win32_signal | ||
| 244 | #define rindex strrchr | ||
| 245 | |||
| 246 | /* Defines that we need that aren't in the standard signal.h */ | ||
| 247 | #define SIGHUP 1 /* Hang up */ | ||
| 248 | #define SIGQUIT 3 /* Quit process */ | ||
| 249 | #define SIGTRAP 5 /* Trace trap */ | ||
| 250 | #define SIGKILL 9 /* Die, die die */ | ||
| 251 | #define SIGPIPE 13 /* Write on pipe with no readers */ | ||
| 252 | #define SIGALRM 14 /* Alarm */ | ||
| 253 | #define SIGCHLD 18 /* Death of child */ | ||
| 254 | |||
| 255 | /* For integration with MSDOS support. */ | ||
| 256 | #define getdisk() (_getdrive () - 1) | ||
| 257 | #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) | ||
| 258 | |||
| 259 | /* Define this so that winsock.h definitions don't get included when windows.h | ||
| 260 | is... I don't know if they do the right thing for emacs. For this to | ||
| 261 | have proper effect, config.h must always be included before windows.h. */ | ||
| 262 | #define _WINSOCKAPI_ 1 | ||
| 263 | |||
| 264 | /* ============================================================ */ | ||