|
|
| CT_OS_API os_error_t | os_thread_init (OUT_NOTNULL os_thread_t *thread, const char *name, os_thread_fn_t fn, void *arg) |
| |
| CT_OS_API os_error_t | os_thread_join (os_thread_t *thread, OUT_NOTNULL os_status_t *status) |
| |
| CT_OS_API const char * | os_thread_name (const os_thread_t *thread) |
| |
| CT_OS_API bool | os_thread_cmpid (const os_thread_t *thread, os_thread_id_t id) |
| |
| typedef os_exitcode_t(* | os_thread_fn_t) (void *arg) |
| |
| CT_OS_API os_error_t | os_library_open (const char *path, OUT_NOTNULL os_library_t *library) |
| | open a shared library from disk More...
|
| |
| CT_OS_API os_error_t | os_library_close (STA_RELEASE os_library_t *library) |
| | close a shared library More...
|
| |
| CT_NODISCARD CT_OS_API os_error_t | os_library_symbol (os_library_t *library, OUT_NOTNULL void **symbol, const char *name) |
| | get a symbol from a shared library More...
|
| |
| CT_NODISCARD CT_OS_API const char * | os_library_name (const os_library_t *library) |
| | get the name of a shared library More...
|
| |
| CT_NODISCARD OUT_NOTNULL os_inode_t * | dir |
| |
| CT_OS_API os_error_t | os_file_copy (const char *dst, const char *src) |
| | copy a file from one location to another More...
|
| |
| CT_OS_API os_error_t | os_file_exists (const char *path) |
| | check if a file exists More...
|
| |
| CT_OS_API os_error_t | os_file_create (const char *path) |
| | create a file More...
|
| |
| CT_OS_API os_error_t | os_file_delete (const char *path) |
| | delete a file More...
|
| |
| CT_OS_API os_error_t | os_dir_create (const char *path) |
| | check if a directory exists More...
|
| |
| CT_OS_API os_error_t | os_dir_delete (const char *path) |
| | delete a directory More...
|
| |
| CT_OS_API bool | os_dir_exists (const char *path) |
| | check if a directory exists More...
|
| |
| CT_NODISCARD CT_OS_API os_dirent_t | os_dirent_type (const char *path) |
| | get the type of a paths inode entry More...
|
| |
| CT_OS_API os_error_t | os_iter_begin (const char *path, OUT_NOTNULL os_iter_t *iter) |
| | directory iteration More...
|
| |
| CT_OS_API os_error_t | os_iter_end (STA_RELEASE os_iter_t *iter) |
| | close a directory iterator More...
|
| |
| CT_NODISCARD | STA_SUCCESS (return==true) CT_OS_API bool os_iter_next(os_iter_t *iter |
| | get the next directory entry More...
|
| |
| CT_OS_API os_error_t | os_iter_error (const os_iter_t *iter) |
| | get the error state of a directory iterator More...
|
| |
| CT_OS_API os_error_t | os_file_open (const char *path, os_access_t access, OUT_NOTNULL os_file_t *file) |
| | file api More...
|
| |
| CT_OS_API os_error_t | os_tmpfile_open (OUT_NOTNULL os_file_t *file) |
| | create a temporary file More...
|
| |
| CT_OS_API os_error_t | os_file_close (STA_RELEASE os_file_t *file) |
| | close a file More...
|
| |
| CT_OS_API os_error_t | os_file_read (os_file_t *file, STA_WRITES(size) void *buffer, size_t size, OUT_NOTNULL size_t *actual) |
| | read from a file More...
|
| |
| CT_OS_API os_error_t | os_file_write (os_file_t *file, STA_READS(size) const void *buffer, size_t size, OUT_NOTNULL size_t *actual) |
| | write to a file More...
|
| |
| CT_OS_API os_error_t | os_file_size (os_file_t *file, OUT_NOTNULL size_t *actual) |
| | get the size of a file More...
|
| |
| CT_OS_API os_error_t | os_file_seek (os_file_t *file, size_t offset, OUT_NOTNULL size_t *actual) |
| | seek to a position in a file More...
|
| |
| CT_OS_API os_error_t | os_file_tell (os_file_t *file, OUT_NOTNULL size_t *actual) |
| | get the current position in a file More...
|
| |
| CT_OS_API os_error_t | os_file_resize (os_file_t *file, size_t size) |
| | truncate/expand a file to a specific size More...
|
| |
| CT_OS_API os_error_t | os_file_map (os_file_t *file, os_protect_t protect, size_t size, OUT_NOTNULL os_mapping_t *mapping) |
| | map a file into memory More...
|
| |
| CT_OS_API os_error_t | os_unmap (INOUT_NOTNULL os_mapping_t *mapping) |
| | unmap a file from memory More...
|
| |
| CT_NODISCARD CT_OS_API void * | os_mapping_data (os_mapping_t *mapping) |
| | get the data of a file mapping More...
|
| |
| CT_NODISCARD CT_OS_API size_t | os_mapping_size (const os_mapping_t *mapping) |
| | get the size of a file mapping More...
|
| |
| CT_NODISCARD CT_PUREFN CT_OS_API 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...
|
| |
| CT_NODISCARD CT_PUREFN CT_OS_API const char * | os_file_name (const os_file_t *file) |
| | get the name of a file More...
|
| |