/seL4-refos-master/libs/libmuslc/src/signal/ |
H A D | sigignore.c | 5 struct sigaction sa; local 7 sigemptyset(&sa.sa_mask); 8 sa.sa_handler = SIG_IGN; 9 sa.sa_flags = 0; 10 return sigaction(sig, &sa, 0);
|
H A D | siginterrupt.c | 5 struct sigaction sa; local 7 sigaction(sig, 0, &sa); 8 if (flag) sa.sa_flags &= ~SA_RESTART; 9 else sa.sa_flags |= SA_RESTART; 11 return sigaction(sig, &sa, 0);
|
H A D | sigset.c | 5 struct sigaction sa, sa_old; local 18 sa.sa_handler = handler; 19 sa.sa_flags = 0; 20 sigemptyset(&sa.sa_mask); 21 if (sigaction(sig, &sa, &sa_old) < 0)
|
H A D | sigaction.c | 17 int __libc_sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) argument 20 if (sa) { 21 if ((uintptr_t)sa->sa_handler > 1UL) { 39 ksa.handler = sa->sa_handler; 40 ksa.flags = sa->sa_flags | SA_RESTORER; 41 ksa.restorer = (sa->sa_flags & SA_SIGINFO) ? __restore_rt : __restore; 42 memcpy(&ksa.mask, &sa->sa_mask, sizeof ksa.mask); 44 if (syscall(SYS_rt_sigaction, sig, sa?&ksa:0, old?&ksa_old:0, sizeof ksa.mask)) 54 int __sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) argument 60 return __libc_sigaction(sig, sa, ol [all...] |
H A D | signal.c | 9 struct sigaction sa_old, sa = { .sa_handler = func, .sa_flags = SA_RESTART }; local 10 if (__sigaction(sig, &sa, &sa_old) < 0)
|
/seL4-refos-master/libs/libmuslc/src/process/ |
H A D | system.c | 16 struct sigaction sa = { .sa_handler = SIG_IGN }, oldint, oldquit; local 24 sigaction(SIGINT, &sa, &oldint); 25 sigaction(SIGQUIT, &sa, &oldquit); 26 sigaddset(&sa.sa_mask, SIGCHLD); 27 sigprocmask(SIG_BLOCK, &sa.sa_mask, &old);
|
H A D | posix_spawn.c | 42 struct sigaction sa = {0}; local 61 sa.sa_handler = SIG_DFL; 64 sa.sa_handler = SIG_IGN; 66 __libc_sigaction(i, 0, &sa); 67 if (sa.sa_handler==SIG_IGN) continue; 68 sa.sa_handler = SIG_DFL; 73 __libc_sigaction(i, &sa, 0);
|
/seL4-refos-master/libs/libmuslc/src/network/ |
H A D | gethostbyaddr_r.c | 17 } sa = { .sin.sin_family = af }; local 18 socklen_t sl = af==AF_INET6 ? sizeof sa.sin6 : sizeof sa.sin; 24 if (af==AF_INET6 && l==16) memcpy(&sa.sin6.sin6_addr, a, 16); 25 else if (af==AF_INET && l==4) memcpy(&sa.sin.sin_addr, a, 4); 50 switch (getnameinfo((void *)&sa, sl, buf, buflen, 0, 0, 0)) {
|
H A D | getifaddrs.c | 27 struct sockaddr sa; member in union:sockany 57 static void copy_addr(struct sockaddr **r, int af, union sockany *sa, void *addr, size_t addrlen, int ifindex) argument 64 dst = (uint8_t*) &sa->v4.sin_addr; 68 dst = (uint8_t*) &sa->v6.sin6_addr; 71 sa->v6.sin6_scope_id = ifindex; 77 sa->sa.sa_family = af; 79 *r = &sa->sa; 82 static void gen_netmask(struct sockaddr **r, int af, union sockany *sa, in argument 94 copy_lladdr(struct sockaddr **r, union sockany *sa, void *addr, size_t addrlen, int ifindex, unsigned short hatype) argument [all...] |
H A D | getaddrinfo.c | 17 union sa { union in struct:aibuf 20 } sa; member in struct:aibuf 72 .ai_addr = (void *)&out[k].sa, 77 out[k].sa.sin.sin_family = AF_INET; 78 out[k].sa.sin.sin_port = htons(ports[j].port); 79 memcpy(&out[k].sa.sin.sin_addr, &addrs[i].addr, 4); 82 out[k].sa.sin6.sin6_family = AF_INET6; 83 out[k].sa.sin6.sin6_port = htons(ports[j].port); 84 out[k].sa.sin6.sin6_scope_id = addrs[i].scopeid; 85 memcpy(&out[k].sa [all...] |
H A D | res_msend.c | 39 } sa = {0}, ns[MAXNS] = {{0}}; local 40 socklen_t sl = sizeof sa.sin; 62 sl = sizeof sa.sin6; 71 sa.sin.sin_family = family; 79 if (fd < 0 || bind(fd, (void *)&sa, sl) < 0) return -1; 129 (void *)&sa, (socklen_t[1]){sl})) >= 0) { 135 for (j=0; j<nns && memcmp(ns+j, &sa, sl); j++);
|
H A D | getnameinfo.c | 124 int getnameinfo(const struct sockaddr *restrict sa, socklen_t sl, argument 131 int af = sa->sa_family; 137 a = (void *)&((struct sockaddr_in *)sa)->sin_addr; 143 a = (void *)&((struct sockaddr_in6 *)sa)->sin6_addr; 149 scopeid = ((struct sockaddr_in6 *)sa)->sin6_scope_id; 190 int port = ntohs(((struct sockaddr_in *)sa)->sin_port);
|
H A D | lookup_name.c | 354 struct sockaddr_in6 sa, da = { local 375 if (!getsockname(fd, (void *)&sa, 376 &(socklen_t){sizeof sa})) { 377 if (dscope == scopeof(&sa.sin6_addr)) 379 if (dlabel == labelof(&sa.sin6_addr)) 381 prefixlen = prefixmatch(&sa.sin6_addr,
|
/seL4-refos-master/libs/libmuslc/src/math/ |
H A D | erfl.c | 169 /* erfc(1/x) = x exp (-1/x^2 - 0.5625 + ra(x^2)/sa(x^2)) 183 sa[] = { variable 267 S = sa[0] + s * (sa[1] + s * (sa[2] + s * (sa[3] + s * (sa[4] + 268 s * (sa[5] + s * (sa[6] + s * (sa[ [all...] |
/seL4-refos-master/libs/libmuslc/src/thread/ |
H A D | synccall.c | 53 struct sigaction sa = { .sa_flags = 0, .sa_handler = handler }; local 84 memset(&sa.sa_mask, -1, sizeof sa.sa_mask); 85 __libc_sigaction(SIGSYNCCALL, &sa, 0); 158 sa.sa_handler = SIG_IGN; 159 __libc_sigaction(SIGSYNCCALL, &sa, 0);
|
H A D | pthread_cancel.c | 79 struct sigaction sa = { local 83 memset(&sa.sa_mask, -1, _NSIG/8); 84 __libc_sigaction(SIGCANCEL, &sa, 0);
|
/seL4-refos-master/libs/libmuslc/src/time/ |
H A D | timer_create.c | 53 struct sigaction sa = { local 57 __libc_sigaction(SIGTIMER, &sa, 0);
|