annotate src/s/cygwin.h @ 83426:7c7d1f1cb2e7

Initialize Vprocess_environment to nil. * src/callproc.c (syms_of_callproc): Initialize Vprocess_environment to nil. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-466
author Karoly Lorentey <lorentey@elte.hu>
date Thu, 29 Dec 2005 02:10:23 +0000
parents 6358e3c6075c
children 3bd95f4f2941 2d92f5c9d6ae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
1 /* Template for system description header files.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
2 This file describes the parameters that system description files
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
3 should define or not.
64769
6358e3c6075c Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64639
diff changeset
4 Copyright (C) 1985, 1986, 1992, 1999, 2002, 2003, 2004,
6358e3c6075c Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64639
diff changeset
5 2005 Free Software Foundation, Inc.
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
6
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
7 This file is part of GNU Emacs.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
8
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
9 GNU Emacs is free software; you can redistribute it and/or modify
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
10 it under the terms of the GNU General Public License as published by
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
11 the Free Software Foundation; either version 2, or (at your option)
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
12 any later version.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
13
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
14 GNU Emacs is distributed in the hope that it will be useful,
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
17 GNU General Public License for more details.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
18
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
19 You should have received a copy of the GNU General Public License
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
20 along with GNU Emacs; see the file COPYING. If not, write to
64083
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 54825
diff changeset
21 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 54825
diff changeset
22 Boston, MA 02110-1301, USA. */
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
23
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
24 /* SYSTEM_TYPE should indicate the kind of system you are using.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
25 It sets the Lisp variable system-type. */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
26
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
27 #define SYSTEM_TYPE "cygwin"
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
28
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
29 /* Emacs can read input using SIGIO and buffering characters itself,
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
30 or using CBREAK mode and making C-g cause SIGINT.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
31 The choice is controlled by the variable interrupt_input.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
32
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
33 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
34
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
35 Emacs uses the presence or absence of the SIGIO and BROKEN_SIGIO macros
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
36 to indicate whether or not signal-driven I/O is possible. It uses
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
37 INTERRUPT_INPUT to decide whether to use it by default.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
38
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
39 SIGIO can be used only on systems that implement it (4.2 and 4.3).
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
40 CBREAK mode has two disadvantages
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
41 1) At least in 4.2, it is impossible to handle the Meta key properly.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
42 I hear that in system V this problem does not exist.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
43 2) Control-G causes output to be discarded.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
44 I do not know whether this can be fixed in system V.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
45
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
46 Another method of doing input is planned but not implemented.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
47 It would have Emacs fork off a separate process
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
48 to read the input and send it to the true Emacs process
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
49 through a pipe. */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
50
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
51 #undef INTERRUPT_INPUT
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
52
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
53 /*
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
54 * Define HAVE_TERMIOS if the system provides POSIX-style
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
55 * functions and macros for terminal control.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
56 *
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
57 * Define HAVE_TERMIO if the system provides sysV-style ioctls
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
58 * for terminal control.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
59 *
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
60 * Do not define both. HAVE_TERMIOS is preferred, if it is
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
61 * supported on your system.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
62 */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
63
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
64 #define HAVE_TERMIOS
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
65
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
66 /*
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
67 * Define HAVE_PTYS if the system supports pty devices.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
68 */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
69
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
70 #define HAVE_PTYS
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
71 #define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
72 #define PTY_NAME_SPRINTF /* none */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
73 #define PTY_TTY_NAME_SPRINTF /* none */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
74 #define PTY_OPEN \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
75 do \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
76 { \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
77 int dummy; \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
78 SIGMASKTYPE mask; \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
79 mask = sigblock (sigmask (SIGCHLD)); \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
80 if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
81 fd = -1; \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
82 sigsetmask (mask); \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
83 emacs_close (dummy); \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
84 } \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
85 while (0)
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
86
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
87 /* Define this symbol if your system has the functions bcopy, etc. */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
88
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
89 #define BSTRING
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
90
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
91 /* subprocesses should be defined if you want to
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
92 have code for asynchronous subprocesses
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
93 (as used in M-x compile and M-x shell).
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
94 This is generally OS dependent, and not supported
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
95 under most USG systems. */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
96
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
97 #define subprocesses
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
98
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
99 /* Define CLASH_DETECTION if you want lock files to be written
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
100 so that Emacs can tell instantly when you try to modify
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
101 a file that someone else has modified in his Emacs. */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
102
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
103 #define CLASH_DETECTION
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
104
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
105 /* If the system's imake configuration file defines `NeedWidePrototypes'
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
106 as `NO', we must define NARROWPROTO manually. Such a define is
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 49548
diff changeset
107 generated in the Makefile generated by `xmkmf'. If we don't
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
108 define NARROWPROTO, we will see the wrong function prototypes
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
109 for X functions taking float or double parameters. */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
110
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
111 #define NARROWPROTO 1
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
112
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
113 /* used in various places to enable cygwin-specific code changes */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
114 #define CYGWIN 1
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
115
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
116 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
117 #define GETPGRP_NO_ARG 1
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
118 #define SYSV_SYSTEM_DIR 1
54825
59000534cc29 Changes for Cygwin unexec() support, changes in Cygwin itself.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
119 #define LIB_STANDARD_LIBSRC
59000534cc29 Changes for Cygwin unexec() support, changes in Cygwin itself.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
120 #define UNEXEC unexcw.o
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
121 #define POSIX_SIGNALS 1
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
122 /* force the emacs image to start high in memory, so dll relocation
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
123 can put things in low memory without causing all sorts of grief for
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
124 emacs lisp pointers */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
125 #define DATA_SEG_BITS 0x20000000
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
126 #define LINKER $(CC) -Wl,--image-base,DATA_SEG_BITS
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
127
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
128 /* Use terminfo instead of termcap. Fewer environment variables to
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
129 go wrong, more terminal types. */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
130 #define TERMINFO
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
131
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
132 #define HAVE_SOCKETS
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
133 /* C-g aborts emacs without this */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
134 /*#define HAVE_VFORK*/
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
135 /* Xaw3d causes problems -- might have been fixed by NARROWPROTO
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
136 above, but I haven't tried it */
54825
59000534cc29 Changes for Cygwin unexec() support, changes in Cygwin itself.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
137 /*#undef HAVE_XAW3D*/
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
138
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
139 /* vfork() interacts badly with setsid(), causing ptys to fail to
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
140 change their controlling terminal */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
141 #define vfork fork
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
142
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
143 /* the end */
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
144
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
145 /* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
146 (do not change this comment) */