Files | |
file | close.c |
file | confdefs.h |
file | cubereent.c |
file | cubereent.h |
file | fstat.c |
file | getpid.c |
file | glue.h |
file | isatty.c |
file | kill.c |
file | kio.c |
file | kio.h |
file | lseek.c |
file | open.c |
file | print.c |
file | read.c |
file | stat.c |
file | syscall.h |
file | unlink.c |
file | write.c |
Functions | |
int | close (int fd) |
closes a file descriptor. More... | |
void | _LIBC_init_reent (struct _reent *ptr) |
prepares a newlib reentrancy structure fo use. More... | |
int | getpid () |
returns the current process ID. More... | |
int | isatty (int fd) |
returns 1 if connected to a terminal device, returns 0 if not. More... | |
int | kill (int pid, int sig) |
kill - Sends a signal to a thread. More... | |
char | _LIBC_inbyte () |
glue function between libc and TTY. More... | |
void | _LIBC_outbyte (char c) |
glue function between libc and TTY. More... | |
void | LIBC_outstring (char *str) |
glue function between libc and TTY. More... | |
void | _exit (int status) |
glue function between libc and TTY. More... | |
off_t | lseek (int fd, off_t offset, int whence) |
Since a serial port is non-seekable, we return an error. More... | |
void | print (char *ptr) |
do a raw print of a string. More... | |
void | putnum (unsigned int num) |
print a 32 bit number in hex. More... | |
int | read (int fd, char *buf, int nbytes) |
read bytes from the serial port. Ignore fd, since we only have stdin. More... | |
char * | sbrk (int nbytes) |
changes heap size size. Get nbytes more RAM. More... | |
int | stat (const char *path, struct stat *buf) |
Since we have no file system, we just return an error. More... | |
int | unlink (char *path) |
unlink -- since we have no file system, we just return an error. More... | |
int | write (int fd, char *buf, int nbytes) |
write bytes to the serial port. More... |
|
glue function between libc and TTY.
|
|
glue function between libc and TTY.
Definition at line 40 of file kio.c. References TTY_inchar. |
|
prepares a newlib reentrancy structure fo use.
Definition at line 32 of file cubereent.c. |
|
glue function between libc and TTY.
Definition at line 49 of file kio.c. References TTY_outchar. |
|
closes a file descriptor.
|
|
returns the current process ID.
|
|
returns 1 if connected to a terminal device, returns 0 if not.
|
|
kill - Sends a signal to a thread.
Definition at line 34 of file kill.c. References MAX_PROCESSNUM, and STATE_EMPTY. |
|
glue function between libc and TTY.
Definition at line 58 of file kio.c. References TTY_outchar. |
|
Since a serial port is non-seekable, we return an error.
|
|
do a raw print of a string. This is not used in the libc, but it's included here anyway. Definition at line 43 of file print.c. References _LIBC_outbyte. |
|
print a 32 bit number in hex.
|
|
read bytes from the serial port. Ignore fd, since we only have stdin.
Definition at line 40 of file read.c. References _LIBC_inbyte. |
|
changes heap size size. Get nbytes more RAM. We just increment a pointer in what's left of memory on the board.
|
|
Since we have no file system, we just return an error.
Definition at line 41 of file stat.c. References stat. |
|
unlink -- since we have no file system, we just return an error.
|
|
write bytes to the serial port. Ignore fd, since stdout and stderr are the same. Since we have no filesystem, open will only return an error. Definition at line 43 of file write.c. References _LIBC_outbyte. |