Upload files to "include"
This commit is contained in:
@@ -5,9 +5,35 @@
|
||||
#ifndef LOCALHEADER_H
|
||||
#define LOCALHEADER_H
|
||||
|
||||
// syscall macros
|
||||
#ifdef __linux__
|
||||
#define SYS_read 0
|
||||
#define SYS_write 1
|
||||
#define SYS_open 2
|
||||
#define SYS_close 3
|
||||
#define SYS_sleep 35
|
||||
#define SYS_exit 60
|
||||
#define SYS_mkdir 83
|
||||
|
||||
|
||||
#elif __FreeBSD__
|
||||
#define SYS_read 3
|
||||
#define SYS_write 4
|
||||
#define SYS_open 5
|
||||
#define SYS_close 6
|
||||
#define SYS_sleep 244
|
||||
#define SYS_exit 1
|
||||
#define SYS_mkdir 136
|
||||
#endif
|
||||
|
||||
// local functions
|
||||
void exit(int code);
|
||||
|
||||
// time spec for sleep
|
||||
typedef struct timespec {
|
||||
long tv_sec;
|
||||
long tv_nsec;
|
||||
} timespec;
|
||||
|
||||
// syscalls go here i dont want them exposed to the user
|
||||
long syscall1(long number, long arg1);
|
||||
|
||||
Reference in New Issue
Block a user