annotate src/s/cygwin32.h @ 251:677f6a0ee643 r20-5b24

Import from CVS: tag r20-5b24
author cvs
date Mon, 13 Aug 2007 10:19:59 +0200
parents 51092a27c943
children 11cf20601dec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
239
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
1 /* System description file for cygwin32.
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
2 Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
3
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
4 This file is part of GNU Emacs.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
5
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
9 any later version.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
10
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
14 GNU General Public License for more details.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
15
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
20
239
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
21 /* Building under cygwin
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
22 *
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
23 * The approach I have taken with this port is to use primarily the UNIX
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
24 * code base adding stuff that is MS-Windows specific. This works quite
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
25 * well, and is in keeping with my perception of the cygwin philosophy.
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
26 * Note that if you make changes to this file you do NOT want to define
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
27 * WINDOWSNT, I repeat - do not define this, it will break everything
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
28 * horribly. What does get defined is HAVE_MS_WINDOWS, but this is
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
29 * done by configure and only applies to the window system.
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
30 *
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
31 * The important thing about building is that it is done on a binary
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
32 * mounted filesystem. i.e. something mounted like: mount -b c:
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
33 * /binary. If you do not do this then compilation of el files will
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
34 * produce garbage. Make sure you have installed cygwin32 b18 +
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
35 * patched dll (which can be found at http://www.lexa.ru/sos or on my
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
36 * home page. Alternatively when b19 comes out the patched dll will be
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
37 * unnecessary. Also make sure your HOME path is unix style -
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
38 * i.e. without a drive letter.
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
39 *
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
40 * once you have done this, configure and make. If you want unexec
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
41 * support you need to download coff.h from my web page or use cygwin
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
42 * b19. You probably want to build with mule support since this
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
43 * addresses crlf issues in a sensible way.
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
44 *
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
45 * What I want to do:
239
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
46 *
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
47 * the fileio stuff merely uses the unix system calls this means that
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
48 * the mount type of your fs will determine how files are edited. This
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
49 * is fine except in the instance that you want to convert one to the
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
50 * other. In this instance I would like to bring the buffer_file_type
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
51 * code into the picture without all the other windows-nt
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
52 * cruft. Apparently the best way to do this is use the mule coding
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
53 * stuff.
239
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
54 *
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
55 * process support needs fixing although basic support works (a la
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
56 * make-docfile)
239
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
57 *
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
58 * Andy Piper <andyp@parallax.co.uk> 8/1/98
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
59 * http://www.parallax.co.uk/~andyp */
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
60
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
61 /* cheesy way to determine cygwin version */
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
62 #ifndef NOT_C_CODE
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
63 #include <signal.h>
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
64 #ifdef SIGIO
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
65 #define CYGWIN_B19
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
66 #else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
67 #define BROKEN_CYGWIN
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
68 #endif
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
69 #endif
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
70
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 239
diff changeset
71 #ifdef HAVE_MS_WINDOWS
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
72 #define HAVE_NTGUI
239
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
73 #define HAVE_FACES
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 239
diff changeset
74 #endif
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
75
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
76 #ifndef ORDINARY_LINK
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
77 #define ORDINARY_LINK
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
78 #endif
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
79
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 239
diff changeset
80 #define C_SWITCH_SYSTEM -Wno-sign-compare
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
81 #undef MOD_ALT
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
82 #undef MOD_CONTROL
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
83 #undef MOD_SHIFT
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
84
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
85 #define SIF_TRACKPOS 0x0010
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
86 #define FW_BLACK FW_HEAVY
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
87 #define FW_ULTRABOLD FW_EXTRABOLD
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
88 #define FW_ULTRALIGHT FW_EXTRALIGHT
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
89 #define VK_APPS 0x5D
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
90 #define APPCMD_FILTERINITS 0x20L
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
91 #define CBF_FAIL_SELFCONNECTIONS 0x1000
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
92 #define CBF_SKIP_ALLNOTIFICATIONS 0x3C0000
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
93 #define CBF_FAIL_ADVISES 0x4000
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
94 #define CBF_FAIL_POKES 0x10000
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
95 #define CBF_FAIL_REQUESTS 0x20000
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
96 #define SZDDESYS_TOPIC "System"
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 239
diff changeset
97
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 239
diff changeset
98 #define TEXT_START -1
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 239
diff changeset
99 #define TEXT_END -1
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 239
diff changeset
100 #define DATA_END -1
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
101 #define HEAP_IN_DATA
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 239
diff changeset
102 #define UNEXEC "unexcw.o"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
103 #define BROKEN_SIGIO
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
104 #define PROCESS_IO_BLOCKING
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
105 #define strnicmp strncasecmp
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
106 #ifndef HAVE_SOCKETS
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
107 #define HAVE_SOCKETS
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
108 #endif
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
109
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
110 #ifndef CYGWIN_B19
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
111 #define TMPF_FIXED_PITCH 0x01
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
112 #define SIGPROF 0
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
113 #define SIGWINCH 0
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
114 #endif
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
115
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
116 #undef MAIL_USE_SYSTEM_LOCK
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
117
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
118 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
119 * group of arguments and treat it as an array of the arguments. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
120
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
121 #define NO_ARG_ARRAY
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
122
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
123 /* Define WORD_MACHINE if addresses and such have
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
124 * to be corrected before they can be used as byte counts. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
125
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
126 #define WORD_MACHINE
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
127
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
128 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
129 the 24-bit bit field into an int. In other words, if bit fields
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
130 are always unsigned.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
131
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
132 If you use NO_UNION_TYPE, this flag does not matter. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
133
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
134 #define EXPLICIT_SIGN_EXTEND
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
135
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
136 /* Data type of load average, as read out of kmem. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
137
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
138 #define LOAD_AVE_TYPE long
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
139
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
140 /* Convert that into an integer that is 100 for a load average of 1.0 */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
141
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
142 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
143
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
144 /* Define VIRT_ADDR_VARIES if the virtual addresses of
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
145 pure and impure space as loaded can vary, and even their
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
146 relative order cannot be relied on.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
147
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
148 Otherwise Emacs assumes that text space precedes data space,
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
149 numerically. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
150
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
151 /* Text does precede data space, but this is never a safe assumption. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
152 #define VIRT_ADDR_VARIES
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
153
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
154 /* If you are compiling with a non-C calling convention but need to
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
155 declare vararg routines differently, put it here */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
156 #define _VARARGS_ __cdecl
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
157
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
158 /* If you are providing a function to something that will call the
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
159 function back (like a signal handler and signal, or main) its calling
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
160 convention must be whatever standard the libraries expect */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
161 #define _CALLBACK_ __cdecl
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
162
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
163 /* SYSTEM_TYPE should indicate the kind of system you are using.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
164 It sets the Lisp variable system-type. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
165
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 239
diff changeset
166 #define SYSTEM_TYPE "cygwin32"
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
167
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
168 #define NO_MATHERR
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
169
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
170 /* NOMULTIPLEJOBS should be defined if your system's shell
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
171 does not have "job control" (the ability to stop a program,
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
172 run some other program, then continue the first one). */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
173
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
174 #define NOMULTIPLEJOBS
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
175
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
176 /* define MAIL_USE_FLOCK if the mailer uses flock
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
177 to interlock access to /usr/spool/mail/$USER.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
178 The alternative is that a lock file named
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
179 /usr/spool/mail/$USER.lock. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
180
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
181 /* If the character used to separate elements of the executable path
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
182 is not ':', #define this to be the appropriate character constant. */
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 239
diff changeset
183 #define SEPCHAR ':'
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
184
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
185 /* ============================================================ */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
186
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
187 /* Here, add any special hacks needed
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
188 to make Emacs work on this system. For example,
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
189 you might define certain system call names that don't
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
190 exist on your system, or that do different things on
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
191 your system and must be used only through an encapsulation
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
192 (Which you should place, by convention, in sysdep.c). */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
193
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
194 /* Define this to be the separator between path elements */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
195 /* #define DIRECTORY_SEP XINT (Vdirectory_sep_char) */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
196
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
197 /* Define this to be the separator between devices and paths */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
198 #define DEVICE_SEP ':'
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
199
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
200 /* We'll support either convention on NT. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
201 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
202 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
203
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
204 /* The null device on Windows NT. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
205 #define EXEC_SUFFIXES ".exe:.com:.bat:.cmd:"
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
206
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
207 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B")
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
208
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
209 /* We need a little extra space, see ../../lisp/loadup.el */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
210 #define SYSTEM_PURESIZE_EXTRA 15000
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
211
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
212 /*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
213 * stolen from usg.
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
214 */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
215 #define HAVE_PTYS
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
216 #define FIRST_PTY_LETTER 'z'
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
217
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
218 /* Pseudo-terminal support under SVR4 only loops to deal with errors. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
219
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
220 #define PTY_ITERATION for (i = 0; i < 1; i++)
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
221
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
222 /* This sets the name of the master side of the PTY. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
223
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
224 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
225
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
226 /* This sets the name of the slave side of the PTY. On SysVr4,
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
227 grantpt(3) forks a subprocess, so keep sigchld_handler() from
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
228 intercepting that death. If any child but grantpt's should die
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
229 within, it should be caught after EMACS_UNBLOCK_SIGNAL. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
230
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
231 #define PTY_OPEN \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
232 fd = open (pty_name, O_RDWR | O_NONBLOCK | OPEN_BINARY, 0)
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
233
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
234 #define PTY_TTY_NAME_SPRINTF \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
235 { \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
236 char *ptyname; \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
237 \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
238 if (!(ptyname = ptsname (fd))) \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
239 { close (fd); return -1; } \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
240 strncpy (pty_name, ptyname, sizeof (pty_name)); \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
241 pty_name[sizeof (pty_name) - 1] = 0; \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
242 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
243
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
244 /* ============================================================ */
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 245
diff changeset
245