summaryrefslogtreecommitdiff
path: root/src/user/lib/include/signal.h
blob: b6e9677957006ed1cf44ef3adf05c6903a409e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include <errno.h> // only for ENOSYS

#define SIGHUP 0
#define SIGINT 0
#define SIGQUIT 0
#define SIGWINCH 0
#define SIG_DFL 0
#define SIG_ERR 0
#define SIG_IGN 0

typedef int sig_atomic_t;

static inline int signal(int sig, void (*func)(int)) {
	(void)sig; (void)func;
	errno = ENOSYS;
	return SIG_ERR;
}