Mercurial > emacs
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 |
rev | line source |
---|---|
25844 | 1 /* s/ file for openbsd systems. */ |
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 | 4 #include "netbsd.h" |
28264 | 5 |
6 /* David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this | |
7 is necessary. Otherwise Emacs dumps core when run -nw. */ | |
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 | 26 |
27 /* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2 | |
28 (do not change this comment) */ |