Move FIRST_PTY_LETTER, PTY_ITERATION from src/s to configure
[bpt/emacs.git] / src / s / cygwin.h
1 /* System description header file for Cygwin.
2
3 Copyright (C) 1985-1986, 1992, 1999, 2002-2012 Free Software Foundation, Inc.
4
5 This file is part of GNU Emacs.
6
7 GNU Emacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20 #define PTY_NAME_SPRINTF /* none */
21 #define PTY_TTY_NAME_SPRINTF /* none */
22 #define PTY_OPEN \
23 do \
24 { \
25 int dummy; \
26 SIGMASKTYPE mask; \
27 mask = sigblock (sigmask (SIGCHLD)); \
28 if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \
29 fd = -1; \
30 sigsetmask (mask); \
31 if (fd >= 0) \
32 emacs_close (dummy); \
33 } \
34 while (0)
35
36 /* Used in various places to enable cygwin-specific code changes. */
37 #define CYGWIN 1