xref: /third_party/musl/src/signal/sigsetjmp_tail.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/signal/
1570af302Sopenharmony_ci#include <setjmp.h>
2570af302Sopenharmony_ci#include <signal.h>
3570af302Sopenharmony_ci#include "syscall.h"
4570af302Sopenharmony_ci
5570af302Sopenharmony_cihidden int __sigsetjmp_tail(sigjmp_buf jb, int ret)
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ci	void *p = jb->__ss;
8570af302Sopenharmony_ci	__syscall(SYS_rt_sigprocmask, SIG_SETMASK, ret?p:0, ret?0:p, _NSIG/8);
9570af302Sopenharmony_ci	return ret;
10570af302Sopenharmony_ci}
11

Indexes created Thu Nov 07 10:32:03 CST 2024