aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/signal.h
blob: 4e28b1121057c652561ec594a0a3a90226418563 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2022 Egor Tensin <egor@tensin.name>
 * This file is part of the "cimple" project.
 * For details, see https://github.com/egor-tensin/cimple
 * Distributed under the MIT License.
 */

#ifndef __SIGNAL_H__
#define __SIGNAL_H__

#include <signal.h>

int signal_set_mask(const sigset_t* new);

int signal_block_all(sigset_t* old);
int signal_block_sigterms(void);

int signalfd_create(const sigset_t*);
int signalfd_create_sigterms(void);
void signalfd_destroy(int fd);

#endif