distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
syscallsStubs.cpp File Reference

Stub system calls for newlib's libc. More...

#include <sys/stat.h>
#include <sys/times.h>
#include <cerrno>
#include <cstdint>
Include dependency graph for syscallsStubs.cpp:

Functions

int _close_r (_reent *, int)
 Stub _close_r() implementation. More...
 
int _execve_r (_reent *, const char *, char *const [], char *const [])
 Stub _execve_r() implementation. More...
 
void _exit (int)
 Stub _exit() implementation. More...
 
pid_t _fork_r (_reent *)
 Stub _fork_r() implementation. More...
 
int _fstat_r (_reent *, int, struct stat *)
 Stub _fstat_r() implementation. More...
 
pid_t _getpid_r (_reent *)
 Stub _getpid_r() implementation. More...
 
int _isatty_r (_reent *, int)
 Stub _isatty_r() implementation. More...
 
int _kill_r (_reent *, pid_t, int)
 Stub _kill_r() implementation. More...
 
int _link_r (_reent *, const char *, const char *)
 Stub _link_r() implementation. More...
 
off_t _lseek_r (_reent *, int, off_t, int)
 Stub _lseek_r() implementation. More...
 
int _open_r (_reent *, const char *, int, int)
 Stub _open_r() implementation. More...
 
ssize_t _read_r (_reent *, int, void *, size_t)
 Stub _read_r() implementation. More...
 
caddr_t _sbrk_r (_reent *, intptr_t)
 Stub _sbrk_r() implementation. More...
 
int _stat_r (_reent *, const char *, struct stat *)
 Stub _stat_r() implementation. More...
 
clock_t _times_r (_reent *, tms *)
 Stub _times_r() implementation. More...
 
int _unlink_r (_reent *, const char *)
 Stub _unlink_r() implementation. More...
 
pid_t _wait_r (_reent *, int *)
 Stub _wait_r() implementation. More...
 
ssize_t _write_r (_reent *, int, const void *, size_t)
 Stub _write_r() implementation. More...
 

Detailed Description

Stub system calls for newlib's libc.

Author
Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Function Documentation

◆ _close_r()

int _close_r ( _reent *  ,
int   
)

Stub _close_r() implementation.

Returns
-1

◆ _execve_r()

int _execve_r ( _reent *  ,
const char *  ,
char *  const[],
char *  const[] 
)

Stub _execve_r() implementation.

Returns
-1

◆ _exit()

void _exit ( int  )

Stub _exit() implementation.

◆ _fork_r()

pid_t _fork_r ( _reent *  )

Stub _fork_r() implementation.

Returns
-1

◆ _fstat_r()

int _fstat_r ( _reent *  ,
int  ,
struct stat *   
)

Stub _fstat_r() implementation.

Returns
-1

◆ _getpid_r()

pid_t _getpid_r ( _reent *  )

Stub _getpid_r() implementation.

Returns
1.

◆ _isatty_r()

int _isatty_r ( _reent *  ,
int   
)

Stub _isatty_r() implementation.

Returns
0

◆ _kill_r()

int _kill_r ( _reent *  ,
pid_t  ,
int   
)

Stub _kill_r() implementation.

Returns
-1

◆ _link_r()

int _link_r ( _reent *  ,
const char *  ,
const char *   
)

Stub _link_r() implementation.

Returns
-1

◆ _lseek_r()

off_t _lseek_r ( _reent *  ,
int  ,
off_t  ,
int   
)

Stub _lseek_r() implementation.

Returns
-1

◆ _open_r()

int _open_r ( _reent *  ,
const char *  ,
int  ,
int   
)

Stub _open_r() implementation.

Returns
-1

◆ _read_r()

ssize_t _read_r ( _reent *  ,
int  ,
void *  ,
size_t   
)

Stub _read_r() implementation.

Returns
-1

◆ _sbrk_r()

caddr_t _sbrk_r ( _reent *  ,
intptr_t   
)

Stub _sbrk_r() implementation.

Returns
-1

◆ _stat_r()

int _stat_r ( _reent *  ,
const char *  ,
struct stat *   
)

Stub _stat_r() implementation.

Returns
-1

◆ _times_r()

clock_t _times_r ( _reent *  ,
tms *   
)

Stub _times_r() implementation.

Returns
-1

◆ _unlink_r()

int _unlink_r ( _reent *  ,
const char *   
)

Stub _unlink_r() implementation.

Returns
-1

◆ _wait_r()

pid_t _wait_r ( _reent *  ,
int *   
)

Stub _wait_r() implementation.

Returns
-1

◆ _write_r()

ssize_t _write_r ( _reent *  ,
int  ,
const void *  ,
size_t   
)

Stub _write_r() implementation.

Returns
-1