Many of the stubs will be replaced by real functions as necessary to aid kernel development. Some of the functions make no sense from within the kernel.
Files | |
file | __cxa_atexit.cpp |
Stub implementation of the C++ application exit function dispatcher. | |
file | abort.cpp |
Stub C standard library abort() function. | |
file | close.cpp |
Stub C standard library close() function. | |
file | fstat.cpp |
Stub C standard library fstat() function. | |
file | isatty.cpp |
Stub implementation of the POSIX isatty() function. | |
file | lseek.cpp |
Stub lseek() implementation for the C standard library. | |
file | open.cpp |
Stub implementation of the C standard library function open(). | |
file | read.cpp |
Stub implementation of the C standard library function read(). | |
file | sbrk.cpp |
Stubbed out sbrk() function for the C standard library. | |
Functions | |
int | __cxa_atexit (void(*)(void *), void *, void *) |
Minimal implementation of __cxa_atexit() for the kernel. | |
void | abort () |
Causes abnormal program termination. | |
int | close (int) |
Minimal implementation of close() for the kernel. | |
int | fstat (int, struct stat *st) |
Minimal implementation of fstat for kernel. | |
int | isatty (int) |
Indicates if a file descriptor is associated with a terminal device. | |
int | lseek (int, int, int) |
Minimal implementation of lseek() for the kernel. | |
int | open (const char *, int, int) |
Minimal implementation of open() for kernel. | |
int | read (int, char *, int) |
Minimal implementation of read() for kernel. | |
void * | sbrk (int increment) |
Copyright (C) 2004 Bregmasoft. |
|
Minimal implementation of __cxa_atexit() for the kernel. Since the kernel handles its exit dispatch in a different way, this function does nothing, but it;s easier to just supply an empty stub than to figure out how to satisfy the toolchain's desire for this function in a more appropriate way. All of the arguments passed to this function are ignored.
|
|
Causes abnormal program termination. The abort() function causes abnormal program termniation. Since this is the kernel we're talking about here, abnormal program termination mean to write a message out to the kernel error logger and halt operations. This library call is required by the ISO C and C++ standard library implementations. It currently does nothing, but the symbol needs to be defined and the best way to do that is to provide an empty function. Note that the C++ standard (AFAIK) does not add exception specifications to the C-standard abort() call, but some of the header files I'm working with do, so I'm adding it in here.
Here is the call graph for this function: |
|
Minimal implementation of close() for the kernel.
|
|
Minimal implementation of fstat for kernel.
|
|
Indicates if a file descriptor is associated with a terminal device. This function indicates if a file descriptor is associated with a terminal device. This function is not a part of the ISO/IEC 9899:1990 (C) standard library but is a part of the IEEE Std 1003.1-2001 (POSIX) library, and is declared in the header <unistd.h>. It is only provided here because newlib will not link without the symbol being defined.
|
|
Minimal implementation of lseek() for the kernel.
|
|
Minimal implementation of open() for kernel.
|
|
Minimal implementation of read() for kernel.
|
|
Copyright (C) 2004 Bregmasoft.
This function increments or decrements the break, or high memory address, by
Here is the call graph for this function: |