|
void | os_init (void) |
| initialize the os api More...
|
|
CT_NORETURN | os_exit (os_exitcode_t code) |
| exit the program More...
|
|
CT_NORETURN | os_thread_exit (os_status_t status) |
| exit the current thread of execution More...
|
|
CT_NORETURN | os_abort (void) |
| abort the program More...
|
|
STA_DECL size_t | os_error_get_string (os_error_t error, char *buffer, size_t size) |
|
STA_DECL char * | os_error_string (os_error_t error, arena_t *arena) |
| convert an os error code to a string More...
|
|
STA_DECL char * | os_cwd_string (arena_t *arena) |
| get the current working directory More...
|
|
STA_DECL os_error_t | os_getcwd (text_t *text, arena_t *arena) |
|
STA_DECL os_error_t | os_file_map (os_file_t *file, os_protect_t protect, size_t size, os_mapping_t *mapping) |
|
STA_DECL os_error_t | os_unmap (os_mapping_t *mapping) |
|
STA_DECL size_t | os_mapping_size (const os_mapping_t *mapping) |
| get the size of a file mapping More...
|
|
STA_DECL void * | os_mapping_data (os_mapping_t *mapping) |
| get the data of a file mapping More...
|
|
STA_DECL bool | os_mapping_active (const os_mapping_t *mapping) |
| does the mapping object contain a valid mapping checks if the mapping data exists, not for the validity of the mapping More...
|
|
STA_DECL os_error_t | os_library_open (const char *path, os_library_t *library) |
|
STA_DECL os_error_t | os_library_close (os_library_t *library) |
|
STA_DECL os_error_t | os_library_symbol (os_library_t *library, void **symbol, const char *name) |
|
STA_DECL const char * | os_library_name (const os_library_t *library) |
| get the name of a shared library More...
|
|
STA_DECL os_error_t | os_file_open (const char *path, os_access_t access, os_file_t *file) |
|
STA_DECL os_error_t | os_file_close (os_file_t *file) |
|
STA_DECL const char * | os_file_name (const os_file_t *file) |
| get the name of a file More...
|
|
STA_DECL os_error_t | os_file_create (const char *path) |
| create a file More...
|
|
STA_DECL os_error_t | os_file_copy (const char *dst, const char *src) |
| copy a file from one location to another More...
|
|
STA_DECL bool | os_dir_exists (const char *path) |
| check if a directory exists More...
|
|
STA_DECL os_error_t | os_iter_begin (const char *path, os_iter_t *iter) |
|
STA_DECL os_error_t | os_iter_end (os_iter_t *iter) |
|
STA_DECL bool | os_iter_next (os_iter_t *iter, os_inode_t *dir) |
|
STA_DECL os_error_t | os_iter_error (const os_iter_t *iter) |
| get the error state of a directory iterator More...
|
|
STA_DECL os_dirent_t | os_inode_type (const os_inode_t *node) |
| get the type of an inode More...
|
|
STA_DECL const char * | os_inode_name (const os_inode_t *node) |
| get the name of an inode More...
|
|
STA_DECL const char * | os_thread_name (const os_thread_t *thread) |
|
STA_DECL bool | os_thread_cmpid (const os_thread_t *thread, os_thread_id_t id) |
|