annotate src/s/ms-w32.h @ 111034:e02e55f79038

* net/tramp-sh.el (tramp-do-file-attributes-with-stat) (tramp-do-directory-files-and-attributes-with-stat): Use "e0" in order to make stat results a float. Patch by Andreas Schwab <schwab@linux-m68k.org>.
author Michael Albinus <michael.albinus@gmx.de>
date Tue, 19 Oct 2010 11:50:07 +0200
parents 63671fb2a78d
children a60f425ba1b5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 /* System description file for Windows NT.
108379
203aa49071bf Move MAIL_USE_FLOCK, MAIL_USE_LOCKF, BLESSMAIL_TARGET from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents: 108234
diff changeset
2
203aa49071bf Move MAIL_USE_FLOCK, MAIL_USE_LOCKF, BLESSMAIL_TARGET from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents: 108234
diff changeset
3 Copyright (C) 1993, 1994, 1995, 2001, 2002, 2003, 2004, 2005, 2006,
203aa49071bf Move MAIL_USE_FLOCK, MAIL_USE_LOCKF, BLESSMAIL_TARGET from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents: 108234
diff changeset
4 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 This file is part of GNU Emacs.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
8 GNU Emacs is free software: you can redistribute it and/or modify
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 it under the terms of the GNU General Public License as published by
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
10 the Free Software Foundation, either version 3 of the License, or
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
11 (at your option) any later version.
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 GNU Emacs is distributed in the hope that it will be useful,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 GNU General Public License for more details.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
21 /* Define symbols to identify the version of Unix this is.
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
22 Define all the symbols that apply correctly. */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24 #ifndef WINDOWSNT
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 #define WINDOWSNT
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 #endif
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 #ifndef DOS_NT
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 #define DOS_NT /* MSDOS or WINDOWSNT */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 #endif
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
31 /* If you are compiling with a non-C calling convention but need to
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
32 declare vararg routines differently, put it here. */
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
33 #define _VARARGS_ __cdecl
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
34
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
35 /* If you are providing a function to something that will call the
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
36 function back (like a signal handler and signal, or main) its calling
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
37 convention must be whatever standard the libraries expect. */
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
38 #define _CALLBACK_ __cdecl
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
39
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 /* SYSTEM_TYPE should indicate the kind of system you are using.
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
41 It sets the Lisp variable system-type. */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42 #define SYSTEM_TYPE "windows-nt"
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
44 #define NO_MATHERR 1
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
46 /* Letter to use in finding device name of first pty,
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
47 if system supports pty's. 'a' means it is /dev/ptya0 */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
48 #define FIRST_PTY_LETTER 'a'
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
50 /* Define HAVE_TIMEVAL if the system supports the BSD style clock values.
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
51 Look in <sys/time.h> for a timeval structure. */
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
52 #define HAVE_TIMEVAL 1
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
54 /* NT supports Winsock which is close enough (with some hacks). */
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
55 #define HAVE_SOCKETS 1
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
56
74769
ad7b71b8fea2 (BROKEN_NON_BLOCKING_CONNECT): Define it.
Kim F. Storm <storm@cua.dk>
parents: 73977
diff changeset
57 /* But our select implementation doesn't allow us to make non-blocking
ad7b71b8fea2 (BROKEN_NON_BLOCKING_CONNECT): Define it.
Kim F. Storm <storm@cua.dk>
parents: 73977
diff changeset
58 connects. So until that is fixed, this is necessary: */
ad7b71b8fea2 (BROKEN_NON_BLOCKING_CONNECT): Define it.
Kim F. Storm <storm@cua.dk>
parents: 73977
diff changeset
59 #define BROKEN_NON_BLOCKING_CONNECT 1
ad7b71b8fea2 (BROKEN_NON_BLOCKING_CONNECT): Define it.
Kim F. Storm <storm@cua.dk>
parents: 73977
diff changeset
60
74895
b136953eeaa4 (BROKEN_DATAGRAM_SOCKETS): Define it.
Kim F. Storm <storm@cua.dk>
parents: 74769
diff changeset
61 /* And the select implementation does 1-byte read-ahead waiting
b136953eeaa4 (BROKEN_DATAGRAM_SOCKETS): Define it.
Kim F. Storm <storm@cua.dk>
parents: 74769
diff changeset
62 for received packets, so datagrams are broken too. */
b136953eeaa4 (BROKEN_DATAGRAM_SOCKETS): Define it.
Kim F. Storm <storm@cua.dk>
parents: 74769
diff changeset
63 #define BROKEN_DATAGRAM_SOCKETS 1
b136953eeaa4 (BROKEN_DATAGRAM_SOCKETS): Define it.
Kim F. Storm <storm@cua.dk>
parents: 74769
diff changeset
64
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
65 #define MAIL_USE_POP 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
66 #define MAIL_USE_SYSTEM_LOCK 1
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68 /* If the character used to separate elements of the executable path
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 is not ':', #define this to be the appropriate character constant. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70 #define SEPCHAR ';'
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71
31349
2595bb871403 (ORDINARY_LINK): New define.
Andrew Innes <andrewi@gnu.org>
parents: 31119
diff changeset
72 #define ORDINARY_LINK 1
2595bb871403 (ORDINARY_LINK): New define.
Andrew Innes <andrewi@gnu.org>
parents: 31119
diff changeset
73
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74 /* ============================================================ */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
75
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
76 /* Here, add any special hacks needed to make Emacs work on this
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
77 system. For example, you might define certain system call names
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
78 that don't exist on your system, or that do different things on
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
79 your system and must be used only through an encapsulation (which
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
80 you should place, by convention, in sysdep.c). */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
82 /* Define this to be the separator between devices and paths. */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 #define DEVICE_SEP ':'
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 /* We'll support either convention on NT. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88
108200
e30aff0bf9d5 Emulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii <eliz@gnu.org>
parents: 108007
diff changeset
89 #include <sys/types.h>
e30aff0bf9d5 Emulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii <eliz@gnu.org>
parents: 108007
diff changeset
90 struct sigaction {
e30aff0bf9d5 Emulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii <eliz@gnu.org>
parents: 108007
diff changeset
91 int sa_flags;
e30aff0bf9d5 Emulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii <eliz@gnu.org>
parents: 108007
diff changeset
92 void (*sa_handler)(int);
e30aff0bf9d5 Emulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii <eliz@gnu.org>
parents: 108007
diff changeset
93 sigset_t sa_mask;
e30aff0bf9d5 Emulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii <eliz@gnu.org>
parents: 108007
diff changeset
94 };
e30aff0bf9d5 Emulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii <eliz@gnu.org>
parents: 108007
diff changeset
95 #define SIG_BLOCK 1
e30aff0bf9d5 Emulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii <eliz@gnu.org>
parents: 108007
diff changeset
96 #define SIG_SETMASK 2
e30aff0bf9d5 Emulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii <eliz@gnu.org>
parents: 108007
diff changeset
97 #define SIG_UNBLOCK 3
e30aff0bf9d5 Emulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii <eliz@gnu.org>
parents: 108007
diff changeset
98
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
99 /* The null device on Windows NT. */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 #define NULL_DEVICE "NUL:"
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 #ifndef MAXPATHLEN
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 #define MAXPATHLEN _MAX_PATH
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 #endif
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105
48375
4d7b83cc03aa Added a partial implementation of play-sound-internal for Windows. Fixed the following entry in etc/PROBLEMS: Emacs built on Windows 9x/ME crashes at startup on Windows XP, or Emacs built on XP crashes at startup on Windows 9x/ME.
Ben Key <bkey1@tampabay.rr.com>
parents: 45096
diff changeset
106 #define HAVE_SOUND 1
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
107 #define LISP_FLOAT_TYPE 1
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
108
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
109 #define HAVE_SYS_TIMEB_H 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
110 #define HAVE_SYS_TIME_H 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
111 #define HAVE_UNISTD_H 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
112 #undef HAVE_UTIME_H
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
113 #undef HAVE_LINUX_VERSION_H
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
114 #undef HAVE_SYS_SYSTEMINFO_H
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
115 #undef HAVE_TERMIOS_H
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
116 #define HAVE_LIMITS_H 1
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
117 #define HAVE_STRING_H 1
85562
43ddb74bd1e1 (HAVE_STDLIB_H): Define.
Jason Rumney <jasonr@gnu.org>
parents: 83885
diff changeset
118 #define HAVE_STDLIB_H 1
61741
3f7e40947e61 (HAVE_PWD_H): Define.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 60092
diff changeset
119 #define HAVE_PWD_H 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
120 #define STDC_HEADERS 1
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
121 #define TIME_WITH_SYS_TIME 1
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
122
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
123 #define HAVE_GETTIMEOFDAY 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
124 #define HAVE_GETHOSTNAME 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
125 #undef HAVE_GETDOMAINNAME
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
126 #define HAVE_DUP2 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
127 #define HAVE_RENAME 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
128 #define HAVE_CLOSEDIR 1
24675
45917c73cff6 (HAVE_FSYNC): New macro.
Andrew Innes <andrewi@gnu.org>
parents: 23859
diff changeset
129 #define HAVE_FSYNC 1 /* fsync is called _commit in MSVC. */
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
130
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
131 #undef TM_IN_SYS_TIME
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
132 #undef HAVE_TM_ZONE
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
133
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
134 #define HAVE_LONG_FILE_NAMES 1
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
135
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
136 #define HAVE_MKDIR 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
137 #define HAVE_RMDIR 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
138 #define HAVE_RANDOM 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
139 #undef HAVE_SYSINFO
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
140 #undef HAVE_LRAND48
109165
750db9f3e6d8 Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp
Andreas Schwab <schwab@linux-m68k.org>
parents: 108892
diff changeset
141 #define HAVE_MEMCMP 1
750db9f3e6d8 Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp
Andreas Schwab <schwab@linux-m68k.org>
parents: 108892
diff changeset
142 #define HAVE_MEMCPY 1
750db9f3e6d8 Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp
Andreas Schwab <schwab@linux-m68k.org>
parents: 108892
diff changeset
143 #define HAVE_MEMMOVE 1
750db9f3e6d8 Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp
Andreas Schwab <schwab@linux-m68k.org>
parents: 108892
diff changeset
144 #define HAVE_MEMSET 1
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
145 #define HAVE_LOGB 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
146 #define HAVE_FREXP 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
147 #define HAVE_FMOD 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
148 #undef HAVE_RINT
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
149 #undef HAVE_CBRT
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
150 #define HAVE_FTIME 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
151 #undef HAVE_RES_INIT /* For -lresolv on Suns. */
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
152 #undef HAVE_SETSID
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
153 #undef HAVE_FPATHCONF
45096
faa83eec9ea0 (HAVE_SELECT): Define.
Jason Rumney <jasonr@gnu.org>
parents: 39935
diff changeset
154 #define HAVE_SELECT 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
155 #define HAVE_MKTIME 1
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
156 #undef HAVE_EUIDACCESS
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
157 #define HAVE_GETPAGESIZE 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
158 #define HAVE_TZSET 1
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
159 #define HAVE_SETLOCALE 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
160 #undef HAVE_UTIMES
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
161 #undef HAVE_SETRLIMIT
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
162 #undef HAVE_SETPGID
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
163 #undef HAVE_GETCWD
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
164 #define HAVE_SHUTDOWN 1
21603
058bff729a94 (HAVE_STRING_H, HAVE_STRFTIME): Define macros.
Geoff Voelker <voelker@cs.washington.edu>
parents: 19716
diff changeset
165 #define HAVE_STRFTIME 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
166
23859
b2aa39f6d923 (LOCALTIME_CACHE): Define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23074
diff changeset
167 #define LOCALTIME_CACHE
73977
6dcbf2efb497 Define HAVE_INET_SOCKETS.
Jason Rumney <jasonr@gnu.org>
parents: 70151
diff changeset
168 #define HAVE_INET_SOCKETS 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
169
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
170 #undef HAVE_AIX_SMT_EXP
85980
aa42b9eb1ed9 Define USE_TOOLKIT_SCROLL_BARS.
Jason Rumney <jasonr@gnu.org>
parents: 85562
diff changeset
171 #define USE_TOOLKIT_SCROLL_BARS 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
172
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
173 /* Define if you have the ANSI `strerror' function.
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
174 Otherwise you must have the variable `char *sys_errlist[]'. */
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
175 #define HAVE_STRERROR 1
18504
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
176
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
177 /* Define if `struct utimbuf' is declared by <utime.h>. */
f0f8ac814b26 Duplicate undefs from config.in to check completeness.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
178 #undef HAVE_STRUCT_UTIMBUF
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
179
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
180 #define HAVE_MOUSE 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
181 #define HAVE_H_ERRNO 1
9818
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
182
13422
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
183 #ifdef HAVE_NTGUI
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
184 #define HAVE_WINDOW_SYSTEM 1
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
185 #define HAVE_MENUS 1
13422
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
186 #endif
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
187
9818
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
188 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B")
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
189
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
190 /* Get some redefinitions in place. */
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
191
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
192 #ifdef emacs
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
193
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
194 /* Calls that are emulated or shadowed. */
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
195 #undef access
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
196 #define access sys_access
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
197 #undef chdir
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
198 #define chdir sys_chdir
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
199 #undef chmod
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
200 #define chmod sys_chmod
63743
28ba3b83e358 (chown): New; define to sys_chown.
Eli Zaretskii <eliz@gnu.org>
parents: 63018
diff changeset
201 #define chown sys_chown
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
202 #undef close
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
203 #define close sys_close
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
204 #undef creat
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
205 #define creat sys_creat
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
206 #define ctime sys_ctime
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
207 #undef dup
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
208 #define dup sys_dup
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
209 #undef dup2
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
210 #define dup2 sys_dup2
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
211 #define fopen sys_fopen
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
212 #define link sys_link
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
213 #define mkdir sys_mkdir
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
214 #undef mktemp
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
215 #define mktemp sys_mktemp
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
216 #undef open
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
217 #define open sys_open
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
218 #define pipe sys_pipe
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
219 #undef read
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
220 #define read sys_read
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
221 #define rename sys_rename
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
222 #define rmdir sys_rmdir
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
223 #define select sys_select
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
224 #define sleep sys_sleep
24858
8844e3f055f2 (strerror): Override the default implementation of
Andrew Innes <andrewi@gnu.org>
parents: 24675
diff changeset
225 #define strerror sys_strerror
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
226 #undef unlink
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
227 #define unlink sys_unlink
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
228 #undef write
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
229 #define write sys_write
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
230
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
231 /* Subprocess calls that are emulated. */
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
232 #define spawnve sys_spawnve
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
233 #define wait sys_wait
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
234 #define kill sys_kill
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
235 #define signal sys_signal
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
236
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
237 /* termcap.c calls that are emulated. */
108007
ea2f4615a622 Don't depend on cm.c or termcap.c on Windows, use stubs.
Juanma Barranquero <lekktu@gmail.com>
parents: 106815
diff changeset
238 #define tputs sys_tputs
ea2f4615a622 Don't depend on cm.c or termcap.c on Windows, use stubs.
Juanma Barranquero <lekktu@gmail.com>
parents: 106815
diff changeset
239 #define tgetstr sys_tgetstr
ea2f4615a622 Don't depend on cm.c or termcap.c on Windows, use stubs.
Juanma Barranquero <lekktu@gmail.com>
parents: 106815
diff changeset
240
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
241 /* cm.c calls that are emulated. */
108007
ea2f4615a622 Don't depend on cm.c or termcap.c on Windows, use stubs.
Juanma Barranquero <lekktu@gmail.com>
parents: 106815
diff changeset
242 #define chcheckmagic sys_chcheckmagic
ea2f4615a622 Don't depend on cm.c or termcap.c on Windows, use stubs.
Juanma Barranquero <lekktu@gmail.com>
parents: 106815
diff changeset
243 #define cmcostinit sys_cmcostinit
ea2f4615a622 Don't depend on cm.c or termcap.c on Windows, use stubs.
Juanma Barranquero <lekktu@gmail.com>
parents: 106815
diff changeset
244 #define cmgoto sys_cmgoto
ea2f4615a622 Don't depend on cm.c or termcap.c on Windows, use stubs.
Juanma Barranquero <lekktu@gmail.com>
parents: 106815
diff changeset
245 #define cmputc sys_cmputc
ea2f4615a622 Don't depend on cm.c or termcap.c on Windows, use stubs.
Juanma Barranquero <lekktu@gmail.com>
parents: 106815
diff changeset
246 #define Wcm_clear sys_Wcm_clear
ea2f4615a622 Don't depend on cm.c or termcap.c on Windows, use stubs.
Juanma Barranquero <lekktu@gmail.com>
parents: 106815
diff changeset
247
22318
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
248 #endif /* emacs */
2f9d6b2dd309 Use 1 as explicit value of empty #defines.
Andrew Innes <andrewi@gnu.org>
parents: 21738
diff changeset
249
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
250 /* Map to MSVC names. */
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
251 #define execlp _execlp
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
252 #define execvp _execvp
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
253 #define fdopen _fdopen
63018
e50e8a19d938 (fileno): Don't define if already defined.
Eli Zaretskii <eliz@gnu.org>
parents: 61741
diff changeset
254 #ifndef fileno
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
255 #define fileno _fileno
63018
e50e8a19d938 (fileno): Don't define if already defined.
Eli Zaretskii <eliz@gnu.org>
parents: 61741
diff changeset
256 #endif
24675
45917c73cff6 (HAVE_FSYNC): New macro.
Andrew Innes <andrewi@gnu.org>
parents: 23859
diff changeset
257 #define fsync _commit
45917c73cff6 (HAVE_FSYNC): New macro.
Andrew Innes <andrewi@gnu.org>
parents: 23859
diff changeset
258 #define ftruncate _chsize
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
259 #define getpid _getpid
69919
32dd7ee0ac8b (pid_t) [_MSC_VER]: New typedef.
Eli Zaretskii <eliz@gnu.org>
parents: 68651
diff changeset
260 #ifdef _MSC_VER
32dd7ee0ac8b (pid_t) [_MSC_VER]: New typedef.
Eli Zaretskii <eliz@gnu.org>
parents: 68651
diff changeset
261 typedef int pid_t;
32dd7ee0ac8b (pid_t) [_MSC_VER]: New typedef.
Eli Zaretskii <eliz@gnu.org>
parents: 68651
diff changeset
262 #endif
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
263 #define isatty _isatty
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
264 #define logb _logb
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
265 #define _longjmp longjmp
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
266 #define lseek _lseek
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
267 #define popen _popen
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
268 #define pclose _pclose
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
269 #define umask _umask
21738
4dbaa2bfab6e (utimbuf): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 21603
diff changeset
270 #define utimbuf _utimbuf
31119
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
271 #define strdup _strdup
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
272 #define strupr _strupr
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
273 #define strnicmp _strnicmp
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
274 #define stricmp _stricmp
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
275 #define tzset _tzset
74956
fe053f2164a6 (tzname): Do not define in msvc8.
Jason Rumney <jasonr@gnu.org>
parents: 74895
diff changeset
276
fe053f2164a6 (tzname): Do not define in msvc8.
Jason Rumney <jasonr@gnu.org>
parents: 74895
diff changeset
277 #if !defined (_MSC_VER) || (_MSC_VER < 1400)
31119
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
278 #define tzname _tzname
74958
f6f8f3da57af (umask): Do not define in msvc8.
Jason Rumney <jasonr@gnu.org>
parents: 74956
diff changeset
279 #define utime _utime
74956
fe053f2164a6 (tzname): Do not define in msvc8.
Jason Rumney <jasonr@gnu.org>
parents: 74895
diff changeset
280 #endif
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
281
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
282 /* This is hacky, but is necessary to avoid warnings about macro
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
283 redefinitions using the SDK compilers. */
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
284 #ifndef __STDC__
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
285 #define __STDC__ 1
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
286 #define MUST_UNDEF__STDC__
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
287 #endif
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
288 #include <direct.h>
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
289 #include <io.h>
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
290 #include <stdio.h>
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
291 #ifdef MUST_UNDEF__STDC__
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
292 #undef __STDC__
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
293 #undef MUST_UNDEF__STDC__
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
294 #endif
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
295
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
296 /* Defines that we need that aren't in the standard signal.h. */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
297 #define SIGHUP 1 /* Hang up */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
298 #define SIGQUIT 3 /* Quit process */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
299 #define SIGTRAP 5 /* Trace trap */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
300 #define SIGKILL 9 /* Die, die die */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
301 #define SIGPIPE 13 /* Write on pipe with no readers */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
302 #define SIGALRM 14 /* Alarm */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
303 #define SIGCHLD 18 /* Death of child */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
304
31119
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
305 #ifndef NSIG
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
306 #define NSIG 23
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
307 #endif
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
308
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
309 /* For integration with MSDOS support. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
310 #define getdisk() (_getdrive () - 1)
22431
aabf58b0a724 (getcwd): Remove define.
Richard M. Stallman <rms@gnu.org>
parents: 22318
diff changeset
311 #ifdef emacs
aabf58b0a724 (getcwd): Remove define.
Richard M. Stallman <rms@gnu.org>
parents: 22318
diff changeset
312 #define getdefdir(_drv, _buf) ((_buf[0] = (_drv + 'A' - 1), _buf[1] = ':', _buf[2] = '/', _buf[3] = 0), 1)
aabf58b0a724 (getcwd): Remove define.
Richard M. Stallman <rms@gnu.org>
parents: 22318
diff changeset
313 #else
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
314 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN)
22431
aabf58b0a724 (getcwd): Remove define.
Richard M. Stallman <rms@gnu.org>
parents: 22318
diff changeset
315 #endif
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
316
31119
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
317 extern char *get_emacs_configuration (void);
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
318 extern char *get_emacs_configuration_options (void);
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
319 #define EMACS_CONFIGURATION get_emacs_configuration ()
31119
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
320 #define EMACS_CONFIG_OPTIONS get_emacs_configuration_options ()
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
321
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
322 /* Define this so that winsock.h definitions don't get included with
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
323 windows.h. For this to have proper effect, config.h must always be
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
324 included before windows.h. */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
325 #define _WINSOCKAPI_ 1
31119
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
326 #define _WINSOCK_H
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
327
9818
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
328 /* Defines size_t and alloca (). */
31119
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
329 #ifdef USE_CRT_DLL
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
330 #define malloc e_malloc
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
331 #define free e_free
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
332 #define realloc e_realloc
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
333 #define calloc e_calloc
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
334 #endif
9818
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
335 #include <malloc.h>
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
336
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
337 #include <sys/stat.h>
9804
f98b24714f01 (SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 9803
diff changeset
338
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
339 /* Define for those source files that do not include enough NT system files. */
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
340 #ifndef NULL
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
341 #ifdef __cplusplus
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
342 #define NULL 0
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
343 #else
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
344 #define NULL ((void *)0)
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
345 #endif
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
346 #endif
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
347
13422
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
348 /* For proper declaration of environ. */
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
349 #include <stdlib.h>
31119
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
350 #ifndef sys_nerr
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
351 #define sys_nerr _sys_nerr
afa1f54fb948 (malloc, free, realloc, calloc): Rename if
Andrew Innes <andrewi@gnu.org>
parents: 24858
diff changeset
352 #endif
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
353 #include <string.h>
13422
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
354
86068
4ef1ee8b42c4 *** empty log message ***
Juanma Barranquero <lekktu@gmail.com>
parents: 85980
diff changeset
355 /* We need a little extra space, see ../../lisp/loadup.el. */
83577
18107165859d (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
Jason Rumney <jasonr@gnu.org>
parents: 75227
diff changeset
356 #define SYSTEM_PURESIZE_EXTRA 50000
15234
2af580000f27 (SYSTEM_PURESIZE_EXTRA): Macro defined.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15154
diff changeset
357
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
358 /* For unexec to work on Alpha systems, we need to put Emacs'
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
359 initialized data into a separate section from the CRT initialized
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
360 data (because the Alpha linker freely reorders data variables, even
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
361 across libraries, so our data and the CRT data get intermingled).
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
362
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
363 Starting with MSVC 5.0, we must also place the uninitialized data
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
364 into its own section. VC5 intermingles uninitialized data from the CRT
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
365 between Emacs' static uninitialized data and its public uninitialized
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
366 data. A separate .bss section for Emacs groups both static and
86068
4ef1ee8b42c4 *** empty log message ***
Juanma Barranquero <lekktu@gmail.com>
parents: 85980
diff changeset
367 public uninitialized together.
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
368
86068
4ef1ee8b42c4 *** empty log message ***
Juanma Barranquero <lekktu@gmail.com>
parents: 85980
diff changeset
369 Note that unexw32.c relies on this fact, and must be modified
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
370 accordingly if this section name is changed, or if this pragma is
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
371 removed. Also, obviously, all files that define initialized data
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
372 must include config.h to pick up this pragma. */
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
373
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
374 /* Names must be < 8 bytes. */
60092
04686828d0da 2004-11-08 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
Jason Rumney <jasonr@gnu.org>
parents: 52401
diff changeset
375 #ifdef _MSC_VER
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
376 #pragma data_seg("EMDATA")
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
377 #pragma bss_seg("EMBSS")
60092
04686828d0da 2004-11-08 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
Jason Rumney <jasonr@gnu.org>
parents: 52401
diff changeset
378 #endif
19716
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
379
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
380 /* #define FULL_DEBUG */
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
381 /* #define EMACSDEBUG */
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
382
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
383 #ifdef EMACSDEBUG
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
384 extern void _DebPrint (const char *fmt, ...);
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
385 #define DebPrint(stuff) _DebPrint stuff
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
386 #else
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
387 #define DebPrint(stuff)
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
388 #endif
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
389
524abb12cbf5 (INTERRUPT_INPUT): Don't define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 18724
diff changeset
390
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
391 /* ============================================================ */
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
392
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
393 /* arch-tag: 5d4a3a1c-40dc-4dea-9c7c-38fed9ae0eae
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
394 (do not change this comment) */