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

summaryrefslogtreecommitdiff
path: root/acccre-server.h
blob: 5db8b241b6d0a2b602dcca35c74a20e627e4d490 (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
29
30
31
32
33
34
#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
};

int parse(char *str);

void *reg(void *args);
void *chpasswd(void *args);
void *nop(void *args);

#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;
const char *separator = "\t";