Mercurial > emacs
view msdos/sigaction.c @ 67457:819dc1a5c256
Include keymap.h.
(mac_ready_for_apple_events): New variable.
(Vmac_apple_event_map, Qmac_apple_event_class)
(Qmac_apple_event_id): New variables.
(syms_of_macselect): Initialize them.
(Qundefined, mac_store_apple_event): Add externs.
(struct apple_event_binding): New struct.
(find_event_binding_fun, find_event_binding)
(mac_find_apple_event_spec, defer_apple_events)
(mac_handle_apple_event, init_apple_event_handler)
(copy_scrap_flavor_data): New functions.
(Fmac_process_deferred_apple_events): New defun.
(syms_of_macselect): Defsubr it.
(mac_store_services_event): Fix extern.
(mac_handle_service_event): Don't allocate Lisp objects during
asynchronous input processing. Use mac_store_services_event
instead of mac_store_application_menu_event.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Sat, 10 Dec 2005 01:49:44 +0000 |
parents | 695cf19ef79e |
children | 60ed74508594 375f2633d815 |
line wrap: on
line source
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ #include <signal.h> #include <errno.h> int sigaction(int _sig, const struct sigaction *_act, struct sigaction *_oact) { int retval = 0; if (_oact) { void (*installed_sig)(int) = signal (_sig, SIG_IGN); /* FIXME */ if (installed_sig == SIG_ERR) { retval = -1; errno = EINVAL; } else signal (_sig, installed_sig); _oact->sa_handler = installed_sig; retval = sigemptyset (&_oact->sa_mask); _oact->sa_flags = 0; } if (_act) { if (signal (_sig, _act->sa_handler) == SIG_ERR) { retval = -1; errno = EINVAL; } } return 0; } /* arch-tag: 39526405-3d3a-44fe-af28-82a515e0c8e8 (do not change this comment) */