Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/acccre-server.h
blob: d030c6b181ec32ce0f73b631bcf1db56749b57ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <signal.h>
#include <stdint.h>

const int sigs[] = {
	SIGABRT,
	SIGALRM,
	SIGFPE,
	SIGHUP,
	SIGILL,
	SIGINT,
	SIGPIPE,
	SIGQUIT,
	SIGSEGV,
	SIGSYS,
	SIGTERM,
	SIGTRAP,
	SIGTSTP,
	SIGVTALRM,
	SIGXCPU,
	SIGXFSZ
};

#define BUFFER_SIZE 100
#define DEFAULT_PATH "./acccre.sock"
/* Taken from https://pubs.opengroup.org/onlinepubs/9799919799/ */
#define MAX_SUN_PATH sizeof(((struct sockaddr_un *)0)->sun_path)
typedef uint16_t acccre_size_t;