forked from keystone-enclave/keystone-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux_wrap.h
More file actions
24 lines (21 loc) · 868 Bytes
/
linux_wrap.h
File metadata and controls
24 lines (21 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifdef LINUX_SYSCALL_WRAPPING
#ifndef _LINUX_WRAP_H_
#define _LINUX_WRAP_H_
#include <bits/types/sigset_t.h>
#include <stddef.h>
#include <stdint.h>
struct timespec;
uintptr_t linux_uname(void* buf);
uintptr_t linux_clock_gettime(__clockid_t clock, struct timespec *tp);
uintptr_t linux_rt_sigprocmask(int how, const sigset_t *set, sigset_t *oldset);
uintptr_t linux_getrandom(void *buf, size_t buflen, unsigned int flags);
uintptr_t linux_getpid();
uintptr_t linux_set_tid_address(int* tidptr);
uintptr_t linux_RET_ZERO_wrap(unsigned long which);
uintptr_t linux_RET_BAD_wrap(unsigned long which);
uintptr_t syscall_munmap(void *addr, size_t length);
uintptr_t syscall_mmap(void *addr, size_t length, int prot, int flags,
int fd, __off_t offset);
uintptr_t syscall_brk(void* addr);
#endif /* _LINUX_WRAP_H_ */
#endif /* LINUX_SYSCALL_WRAPPING */