Last change
on this file since 445 was 444, checked in by coas-nagasima, 4 years ago |
muslのソースコードを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
334 bytes
|
Line | |
---|
1 | #include <signal.h>
|
---|
2 | #include <errno.h>
|
---|
3 | #include "syscall.h"
|
---|
4 |
|
---|
5 | int sigaltstack(const stack_t *restrict ss, stack_t *restrict old)
|
---|
6 | {
|
---|
7 | if (ss) {
|
---|
8 | if (ss->ss_size < MINSIGSTKSZ) {
|
---|
9 | errno = ENOMEM;
|
---|
10 | return -1;
|
---|
11 | }
|
---|
12 | if (ss->ss_flags & ~SS_DISABLE) {
|
---|
13 | errno = EINVAL;
|
---|
14 | return -1;
|
---|
15 | }
|
---|
16 | }
|
---|
17 | return syscall(SYS_sigaltstack, ss, old);
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.