-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjaakkos.h
50 lines (39 loc) · 938 Bytes
/
jaakkos.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef JAAKKOS_H
#define JAAKKOS_H
#define _POSIX_SOURCE
#define _BSD_SOURCE
#define _XOPEN_SOURCE
#include <stdio.h>
#include <sys/mman.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <string.h>
#include <time.h>
#include <stdint.h>
#include <ctype.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <pwd.h>
#include <errno.h>
#include <sys/time.h>
#define TURNCOUNTER (*((unsigned int*)0x082b16e0))
#define RWX_PROT (PROT_WRITE | PROT_READ | PROT_EXEC)
// Align address to page boundary
#define PAGEBOUND(p) ((void*)((p) - (p)%getpagesize()))
void roll_start();
void load_requirements();
void starsign_select();
void command_hook();
int save_hook(char *msg, int a, char b);
pid_t try_fork();
void* shm_init(size_t bytes);
void shm_deinit();
#define ITEMSTRSZ 128
#define ITEMS 744
void load_item_list();
#endif