aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
Diffstat (limited to 'src/s')
-rw-r--r--src/s/aix4-2.h7
-rw-r--r--src/s/bsd-common.h2
-rw-r--r--src/s/cygwin.h5
-rw-r--r--src/s/darwin.h2
-rw-r--r--src/s/freebsd.h2
-rw-r--r--src/s/gnu-linux.h6
-rw-r--r--src/s/gnu.h8
-rw-r--r--src/s/hpux10-20.h12
-rw-r--r--src/s/irix6-5.h2
-rw-r--r--src/s/ms-w32.h37
-rw-r--r--src/s/msdos.h5
-rw-r--r--src/s/netbsd.h2
-rw-r--r--src/s/openbsd.h6
-rw-r--r--src/s/sol2-6.h2
-rw-r--r--src/s/template.h2
-rw-r--r--src/s/unixware.h2
-rw-r--r--src/s/usg5-4-common.h2
17 files changed, 58 insertions, 46 deletions
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index c2715fffe01..37b041396f9 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -1,5 +1,5 @@
1/* 1/*
2Copyright (C) 1999, 2001-2011 Free Software Foundation, Inc. 2Copyright (C) 1999, 2001-2012 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -47,11 +47,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
47/* AIX doesn't define this. */ 47/* AIX doesn't define this. */
48#define unix 1 48#define unix 1
49 49
50/* string.h defines rindex as a macro, at least with native cc, so we
51 lose declaring char * rindex without this.
52 It is just a guess which versions of AIX need this definition. */
53#undef HAVE_STRING_H
54
55/* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ 50/* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */
56#define SIGNALS_VIA_CHARACTERS 51#define SIGNALS_VIA_CHARACTERS
57#define CLASH_DETECTION 52#define CLASH_DETECTION
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h
index 0cca005b423..c2dbdb9a109 100644
--- a/src/s/bsd-common.h
+++ b/src/s/bsd-common.h
@@ -1,6 +1,6 @@
1/* Definitions file for GNU Emacs running on bsd 4.3 1/* Definitions file for GNU Emacs running on bsd 4.3
2 2
3Copyright (C) 1985-1986, 2001-2011 Free Software Foundation, Inc. 3Copyright (C) 1985-1986, 2001-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
diff --git a/src/s/cygwin.h b/src/s/cygwin.h
index af5308ff7bb..9a371829eaa 100644
--- a/src/s/cygwin.h
+++ b/src/s/cygwin.h
@@ -1,6 +1,6 @@
1/* System description header file for Cygwin. 1/* System description header file for Cygwin.
2 2
3Copyright (C) 1985-1986, 1992, 1999, 2002-2011 Free Software Foundation, Inc. 3Copyright (C) 1985-1986, 1992, 1999, 2002-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -91,9 +91,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
91 why it needed to be changed. */ 91 why it needed to be changed. */
92#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS 92#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
93 93
94/* Virtual addresses of pure and impure space can vary, as on Windows. */
95#define VIRT_ADDR_VARIES
96
97/* Emacs supplies its own malloc, but glib (part of Gtk+) calls 94/* Emacs supplies its own malloc, but glib (part of Gtk+) calls
98 memalign and on Cygwin, that becomes the Cygwin-supplied memalign. 95 memalign and on Cygwin, that becomes the Cygwin-supplied memalign.
99 As malloc is not the Cygwin malloc, the Cygwin memalign always 96 As malloc is not the Cygwin malloc, the Cygwin memalign always
diff --git a/src/s/darwin.h b/src/s/darwin.h
index dd0d0c34021..9ac9e91fd9d 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -1,6 +1,6 @@
1/* System description header file for Darwin (Mac OS X). 1/* System description header file for Darwin (Mac OS X).
2 2
3Copyright (C) 2001-2011 Free Software Foundation, Inc. 3Copyright (C) 2001-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
diff --git a/src/s/freebsd.h b/src/s/freebsd.h
index 24b34e02f69..c74605fe366 100644
--- a/src/s/freebsd.h
+++ b/src/s/freebsd.h
@@ -1,6 +1,6 @@
1/* System description header for FreeBSD systems. 1/* System description header for FreeBSD systems.
2 2
3Copyright (C) 1994-2011 Free Software Foundation, Inc. 3Copyright (C) 1994-2012 Free Software Foundation, Inc.
4 4
5Author: Shawn M. Carey 5Author: Shawn M. Carey
6(according to authors.el) 6(according to authors.el)
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index 178d7082f72..b54bd985e6b 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -1,6 +1,6 @@
1/* This file is the configuration file for Linux-based GNU systems 1/* This file is the configuration file for Linux-based GNU systems
2 2
3Copyright (C) 1985-1986, 1992, 1994, 1996, 1999, 2001-2011 3Copyright (C) 1985-1986, 1992, 1994, 1996, 1999, 2001-2012
4 Free Software Foundation, Inc. 4 Free Software Foundation, Inc.
5 5
6This file was put together by Michael K. Johnson and Rik Faith. 6This file was put together by Michael K. Johnson and Rik Faith.
@@ -103,7 +103,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
103/* This is needed for dispnew.c:update_frame. */ 103/* This is needed for dispnew.c:update_frame. */
104#ifdef emacs 104#ifdef emacs
105#include <stdio.h> /* Get the definition of _IO_STDIO_H. */ 105#include <stdio.h> /* Get the definition of _IO_STDIO_H. */
106#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) 106#if defined (_IO_STDIO_H) || defined (_STDIO_USES_IOSTREAM)
107/* New C libio names. */ 107/* New C libio names. */
108#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ 108#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
109 ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base) 109 ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
@@ -155,7 +155,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
155 extern void *__libc_ia64_register_backing_store_base; \ 155 extern void *__libc_ia64_register_backing_store_base; \
156 __builtin_ia64_flushrs (); \ 156 __builtin_ia64_flushrs (); \
157 mark_memory (__libc_ia64_register_backing_store_base, \ 157 mark_memory (__libc_ia64_register_backing_store_base, \
158 __builtin_ia64_bsp (), 0); \ 158 __builtin_ia64_bsp ()); \
159 } while (0) 159 } while (0)
160#endif 160#endif
161#endif 161#endif
diff --git a/src/s/gnu.h b/src/s/gnu.h
index 8f6035b36a7..37aaa1357cc 100644
--- a/src/s/gnu.h
+++ b/src/s/gnu.h
@@ -1,6 +1,6 @@
1/* Definitions file for GNU Emacs running on the GNU Hurd. 1/* Definitions file for GNU Emacs running on the GNU Hurd.
2 2
3Copyright (C) 1994-1996, 2001-2011 Free Software Foundation, Inc. 3Copyright (C) 1994-1996, 2001-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -37,10 +37,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
37 37
38#ifdef emacs 38#ifdef emacs
39#include <stdio.h> /* Get the definition of _IO_STDIO_H. */ 39#include <stdio.h> /* Get the definition of _IO_STDIO_H. */
40#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) 40#if defined (_IO_STDIO_H) || defined (_STDIO_USES_IOSTREAM)
41/* new C libio names */ 41/* new C libio names */
42#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ 42#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
43 ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base) 43 ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
44#endif /* !_IO_STDIO_H */ 44#endif /* !_IO_STDIO_H */
45#endif /* emacs */ 45#endif /* emacs */
46 46
47#define POSIX_SIGNALS 1
48
49/* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the stack. */
50#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h
index 1cd91a41b55..becb5d3464e 100644
--- a/src/s/hpux10-20.h
+++ b/src/s/hpux10-20.h
@@ -1,6 +1,6 @@
1/* System description file for hpux version 10.20. 1/* System description file for hpux version 10.20.
2 2
3Copyright (C) 1999, 2001-2011 Free Software Foundation, Inc. 3Copyright (C) 1999, 2001-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -89,7 +89,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
89#undef HAVE_RANDOM 89#undef HAVE_RANDOM
90 90
91 91
92/* Rainer Malzbender <rainer@displaytech.com> says definining 92/* Rainer Malzbender <rainer@displaytech.com> says defining
93 HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 using GCC. */ 93 HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 using GCC. */
94#ifndef HAVE_XRMSETDATABASE 94#ifndef HAVE_XRMSETDATABASE
95#define HAVE_XRMSETDATABASE 95#define HAVE_XRMSETDATABASE
@@ -100,14 +100,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
100 header sections which lose when `static' is defined away, as it is 100 header sections which lose when `static' is defined away, as it is
101 on HP-UX. (You get duplicate symbol errors on linking). */ 101 on HP-UX. (You get duplicate symbol errors on linking). */
102#undef _FILE_OFFSET_BITS 102#undef _FILE_OFFSET_BITS
103
104/* Define VIRT_ADDR_VARIES if the virtual addresses of
105 pure and impure space as loaded can vary, and even their
106 relative order cannot be relied on.
107
108 Otherwise Emacs assumes that text space precedes data space,
109 numerically. */
110#define VIRT_ADDR_VARIES
111 103
112/* The data segment on this machine always starts at address 0x40000000. */ 104/* The data segment on this machine always starts at address 0x40000000. */
113#define DATA_SEG_BITS 0x40000000 105#define DATA_SEG_BITS 0x40000000
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h
index 26eb7dcde77..32374498fe7 100644
--- a/src/s/irix6-5.h
+++ b/src/s/irix6-5.h
@@ -1,6 +1,6 @@
1/* Definitions file for GNU Emacs running on Silicon Graphics Irix system 6.5. 1/* Definitions file for GNU Emacs running on Silicon Graphics Irix system 6.5.
2 2
3Copyright (C) 1999-2011 Free Software Foundation, Inc. 3Copyright (C) 1999-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h
index bf6cc66798c..d533ae34ac3 100644
--- a/src/s/ms-w32.h
+++ b/src/s/ms-w32.h
@@ -1,6 +1,6 @@
1/* System description file for Windows NT. 1/* System description file for Windows NT.
2 2
3Copyright (C) 1993-1995, 2001-2011 Free Software Foundation, Inc. 3Copyright (C) 1993-1995, 2001-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -86,6 +86,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
86#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) 86#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
87 87
88#include <sys/types.h> 88#include <sys/types.h>
89
90#ifdef _MSC_VER
91typedef unsigned long sigset_t;
92typedef int ssize_t;
93#endif
94
89struct sigaction { 95struct sigaction {
90 int sa_flags; 96 int sa_flags;
91 void (*sa_handler)(int); 97 void (*sa_handler)(int);
@@ -111,11 +117,7 @@ struct sigaction {
111#undef HAVE_UTIME_H 117#undef HAVE_UTIME_H
112#undef HAVE_LINUX_VERSION_H 118#undef HAVE_LINUX_VERSION_H
113#undef HAVE_SYS_SYSTEMINFO_H 119#undef HAVE_SYS_SYSTEMINFO_H
114#define HAVE_LIMITS_H 1
115#define HAVE_STRING_H 1
116#define HAVE_STDLIB_H 1
117#define HAVE_PWD_H 1 120#define HAVE_PWD_H 1
118#define STDC_HEADERS 1
119#define TIME_WITH_SYS_TIME 1 121#define TIME_WITH_SYS_TIME 1
120 122
121#define HAVE_GETTIMEOFDAY 1 123#define HAVE_GETTIMEOFDAY 1
@@ -185,6 +187,17 @@ struct sigaction {
185 187
186#ifdef emacs 188#ifdef emacs
187 189
190#ifdef _MSC_VER
191#include <sys/timeb.h>
192#include <sys/stat.h>
193#include <signal.h>
194
195/* MSVC gets link-time errors without these redirections. */
196#define fstat(a, b) sys_fstat(a, b)
197#define stat(a, b) sys_stat(a, b)
198#define utime sys_utime
199#endif
200
188/* Calls that are emulated or shadowed. */ 201/* Calls that are emulated or shadowed. */
189#undef access 202#undef access
190#define access sys_access 203#define access sys_access
@@ -254,6 +267,8 @@ struct sigaction {
254#define getpid _getpid 267#define getpid _getpid
255#ifdef _MSC_VER 268#ifdef _MSC_VER
256typedef int pid_t; 269typedef int pid_t;
270#define snprintf _snprintf
271#define strtoll _strtoi64
257#endif 272#endif
258#define isatty _isatty 273#define isatty _isatty
259#define logb _logb 274#define logb _logb
@@ -262,15 +277,18 @@ typedef int pid_t;
262#define popen _popen 277#define popen _popen
263#define pclose _pclose 278#define pclose _pclose
264#define umask _umask 279#define umask _umask
280#ifndef _MSC_VER
265#define utimbuf _utimbuf 281#define utimbuf _utimbuf
282#endif
266#define strdup _strdup 283#define strdup _strdup
267#define strupr _strupr 284#define strupr _strupr
268#define strnicmp _strnicmp 285#define strnicmp _strnicmp
269#define stricmp _stricmp 286#define stricmp _stricmp
270#define tzset _tzset 287#define tzset _tzset
271 288
272#if !defined (_MSC_VER) || (_MSC_VER < 1400)
273#define tzname _tzname 289#define tzname _tzname
290#if !defined (_MSC_VER) || (_MSC_VER < 1400)
291#undef utime
274#define utime _utime 292#define utime _utime
275#endif 293#endif
276 294
@@ -321,13 +339,17 @@ extern char *get_emacs_configuration_options (void);
321#define _WINSOCK_H 339#define _WINSOCK_H
322 340
323/* Defines size_t and alloca (). */ 341/* Defines size_t and alloca (). */
324#ifdef USE_CRT_DLL 342#ifdef emacs
325#define malloc e_malloc 343#define malloc e_malloc
326#define free e_free 344#define free e_free
327#define realloc e_realloc 345#define realloc e_realloc
328#define calloc e_calloc 346#define calloc e_calloc
329#endif 347#endif
348#ifdef _MSC_VER
349#define alloca _alloca
350#else
330#include <malloc.h> 351#include <malloc.h>
352#endif
331 353
332#include <sys/stat.h> 354#include <sys/stat.h>
333 355
@@ -386,4 +408,3 @@ extern void _DebPrint (const char *fmt, ...);
386 408
387 409
388/* ============================================================ */ 410/* ============================================================ */
389
diff --git a/src/s/msdos.h b/src/s/msdos.h
index 29ca0629899..cde24147c57 100644
--- a/src/s/msdos.h
+++ b/src/s/msdos.h
@@ -1,6 +1,6 @@
1/* System description file for MS-DOS 1/* System description file for MS-DOS
2 2
3Copyright (C) 1993, 1996-1997, 2001-2011 Free Software Foundation, Inc. 3Copyright (C) 1993, 1996-1997, 2001-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -119,7 +119,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
119#ifdef HAVE_X_WINDOWS 119#ifdef HAVE_X_WINDOWS
120/* We need a little extra space, see ../../lisp/loadup.el and the 120/* We need a little extra space, see ../../lisp/loadup.el and the
121 commentary below, in the non-X branch. The 140KB number was 121 commentary below, in the non-X branch. The 140KB number was
122 measured on GNU/Linux and on MS-WIndows. */ 122 measured on GNU/Linux and on MS-Windows. */
123#define SYSTEM_PURESIZE_EXTRA (-170000+140000) 123#define SYSTEM_PURESIZE_EXTRA (-170000+140000)
124#else 124#else
125/* We need a little extra space, see ../../lisp/loadup.el. 125/* We need a little extra space, see ../../lisp/loadup.el.
@@ -138,4 +138,3 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
138 registers relevant for conservative garbage collection in the jmp_buf. */ 138 registers relevant for conservative garbage collection in the jmp_buf. */
139#define GC_SETJMP_WORKS 1 139#define GC_SETJMP_WORKS 1
140#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS 140#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
141
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index 52cda717a2d..f25023fb615 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -1,6 +1,6 @@
1/* s/ file for netbsd system. 1/* s/ file for netbsd system.
2 2
3Copyright (C) 2001-2011 Free Software Foundation, Inc. 3Copyright (C) 2001-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
diff --git a/src/s/openbsd.h b/src/s/openbsd.h
index 175d61dc9c9..0a8bab2290f 100644
--- a/src/s/openbsd.h
+++ b/src/s/openbsd.h
@@ -1,5 +1,9 @@
1/* System file for openbsd. */ 1/* System file for openbsd. */
2 2
3/* The same as NetBSD. Note there are differences in configure. */ 3/* Nearly the same as NetBSD. Note there are differences in configure. */
4#include "netbsd.h" 4#include "netbsd.h"
5 5
6/* The symbol SIGIO is defined, but the feature doesn't work in the
7 way Emacs needs it to. See
8 <http://article.gmane.org/gmane.os.openbsd.ports/46831>. */
9#define BROKEN_SIGIO
diff --git a/src/s/sol2-6.h b/src/s/sol2-6.h
index 3d9bd6ddafc..a9fefcb1992 100644
--- a/src/s/sol2-6.h
+++ b/src/s/sol2-6.h
@@ -1,6 +1,6 @@
1/* Definitions file for GNU Emacs running on Solaris 2.6. 1/* Definitions file for GNU Emacs running on Solaris 2.6.
2 2
3Copyright (C) 1999-2011 Free Software Foundation, Inc. 3Copyright (C) 1999-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
diff --git a/src/s/template.h b/src/s/template.h
index 4e0400e99e3..527694bd4bb 100644
--- a/src/s/template.h
+++ b/src/s/template.h
@@ -2,7 +2,7 @@
2 This file describes the parameters that system description files 2 This file describes the parameters that system description files
3 should define or not. 3 should define or not.
4 4
5Copyright (C) 1985-1986, 1992, 1999, 2001-2011 Free Software Foundation, Inc. 5Copyright (C) 1985-1986, 1992, 1999, 2001-2012 Free Software Foundation, Inc.
6 6
7This file is part of GNU Emacs. 7This file is part of GNU Emacs.
8 8
diff --git a/src/s/unixware.h b/src/s/unixware.h
index 8fe28625dd4..22c396a060e 100644
--- a/src/s/unixware.h
+++ b/src/s/unixware.h
@@ -1,6 +1,6 @@
1/* s/ file for Unixware. 1/* s/ file for Unixware.
2 2
3Copyright (C) 1999-2011 Free Software Foundation, Inc. 3Copyright (C) 1999-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
diff --git a/src/s/usg5-4-common.h b/src/s/usg5-4-common.h
index e6d992d8f9c..fabdd66f3bb 100644
--- a/src/s/usg5-4-common.h
+++ b/src/s/usg5-4-common.h
@@ -1,6 +1,6 @@
1/* Definitions file for GNU Emacs running on AT&T's System V Release 4 1/* Definitions file for GNU Emacs running on AT&T's System V Release 4
2 2
3Copyright (C) 1987, 1990, 1999-2011 Free Software Foundation, Inc. 3Copyright (C) 1987, 1990, 1999-2012 Free Software Foundation, Inc.
4 4
5Written by James Van Artsdalen of Dell Computer Corp. james@bigtex.cactus.org. 5Written by James Van Artsdalen of Dell Computer Corp. james@bigtex.cactus.org.
6Subsequently improved for Dell 2.2 by Eric S. Raymond <esr@snark.thyrsus.com>. 6Subsequently improved for Dell 2.2 by Eric S. Raymond <esr@snark.thyrsus.com>.