annotate msdos/sigaction.c @ 51214:4011d3fb2912
kfs_20030524_post
(struct x_output): Move members left_pos, top_pos,
border_width, pixel_height, pixel_width, line_height,
internal_border_width, vertical_scroll_bar_extra,
left_fringe_width, right_fringe_width, fringe_cols,
fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
(FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
(FRAME_DEFAULT_FONT_WIDTH): Remove macro.
(PIXEL_WIDTH, PIXEL_HEIGHT)
(FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
(FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
frame.h and renamed [see frame.h changes].
(CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
(CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
(PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
and renamed [see frame.h changes].
author |
Kim F. Storm <storm@cua.dk> |
date |
Sat, 24 May 2003 22:10:38 +0000 |
parents |
354e0c45cedf |
children |
695cf19ef79e |
rev |
line source |
25856
|
1 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
|
2 #include <signal.h>
|
|
3 #include <errno.h>
|
|
4
|
|
5 int
|
|
6 sigaction(int _sig, const struct sigaction *_act, struct sigaction *_oact)
|
|
7 {
|
|
8 int retval = 0;
|
|
9
|
|
10 if (_oact)
|
|
11 {
|
|
12 void (*installed_sig)(int) = signal (_sig, SIG_IGN);
|
|
13
|
|
14 /* FIXME */
|
|
15 if (installed_sig == SIG_ERR)
|
|
16 {
|
|
17 retval = -1;
|
|
18 errno = EINVAL;
|
|
19 }
|
|
20 else
|
|
21 signal (_sig, installed_sig);
|
|
22 _oact->sa_handler = installed_sig;
|
|
23 retval = sigemptyset (&_oact->sa_mask);
|
|
24 _oact->sa_flags = 0;
|
|
25 }
|
|
26 if (_act)
|
|
27 {
|
|
28 if (signal (_sig, _act->sa_handler) == SIG_ERR)
|
|
29 {
|
|
30 retval = -1;
|
|
31 errno = EINVAL;
|
|
32 }
|
|
33 }
|
|
34 return 0;
|
|
35 }
|
|
36
|
|
37
|
|
38
|