Mercurial > emacs
view msdos/sigaction.c @ 50324:d9a401f2769d
(take_vertical_position_into_account): Remove.
(xt_action_hook): Call set_vertical_scroll_bar if needed.
(XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
(xm_scroll_callback, x_create_toolkit_scroll_bar)
(x_set_toolkit_scroll_bar_thumb): Simplify.
(x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
(XTread_socket): Remove unused var.
(x_make_frame_invisible): Replace goto with else.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 28 Mar 2003 14:20:09 +0000 |
parents | 354e0c45cedf |
children | 695cf19ef79e |
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; }