|
PatchworkOS
|
Go to the source code of this file.
Data Structures | |
| struct | div_t |
| struct | ldiv_t |
| struct | lldiv_t |
Macros | |
| #define | ltoa(number, str, base) lltoa(number, str, base) |
| #define | itoa(number, str, base) lltoa(number, str, base) |
| #define | ultoa(number, str, base) lltoa(number, str, base) |
| #define | uitoa(number, str, base) lltoa(number, str, base) |
| #define | strtol(nptr, endptr, base) ((long int)strtoll(nptr, endptr, base)) |
| #define | atol(nptr) ((long)atoll(nptr)) |
| #define | atoi(nptr) ((int)atoll(nptr)) |
| #define | RAND_MAX 32767 |
| #define | EXIT_SUCCESS 0 |
| #define | EXIT_FAILURE -1 |
Functions | |
| _PUBLIC char * | lltoa (long long number, char *str, int base) |
| _PUBLIC char * | ulltoa (unsigned long long number, char *str, int base) |
| _PUBLIC double | atof (const char *nptr) |
| _PUBLIC double | strtod (const char *_RESTRICT nptr, char **_RESTRICT endptr) |
| _PUBLIC float | strtof (const char *_RESTRICT nptr, char **_RESTRICT endptr) |
| _PUBLIC long double | strtold (const char *_RESTRICT nptr, char **_RESTRICT endptr) |
| _PUBLIC long long int | strtoll (const char *_RESTRICT nptr, char **_RESTRICT endptr, int base) |
| _PUBLIC unsigned long int | strtoul (const char *_RESTRICT nptr, char **_RESTRICT endptr, int base) |
| _PUBLIC unsigned long long int | strtoull (const char *_RESTRICT nptr, char **_RESTRICT endptr, int base) |
| _PUBLIC long long int | atoll (const char *nptr) |
| _PUBLIC int | rand (void) |
| _PUBLIC void | srand (unsigned int seed) |
| _PUBLIC void * | malloc (size_t size) |
| _PUBLIC void * | calloc (size_t nmemb, size_t size) |
| _PUBLIC void | free (void *ptr) |
| _PUBLIC void * | realloc (void *ptr, size_t size) |
| _PUBLIC _NORETURN void | abort (void) |
| _PUBLIC int | at_quick_exit (void(*func)(void)) |
| _PUBLIC int | atexit (void(*func)(void)) |
| _PUBLIC _NORETURN void | exit (int status) |
| _PUBLIC _NORETURN void | quick_exit (int status) |
| _PUBLIC _NORETURN void | _Exit (int status) |
| _PUBLIC char * | getenv (const char *name) |
| _PUBLIC int | system (const char *string) |
| _PUBLIC void * | bsearch (const void *key, const void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)) |
| _PUBLIC void | qsort (void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)) |
| _PUBLIC int | abs (int j) |
| _PUBLIC long int | labs (long int j) |
| _PUBLIC long long int | llabs (long long int j) |
| _PUBLIC div_t | div (int numer, int denom) |
| _PUBLIC ldiv_t | ldiv (long int numer, long int denom) |
| _PUBLIC lldiv_t | lldiv (long long int numer, long long int denom) |
| #define strtol | ( | nptr, | |
| endptr, | |||
| base | |||
| ) | ((long int)strtoll(nptr, endptr, base)) |
| #define uitoa | ( | number, | |
| str, | |||
| base | |||
| ) | lltoa(number, str, base) |
| #define ultoa | ( | number, | |
| str, | |||
| base | |||
| ) | lltoa(number, str, base) |
Definition at line 7 of file abort.c.
References exit(), EXIT_FAILURE, NULL, and panic().
Referenced by __stack_chk_fail(), _assert_89(), _assert_99(), _files_init(), _heap_init(), _std_stream_init(), abort_handler_s(), backbuffer_init(), dwm_detach(), dwm_init(), dwm_poll(), dwm_poll_ctx_update(), free(), frontbuffer_init(), realloc(), screen_swap(), screen_transfer_frontbuffer(), start_services(), thrd_exit(), and window_free().
| _PUBLIC int at_quick_exit | ( | void(*)(void) | func | ) |
| _PUBLIC int atexit | ( | void(*)(void) | func | ) |
| _PUBLIC long long int atoll | ( | const char * | nptr | ) |
| _PUBLIC void * bsearch | ( | const void * | key, |
| const void * | base, | ||
| size_t | nmemb, | ||
| size_t | size, | ||
| int(*)(const void *, const void *) | compar | ||
| ) |
Definition at line 6 of file calloc.c.
References _heap_acquire(), _heap_alloc(), _heap_release(), _HEAP_ZEROED, _heap_header_t::data, _heap_header_t::flags, memset(), and NULL.
Referenced by _file_new(), aml_object_new(), kbd_new(), local_socket_init(), main(), map_resize(), mouse_new(), pipeline_execute(), and socket_new().
Definition at line 3 of file div.c.
References div_t::quot, and div_t::rem.
Referenced by _print(), _print_hexa(), and _print_integer().
Definition at line 7 of file exit.c.
References _exit_stack_dispatch(), _files_close(), and _syscall_process_exit().
Referenced by abort().
| _PUBLIC void free | ( | void * | ptr | ) |
Definition at line 11 of file free.c.
References _heap_acquire(), _HEAP_ALLOCATED, _heap_free(), _HEAP_HEADER_MAGIC, _heap_release(), abort(), CONTAINER_OF, data, _heap_header_t::flags, _heap_header_t::magic, NULL, panic(), and printf().
Referenced by _file_deinit(), _file_free(), _file_init(), _thread_entry(), _thread_free(), _thread_new(), acpi_tables_push(), aml_convert_to_decimal_string(), aml_exception_register(), aml_exception_unregister(), aml_mutex_stack_pop(), aml_object_clear(), aml_object_free(), aml_package_set(), aml_patch_up_remove_unresolved(), aml_string_resize(), argv_deinit(), button_procedure(), client_free(), config_array_free(), config_close(), config_open(), dentry_free(), display_free(), display_new(), display_poll(), dwm_deinit(), element_free(), element_new_raw(), element_set_text(), fb_dir_cleanup(), fb_new(), file_free(), font_free(), font_new(), futex_ctx_deinit(), history_deinit(), history_push(), image_free(), inode_free(), kbd_dir_cleanup(), kbd_new(), key_claim(), key_share(), key_timer_handler(), local_conn_free(), local_conn_new(), local_listen_free(), local_listen_new(), local_socket_deinit(), main(), map_deinit(), map_resize(), mount_free(), mouse_dir_cleanup(), mouse_new(), pipe_close(), pipe_open(), pipe_open2(), pipeline_deinit(), pipeline_execute(), pipeline_init(), print_dir(), procedure(), process_free(), process_new(), ps2_mouse_init(), ramfs_dentry_deinit(), ramfs_inode_cleanup(), ramfs_truncate(), realloc(), ref_init(), screen_deinit(), shmem_object_allocate_pages(), shmem_object_free(), socket_family_register(), socket_family_unregister(), socket_free(), socket_new(), space_alloc_callback(), space_deinit(), space_pin_depth_dec(), space_pin_depth_inc(), start_menu_load_entries(), startmenu_procedure(), statistics_cpu_read(), statistics_mem_read(), superblock_free(), surface_free(), surface_new(), SYSCALL_DEFINE(), taskbar_entry_add(), taskbar_entry_remove(), taskbar_procedure(), terminal_procedure(), thrd_create(), thread_free(), thread_new(), wait_block_setup(), wait_remove_wait_entries(), wait_unblock(), window_deco_free(), window_deco_init(), window_free(), and window_new().
| _PUBLIC char * getenv | ( | const char * | name | ) |
| _PUBLIC char * lltoa | ( | long long | number, |
| char * | str, | ||
| int | base | ||
| ) |
Definition at line 5 of file malloc.c.
References _heap_acquire(), _heap_alloc(), _heap_release(), _heap_header_t::data, _heap_header_t::flags, and NULL.
Referenced by _file_init(), _thread_new(), acpi_tables_push(), aml_buffer_set_empty(), aml_convert_to_decimal_string(), aml_exception_register(), aml_mutex_stack_push(), aml_package_set(), aml_patch_up_add_unresolved(), aml_string_resize(), aml_string_set_empty(), argsplit(), argv_init(), backbuffer_init(), button_procedure(), client_new(), config_get_array(), config_open(), dentry_new(), display_new(), display_poll(), element_new_raw(), fb_new(), file_new(), font_new(), futex_ctx_get(), history_push(), image_new_blank(), inode_new(), key_share(), local_conn_new(), local_listen_new(), mount_new(), panic_symbols_init(), pipe_open(), pipe_open2(), pipeline_execute(), pipeline_init(), print_dir(), procedure(), process_new(), ps2_kbd_init(), ps2_mouse_init(), ramfs_inode_new(), ramfs_mount(), realloc(), shmem_object_allocate_pages(), shmem_object_new(), socket_family_register(), space_alloc_callback(), space_pin_depth_inc(), startmenu_procedure(), statistics_cpu_read(), statistics_mem_read(), strdup(), superblock_new(), surface_new(), taskbar_entry_add(), taskbar_procedure(), terminal_procedure(), thrd_create(), thread_copy_from_user_terminated(), thread_new(), wait_block_setup(), window_deco_init(), and window_new().
| _PUBLIC void qsort | ( | void * | base, |
| size_t | nmemb, | ||
| size_t | size, | ||
| int(*)(const void *, const void *) | compar | ||
| ) |
Definition at line 47 of file qsort.c.
References memswp(), POP, PREPARE_STACK, PUSH, stack, and T.
Referenced by draw_polygon(), and syscall_table_init().
| _PUBLIC int rand | ( | void | ) |
Definition at line 5 of file rand.c.
References random_gen().
Referenced by current_piece_choose_new(), and draw_gradient().
Definition at line 13 of file realloc.c.
References _heap_acquire(), _HEAP_ALIGNMENT, _HEAP_ALLOCATED, _heap_block_split(), _HEAP_HEADER_MAGIC, _HEAP_LARGE_ALLOC_THRESHOLD, _HEAP_MAPPED, _heap_release(), _heap_remove_from_free_list(), _heapList, abort(), assert, CONTAINER_OF, CONTAINER_OF_SAFE, _heap_header_t::data, data, _heap_header_t::flags, free(), list_remove(), _heap_header_t::listEntry, _heap_header_t::magic, malloc(), memcpy(), MIN, list_entry_t::next, next, NULL, panic(), printf(), remainder(), ROUND_UP, and _heap_header_t::size.
Referenced by acpi_tables_push(), dwm_poll_ctx_update(), print_dir(), and ramfs_write().
| _PUBLIC void srand | ( | unsigned int | seed | ) |
Referenced by procedure().
Referenced by config_get_int().
| _PUBLIC unsigned long long int strtoull | ( | const char *_RESTRICT | nptr, |
| char **_RESTRICT | endptr, | ||
| int | base | ||
| ) |
| int system | ( | const char * | string | ) |
Definition at line 6 of file system.c.
References atoi, spawn_fd_t::child, close(), ERR, MAX_PATH, NULL, openf(), read(), spawn(), SPAWN_FD_END, STDERR_FILENO, STDIN_FILENO, and STDOUT_FILENO.
Referenced by execute_commands().
| _PUBLIC char * ulltoa | ( | unsigned long long | number, |
| char * | str, | ||
| int | base | ||
| ) |