Commit | Line | Data |
---|---|---|
4b158629 | 1 | /* System description header file for Cygwin. |
e05aebe9 | 2 | |
acaf905b | 3 | Copyright (C) 1985-1986, 1992, 1999, 2002-2012 Free Software Foundation, Inc. |
2454c12d JB |
4 | |
5 | This file is part of GNU Emacs. | |
6 | ||
4b158629 | 7 | GNU Emacs is free software: you can redistribute it and/or modify |
2454c12d | 8 | it under the terms of the GNU General Public License as published by |
4b158629 GM |
9 | the Free Software Foundation, either version 3 of the License, or |
10 | (at your option) any later version. | |
2454c12d JB |
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 | |
4b158629 | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
2454c12d | 19 | |
2454c12d JB |
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); \ | |
bcd86815 KB |
31 | if (fd >= 0) \ |
32 | emacs_close (dummy); \ | |
2454c12d JB |
33 | } \ |
34 | while (0) | |
35 | ||
e05aebe9 | 36 | /* Used in various places to enable cygwin-specific code changes. */ |
2454c12d | 37 | #define CYGWIN 1 |