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
/*---------------------------------------------------------------------------*/
12
int
13
_close(
int
fd)
14
{
15
(void)fd;
16
return
-1;
17
}
18
/*---------------------------------------------------------------------------*/
19
int
20
_fstat(
int
fd,
void
*st)
21
{
22
(void)fd;
23
(void)st;
24
return
-1;
25
}
26
/*---------------------------------------------------------------------------*/
27
int
28
_getpid(
void
)
29
{
30
return
1;
31
}
32
/*---------------------------------------------------------------------------*/
33
int
34
_isatty(
int
fd)
35
{
36
(void)fd;
37
return
0;
38
}
39
/*---------------------------------------------------------------------------*/
40
int
41
_kill(
int
pid,
int
sig)
42
{
43
(void)pid;
44
(void)sig;
45
return
-1;
46
}
47
/*---------------------------------------------------------------------------*/
48
int
49
_lseek(
int
fd,
int
offset,
int
whence)
50
{
51
(void)fd;
52
(void)offset;
53
(void)whence;
54
return
-1;
55
}
56
/*---------------------------------------------------------------------------*/
57
int
58
_read(
int
fd,
char
*buf,
int
count
)
59
{
60
(void)fd;
61
(void)buf;
62
(void)
count
;
63
return
-1;
64
}
65
/*---------------------------------------------------------------------------*/
66
int
67
_write(
int
fd,
const
char
*buf,
int
count
)
68
{
69
(void)fd;
70
(void)buf;
71
(void)
count
;
72
return
-1;
73
}
74
/*---------------------------------------------------------------------------*/
count
static volatile uint64_t count
Num.
Definition
clock.c:50
arch
cpu
gecko
os
syscalls.c
Generated on Sat Sep 20 2025 07:49:19 for Contiki-NG by
1.10.0