source: asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/signal/signal.c@ 337

Last change on this file since 337 was 337, checked in by coas-nagasima, 6 years ago

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 414 bytes
Line 
1#include <signal.h>
2#include "syscall.h"
3#include "libc.h"
4
5int __sigaction(int, const struct sigaction *, struct sigaction *);
6
7void (*signal(int sig, void (*func)(int)))(int)
8{
9 struct sigaction sa_old, sa = { .sa_handler = func, .sa_flags = SA_RESTART };
10 if (__sigaction(sig, &sa, &sa_old) < 0)
11 return SIG_ERR;
12 return sa_old.sa_handler;
13}
14
15weak_alias(signal, bsd_signal);
16weak_alias(signal, __sysv_signal);
Note: See TracBrowser for help on using the repository browser.