xref: /third_party/musl/src/signal/sigemptyset.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/signal/
1570af302Sopenharmony_ci#include <signal.h>
2570af302Sopenharmony_ci#include <string.h>
3570af302Sopenharmony_ci
4570af302Sopenharmony_ciint sigemptyset(sigset_t *set)
5570af302Sopenharmony_ci{
6570af302Sopenharmony_ci	set->__bits[0] = 0;
7570af302Sopenharmony_ci	if (sizeof(long)==4 || _NSIG > 65) set->__bits[1] = 0;
8570af302Sopenharmony_ci	if (sizeof(long)==4 && _NSIG > 65) {
9570af302Sopenharmony_ci		set->__bits[2] = 0;
10570af302Sopenharmony_ci		set->__bits[3] = 0;
11570af302Sopenharmony_ci	}
12570af302Sopenharmony_ci	return 0;
13570af302Sopenharmony_ci}
14

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