-
Notifications
You must be signed in to change notification settings - Fork 160
/
Copy pathcommon.h
31 lines (26 loc) · 786 Bytes
/
common.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
#ifndef COMMON_H
#define COMMON_H
/* Enable GNU extensions present in the standard headers. */
#define _GNU_SOURCE
/* C */
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h> /* perror */
#include <stdlib.h> /* EXIT_SUCCESS, EXIT_FAILURE */
#include <string.h>
/* POSIX */
#include <semaphore.h>
#include <fcntl.h>
#include <sched.h> /* SCHED_BATCH, SCHED_IDLE, sched_getaffinity */
#include <sys/mman.h> /* mmap */
#include <sys/types.h>
#include <sys/wait.h> /* wait, sleep */
#include <unistd.h> /* brk, sbrk sysconf */
/* glibc. */
#include <gnu/libc-version.h> /* gnu_get_libc_version */
#include <sys/ptrace.h> /* ptrace */
#include <sys/reg.h>
#include <sys/syscall.h> /* __NR_XXX, SYS_XXX */
#include <sys/user.h> /* user_regs_struct */
#endif