MOS Source Code
|
Some standard library functions. More...
Macros | |
#define | MIN(a, b) |
#define | MAX(a, b) |
#define | pow2(x) |
Functions | |
MOSAPI unsigned char | tolower (unsigned char c) |
MOSAPI s32 | abs (s32 x) |
MOSAPI long | labs (long x) |
MOSAPI s64 | llabs (s64 x) |
MOSAPI s32 | atoi (const char *nptr) |
MOSAPI unsigned long | strtoul (const char *nptr, char **endptr, int base) |
MOSAPI s64 | strtoll (const char *str, char **endptr, int base) |
MOSAPI s64 | strntoll (const char *str, char **endptr, int base, size_t n) |
MOSAPI void | format_size (char *buf, size_t buf_size, u64 size) |
MOSAPI char * | string_trim (char *in) |
MOSAPI pid_t | spawn (const char *path, const char *const argv[]) |
MOSAPI void | exit (int status) |
MOSAPI int | atexit (void(*func)(void)) |
MOSAPI tid_t | start_thread (const char *name, thread_entry_t entry, void *arg) |
MOSAPI void | abort (void) |
Some standard library functions.
#define MIN | ( | a, | |
b ) |
Definition at line 30 of file mos_stdlib.h.
Referenced by acpi_sysfs_mmap(), buddy_init(), cpio_fill_cache(), cpio_i_readlink(), pml1_traverse(), pml2_destroy_range(), pml2_traverse(), printf_cs(), ring_buffer_pos_pop_back(), ring_buffer_pos_pop_front(), ring_buffer_pos_push_back(), ring_buffer_pos_push_front(), slab_realloc(), sysfs_fops_read(), tmpfs_i_readlink(), try_merge(), userfs_inode_cache_fill_cache(), vfs_generic_read(), vfs_read_pagecache(), and vfs_write_pagecache().
#define MAX | ( | a, | |
b ) |
Definition at line 31 of file mos_stdlib.h.
Referenced by add_to_memmap(), printf_cs(), printf_diouxX(), vfs_io_ops_seek(), and x86_setup_direct_map().
#define pow2 | ( | x | ) |
Definition at line 32 of file mos_stdlib.h.
Referenced by break_the_order(), break_this_pfn(), buddy_alloc_n_exact(), dump_list(), extract_exact_range(), get_buddy_pfn(), populate_freelist(), and try_merge().
MOSAPI unsigned char tolower | ( | unsigned char | c | ) |
Definition at line 9 of file mos_stdlib.c.
Referenced by strncasecmp().
Definition at line 21 of file mos_stdlib.c.
MOSAPI long labs | ( | long | x | ) |
Definition at line 26 of file mos_stdlib.c.
Definition at line 31 of file mos_stdlib.c.
Definition at line 36 of file mos_stdlib.c.
Referenced by encode_dictionary(), encode_tree(), and main().
Referenced by main(), and overlay_fixup_phandle().
Definition at line 68 of file mos_stdlib.c.
Referenced by strtoul().
Definition at line 73 of file mos_stdlib.c.
Referenced by cpio_i_iterate_dir(), cpio_inode_trycreate(), cpio_read_metadata(), mmstat_sysfs_phyframe_stat_store(), mmstat_sysfs_store_pid(), and strtoll().
Definition at line 103 of file mos_stdlib.c.
Referenced by mmstat_sysfs_stat().
MOSAPI char * string_trim | ( | char * | in | ) |
MOSAPI tid_t start_thread | ( | const char * | name, |
thread_entry_t | entry, | ||
void * | arg ) |