source: azure_iot_hub/trunk/musl-1.1.18/src/signal/raise.c@ 389

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

ビルドが通るよう更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 269 bytes
Line 
1#include <signal.h>
2#include <stdint.h>
3#include "syscall.h"
4#include "pthread_impl.h"
5
6int raise(int sig)
7{
8 int tid, ret;
9 sigset_t set;
10 __block_app_sigs(&set);
11 tid = __syscall(SYS_gettid);
12 ret = syscall(SYS_tkill, tid, sig);
13 __restore_sigs(&set);
14 return ret;
15}
Note: See TracBrowser for help on using the repository browser.