forked from OpenIPC/msposd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompat.c
38 lines (30 loc) · 805 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
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/syscall.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>
int __ctype_b;
int __stdin;
#if __INFINITY6C__
int __assert;
int _MI_PRINT_GetDebugLevel;
void backtrace(void) {}
void backtrace_symbols(void) {}
#endif
#if !defined(_x86) && !defined(__ROCKCHIP__)
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