PER Firmware
Loading...
Searching...
No Matches
syscalls.h
Go to the documentation of this file.
1#ifndef SYSCALLS_H
2#define SYSCALLS_H
3
4#include <sys/stat.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10int *__errno(void);
11int _write(int file, char* ptr, int len);
12int _read(int file, char* ptr, int len);
13int _close(int file);
14int _fstat(int file, struct stat* st);
15int _isatty(int file);
16int _lseek(int file, int ptr, int dir);
17void* _sbrk(int incr);
18int _getpid(void);
19int _getpid_r(struct _reent* r);
20int _kill(int pid, int sig);
21int _kill_r(struct _reent* r, int pid, int sig);
22
23#ifdef __cplusplus
24}
25#endif
26
27#endif // SYSCALLS_H
int _kill(int pid, int sig)
Definition syscalls.c:49
void * _sbrk(int incr)
Definition syscalls.c:35
int * __errno(void)
Definition syscalls.c:3
int _fstat(int file, struct stat *st)
Definition syscalls.c:22
int _read(int file, char *ptr, int len)
Definition syscalls.c:14
int _close(int file)
Definition syscalls.c:18
int _getpid_r(struct _reent *r)
Definition syscalls.c:63
int _lseek(int file, int ptr, int dir)
Definition syscalls.c:31
int _getpid(void)
Definition syscalls.c:58
int _write(int file, char *ptr, int len)
Definition syscalls.c:9
int _kill_r(struct _reent *r, int pid, int sig)
Definition syscalls.c:54
int _isatty(int file)
Definition syscalls.c:27