/* Definitions file for GNU Emacs running on the GNU Hurd.
- Copyright (C) 1994 Free Software Foundation, Inc.
+ Copyright (C) 1994, 1995, 1996, 2002, 2003, 2004,
+ 2005 Free Software Foundation, Inc.
This file is part of GNU Emacs.
You should have received a copy of the GNU General Public License
along with GNU Emacs; see the file COPYING. If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+Boston, MA 02110-1301, USA. */
/* Get most of the stuff from bsd4.3 */
#undef SYSTEM_TYPE
#define SYSTEM_TYPE "gnu"
+#undef NLIST_STRUCT
+
/* XXX should getloadavg be in libc? Should we have a libutil?
#define HAVE_GETLOADAVG */
-
-#define HAVE_UNION_WAIT
+#undef NLIST_STRUCT
+#undef KERNEL_FILE
+#undef LDAV_SYMBOL
#define SIGNALS_VIA_CHARACTERS
#define TABDLY OXTABS
#define TAB3 OXTABS
+/* Tell Emacs that we are a terminfo based system; disable the use
+ of local termcap. (GNU uses ncurses.) */
+#ifdef HAVE_LIBNCURSES
+#define TERMINFO
+#define LIBS_TERMCAP -lncurses
+#endif
#define SYSV_SYSTEM_DIR
/* GNU has POSIX-style pgrp behavior. */
#undef BSD_PGRPS
+#define GETPGRP_NO_ARG
-/* Reread the time zone on startup. */
-#define LOCALTIME_CACHE
+/* Use mmap directly for allocating larger buffers. */
+#ifdef DOUG_LEA_MALLOC
+#undef REL_ALLOC
+#endif
#define HAVE_WAIT_HEADER
+#define WAIT_USE_INT
+#define HAVE_UNION_WAIT
/* GNU needs its own crt0, and libc defines data_start. */
#define ORDINARY_LINK
#define DATA_START ({ extern int data_start; (char *) &data_start; })
-/* It is not safe to move the text/data boundary because in GNU the C
- library will need some data and bss of its own, but which must come
- after Emacs's data because it is linked in to satisfy references Emacs
- makes. Fortunately, in GNU it is also no loss for the pure Lisp data to
- be in data instead of text, because it's all mapped copy-on-write. */
-#define NO_REMAP
+/* GNU now always uses the ELF format. */
+#define UNEXEC unexelf.o
+
+/* Some losing code fails to include this and then assumes
+ that because it is braindead that O_RDONLY==0. */
+#ifndef NOT_C_CODE
+#include <fcntl.h>
+#endif
-/* For the i386-mach a.out format: */
-#define A_TEXT_SEEK(hdr) (sizeof (struct exec))
+#define NARROWPROTO 1
-/* ptys are not done yet. */
-#undef HAVE_PTYS
+#ifdef emacs
+#include <stdio.h> /* Get the definition of _IO_STDIO_H. */
+#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
+/* new C libio names */
+#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
+ ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
+#endif /* !_IO_STDIO_H */
+#endif /* emacs */
-/* Until we finish the network. */
-#undef HAVE_SOCKETS
+/* arch-tag: 577983d9-87a6-4922-b8f8-ff2b563714a4
+ (do not change this comment) */