annotate src/s/openbsd.h @ 58818:f8cddae7d959

* gtkutil.c: Include signal.h and syssignal.h. (xg_get_file_name): Block and unblock __SIGRTMIN if defined. * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h, new variables main_thread and alloc_mutex, define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread. If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as (UN)BLOCK_INPUT. (emacs_blocked_free, emacs_blocked_malloc) (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC. (uninterrupt_malloc): Initialize main_thread and alloc_mutex. (reset_malloc_hooks): New function. * lisp.h: Declare reset_malloc_hooks. * emacs.c (Fdump_emacs): Call reset_malloc_hooks. * keyboard.c: Conditionally include pthread.h (handle_async_inpu, input_available_signalt): If not in the main thread, block signal, send signal to main thread and return.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 07 Dec 2004 08:25:43 +0000
parents 695cf19ef79e
children 167aa6212e5a 375f2633d815
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25844
Dave Love <fx@gnu.org>
parents:
diff changeset
1 /* s/ file for openbsd systems. */
Dave Love <fx@gnu.org>
parents:
diff changeset
2
51877
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
3 /* Mostly the same as NetBSD. */
25844
Dave Love <fx@gnu.org>
parents:
diff changeset
4 #include "netbsd.h"
28264
db6bbbe07da8 (LIBS_TERMCAP): Undef.
Gerd Moellmann <gerd@gnu.org>
parents: 25844
diff changeset
5
db6bbbe07da8 (LIBS_TERMCAP): Undef.
Gerd Moellmann <gerd@gnu.org>
parents: 25844
diff changeset
6 /* David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
db6bbbe07da8 (LIBS_TERMCAP): Undef.
Gerd Moellmann <gerd@gnu.org>
parents: 25844
diff changeset
7 is necessary. Otherwise Emacs dumps core when run -nw. */
db6bbbe07da8 (LIBS_TERMCAP): Undef.
Gerd Moellmann <gerd@gnu.org>
parents: 25844
diff changeset
8 #undef LIBS_TERMCAP
51877
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
9
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
10 #define TERMINFO
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
11 #define LIBS_TERMCAP -lncurses
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
12
51977
64835b08503d (LD_SWITCH_SYSTEM_TEMACS): Add undef.
Richard M. Stallman <rms@gnu.org>
parents: 51877
diff changeset
13 #undef LD_SWITCH_SYSTEM_TEMACS
51877
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
14 #undef LD_SWITCH_SYSTEM
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
15 #ifdef __ELF__
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
16
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
17 /* Han Boetes <han@mijncomputer.nl> says this
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
18 is necessary, otherwise Emacs dumps core on elf systems. */
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
19 #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Z
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
20
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
21 #else
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
22
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
23 #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
24
cf068b0ef3c5 Don't include bsd4-3.h.
Richard M. Stallman <rms@gnu.org>
parents: 28264
diff changeset
25 #endif
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51977
diff changeset
26
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51977
diff changeset
27 /* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51977
diff changeset
28 (do not change this comment) */