Move PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF from src/s to configure
[bpt/emacs.git] / src / s / gnu-linux.h
1 /* This file is the configuration file for Linux-based GNU systems
2
3 Copyright (C) 1985-1986, 1992, 1994, 1996, 1999, 2001-2012
4 Free Software Foundation, Inc.
5
6 This file was put together by Michael K. Johnson and Rik Faith.
7
8 This file is part of GNU Emacs.
9
10 GNU Emacs is free software: you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
14
15 GNU Emacs is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22
23 /* Define symbols to identify the version of Unix this is.
24 Define all the symbols that apply correctly. */
25 #define USG
26 #define GNU_LINUX
27
28 #if defined HAVE_GRANTPT
29 #define UNIX98_PTYS
30 #endif /* HAVE_GRANTPT */
31
32 /* Here, on a separate page, add any special hacks needed
33 to make Emacs work on this system. For example,
34 you might define certain system call names that don't
35 exist on your system, or that do different things on
36 your system and must be used only through an encapsulation
37 (Which you should place, by convention, in sysdep.c). */
38 \f
39
40 /* This is to work around mysterious gcc failures in some system versions.
41 It is unlikely that Emacs changes will work around this problem;
42 therefore, this should remain permanently. */
43 #ifndef HAVE_XRMSETDATABASE
44 #define HAVE_XRMSETDATABASE
45 #endif
46
47 #ifdef __ia64__
48 #define GC_MARK_SECONDARY_STACK() \
49 do { \
50 extern void *__libc_ia64_register_backing_store_base; \
51 __builtin_ia64_flushrs (); \
52 mark_memory (__libc_ia64_register_backing_store_base, \
53 __builtin_ia64_bsp ()); \
54 } while (0)
55 #endif
56
57 /* Tell that garbage collector that setjmp is known to save all
58 registers relevant for conservative garbage collection in the jmp_buf.
59 Not all the architectures are tested, but there are Debian packages
60 for SCM and/or Guile on them, so the technique must work. See also
61 comments in alloc.c concerning setjmp and gcc. Fixme: it's
62 probably safe to just let the GCC conditional in AH_BOTTOM handle this.
63 */
64 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
65 || defined __alpha__ || defined __mips__ || defined __s390__ \
66 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
67 || defined __ia64__ || defined __sh__
68 #define GC_SETJMP_WORKS 1
69 #else
70 #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE
71 #endif
72
73 #ifdef __i386__
74 /* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */
75 /* we cannot get the maximum address for brk */
76 # define ULIMIT_BREAK_VALUE (32*1024*1024)
77 #endif