![]() |
MOS Source Code
|
Some standard library functions. More...
Macros | |
#define | MIN(a, b) |
#define | MAX(a, b) |
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 void | exit (int status) __attribute__((noreturn)) |
MOSAPI int | atexit (void(*func)(void)) |
MOSAPI tid_t | start_thread (const char *name, thread_entry_t entry, void *arg) |
MOSAPI void | abort (void) __attribute__((noreturn)) |
Some standard library functions.
#define MIN | ( | a, | |
b ) |
Definition at line 36 of file mos_stdlib.hpp.
#define MAX | ( | a, | |
b ) |
Definition at line 37 of file mos_stdlib.hpp.
MOSAPI unsigned char tolower | ( | unsigned char | c | ) |
Definition at line 13 of file mos_stdlib.cpp.
Referenced by strncasecmp().
Definition at line 25 of file mos_stdlib.cpp.
MOSAPI long labs | ( | long | x | ) |
Definition at line 30 of file mos_stdlib.cpp.
Definition at line 35 of file mos_stdlib.cpp.
Definition at line 40 of file mos_stdlib.cpp.
Referenced by encode_dictionary(), encode_tree(), and main().
Referenced by main(), and overlay_fixup_phandle().
Definition at line 72 of file mos_stdlib.cpp.
Referenced by strtoul().
Definition at line 77 of file mos_stdlib.cpp.
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 107 of file mos_stdlib.cpp.
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 ) |
Definition at line 28 of file cpp_support.cpp.