|
STM32 core 3.0.1-dev
Arduino core for STM32 based boards: API reference
|
← STM32duino documentation
|
Implementation of newlib syscall. More...
#include "stm32_def.h"#include <errno.h>Functions | |
| caddr_t | _sbrk (int incr) |
| Increase the program data space (heap) used by malloc. | |
| int | _close (int file) |
| Close a file. | |
| int | _fstat (int file, struct stat *st) |
| Get file status. | |
| int | _isatty (int file) |
| Check whether a file descriptor refers to a terminal. | |
| int | _lseek (int file, int ptr, int dir) |
| Set the file position. | |
| int | _read (int file, char *ptr, int len) |
| Read from a file. | |
| void | _exit (int status) |
| Terminate the program. | |
| int | _kill (int pid, int sig) |
| Send a signal to a process. | |
| int | _getpid (void) |
| Get the process ID. | |
Variables | |
| int | errno |
Implementation of newlib syscall.
| int _close | ( | int | file | ) |
Close a file.
Not supported, always fails.
| file | File descriptor to close. |
| void _exit | ( | int | status | ) |
Terminate the program.
Loops forever.
| status | Exit status (ignored). |
| int _fstat | ( | int | file, |
| struct stat * | st | ||
| ) |
Get file status.
Reports every file as a character device.
| file | File descriptor. |
| st | Buffer that receives the file status. |
| int _getpid | ( | void | ) |
Get the process ID.
Always returns 1.
| int _isatty | ( | int | file | ) |
Check whether a file descriptor refers to a terminal.
Always reports a terminal.
| file | File descriptor. |
| int _kill | ( | int | pid, |
| int | sig | ||
| ) |
Send a signal to a process.
Not supported, always fails.
| pid | Process ID. |
| sig | Signal number. |
| int _lseek | ( | int | file, |
| int | ptr, | ||
| int | dir | ||
| ) |
Set the file position.
Not supported, always returns 0.
| file | File descriptor. |
| ptr | Offset. |
| dir | Seek direction. |
| int _read | ( | int | file, |
| char * | ptr, | ||
| int | len | ||
| ) |
Read from a file.
Not supported, always returns 0 bytes read.
| file | File descriptor. |
| ptr | Buffer to fill. |
| len | Maximum number of bytes to read. |
| caddr_t _sbrk | ( | int | incr | ) |
Increase the program data space (heap) used by malloc.
| incr | Number of bytes to add to the heap. |