Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
Loading...
Searching...
No Matches
syscall.h File Reference
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <sys/time.h>
#include <unistd.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>

Go to the source code of this file.

Functions

ssize_t _sbrk (int incr)
ssize_t _write (int fd, const void *buf, size_t count)
ssize_t _read (int fd, char *buf, size_t count)
int _close (int fd)
int _fstat (int fd, struct stat *st)
int _isatty (int fd)
off_t _lseek (int fd, off_t offset, int whence)
void _exit (int status)
int _kill (int pid, int sig)
int _getpid (void)

Variables

char _heap_start
char _heap_end
const char msg [] = "\033[31m\nERR: Heap Collision!\n\033[0m"

Function Documentation

◆ _close()

int _close ( int fd)

Definition at line 98 of file syscall.h.

◆ _exit()

void _exit ( int status)

Definition at line 127 of file syscall.h.

◆ _fstat()

int _fstat ( int fd,
struct stat * st )

Definition at line 105 of file syscall.h.

◆ _getpid()

int _getpid ( void )

Definition at line 142 of file syscall.h.

◆ _isatty()

int _isatty ( int fd)

Definition at line 113 of file syscall.h.

◆ _kill()

int _kill ( int pid,
int sig )

Definition at line 134 of file syscall.h.

◆ _lseek()

off_t _lseek ( int fd,
off_t offset,
int whence )

Definition at line 120 of file syscall.h.

◆ _read()

ssize_t _read ( int fd,
char * buf,
size_t count )

Definition at line 49 of file syscall.h.

◆ _sbrk()

ssize_t _sbrk ( int incr)

Definition at line 19 of file syscall.h.

◆ _write()

ssize_t _write ( int fd,
const void * buf,
size_t count )

Definition at line 33 of file syscall.h.

Variable Documentation

◆ _heap_end

char _heap_end
extern

◆ _heap_start

char _heap_start
extern

◆ msg

const char msg[] = "\033[31m\nERR: Heap Collision!\n\033[0m"

Definition at line 16 of file syscall.h.