forked from Cellivar/stellaris-enc28j60
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdummyfuncs.c
70 lines (57 loc) · 944 Bytes
/
dummyfuncs.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include <sys/types.h>
#include <unistd.h>
#define NOT_USED(s) s = s
void _exit(int status) {
NOT_USED(status);
while(1);
}
void *_sbrk(int increment) {
NOT_USED(increment);
return 0x0;
}
int _kill(pid_t pid, int sig) {
NOT_USED(pid);
NOT_USED(sig);
return 0;
}
pid_t _getpid(void) {
return 0;
}
ssize_t _write(int fd, const void *buf, size_t count) {
NOT_USED(fd);
NOT_USED(buf);
NOT_USED(count);
return 0;
}
int _close(int fd) {
NOT_USED(fd);
return 0;
}
int _fstat(int fd, void *buf) {
NOT_USED(fd);
NOT_USED(buf);
return 0;
}
int _isatty(int fd) {
NOT_USED(fd);
return 0;
}
off_t _lseek(int fd, off_t offset, int whence) {
NOT_USED(fd);
NOT_USED(offset);
NOT_USED(whence);
return 0;
}
ssize_t _read(int fd, void *buf, size_t count) {
NOT_USED(fd);
NOT_USED(buf);
NOT_USED(count);
return 0;
}
void *malloc(size_t size) {
NOT_USED(size);
return 0x0;
}
void __cxa_pure_virtual(void) {
while (1);
}