-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
compat.c
47 lines (42 loc) · 952 Bytes
/
compat.c
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
#include <sys/syscall.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <pthread.h>
#include <sys/socket.h>
#include <sys/uio.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <pthread.h>
#include <sys/socket.h>
#include <sys/uio.h>
int __ctype_b;
int __stdin;
#ifndef _x86
int __fgetc_unlocked(FILE *stream) {
return fgetc(stream);
}
size_t _stdlib_mb_cur_max(void) {
return 0;
}
void* mmap(void *start, size_t len, int prot, int flags, int fd, uint32_t off) {
return (void *)syscall(SYS_mmap2, start, len, prot, flags, fd, off >> 12);
}
#endif