Contiki-NG
Loading...
Searching...
No Matches
syscalls.c
1/*
2 * System call stubs for ARM GCC 12 compatibility
3 *
4 * Note: sl_memory.c from Gecko SDK provides heap management,
5 * but we need additional system call stubs for ARM GCC 12.
6 */
7
8#include <sys/types.h>
9#include <errno.h>
10
11/*---------------------------------------------------------------------------*/
12int
13_close(int fd)
14{
15 (void)fd;
16 return -1;
17}
18/*---------------------------------------------------------------------------*/
19int
20_fstat(int fd, void *st)
21{
22 (void)fd;
23 (void)st;
24 return -1;
25}
26/*---------------------------------------------------------------------------*/
27int
28_getpid(void)
29{
30 return 1;
31}
32/*---------------------------------------------------------------------------*/
33int
34_isatty(int fd)
35{
36 (void)fd;
37 return 0;
38}
39/*---------------------------------------------------------------------------*/
40int
41_kill(int pid, int sig)
42{
43 (void)pid;
44 (void)sig;
45 return -1;
46}
47/*---------------------------------------------------------------------------*/
48int
49_lseek(int fd, int offset, int whence)
50{
51 (void)fd;
52 (void)offset;
53 (void)whence;
54 return -1;
55}
56/*---------------------------------------------------------------------------*/
57int
58_read(int fd, char *buf, int count)
59{
60 (void)fd;
61 (void)buf;
62 (void)count;
63 return -1;
64}
65/*---------------------------------------------------------------------------*/
66int
67_write(int fd, const char *buf, int count)
68{
69 (void)fd;
70 (void)buf;
71 (void)count;
72 return -1;
73}
74/*---------------------------------------------------------------------------*/
static volatile uint64_t count
Num.
Definition clock.c:50