|
luasandbox
1.4.0
Generic Lua sandbox for dynamic data analysis
|
Shared types and structures. More...


Go to the source code of this file.
Macros | |
| #define | LSB_UTIL_EXPORT |
Functions | |
| LSB_UTIL_EXPORT size_t | lsb_lp2 (unsigned long long x) |
| Hacker's Delight - Henry S. More... | |
| LSB_UTIL_EXPORT char * | lsb_read_file (const char *fn) |
| Read a file into a string. More... | |
| LSB_UTIL_EXPORT unsigned long long | lsb_get_time () |
| Retrieves the highest resolution timer available converted to nanoseconds. More... | |
| LSB_UTIL_EXPORT long long | lsb_get_timestamp () |
| Retrieves the highest resolution time since Jan 1, 1970 converted to nanoseconds. More... | |
| LSB_UTIL_EXPORT bool | lsb_set_tz (const char *tz) |
| Sets the timezone environment variable for the time conversion functions. More... | |
Variables | |
| LSB_UTIL_EXPORT lsb_err_id | LSB_ERR_UTIL_NULL |
| LSB_UTIL_EXPORT lsb_err_id | LSB_ERR_UTIL_OOM |
| LSB_UTIL_EXPORT lsb_err_id | LSB_ERR_UTIL_FULL |
| LSB_UTIL_EXPORT lsb_err_id | LSB_ERR_UTIL_PRANGE |
Shared types and structures.
Definition in file util.h.
| LSB_UTIL_EXPORT unsigned long long lsb_get_time | ( | ) |
Retrieves the highest resolution timer available converted to nanoseconds.
| LSB_UTIL_EXPORT long long lsb_get_timestamp | ( | ) |
Retrieves the highest resolution time since Jan 1, 1970 converted to nanoseconds.
| LSB_UTIL_EXPORT size_t lsb_lp2 | ( | unsigned long long | x | ) |
Hacker's Delight - Henry S.
Warren, Jr. page 48
| x |
| LSB_UTIL_EXPORT char* lsb_read_file | ( | const char * | fn | ) |
Read a file into a string.
| fn | Filename to read |
| LSB_UTIL_EXPORT bool lsb_set_tz | ( | const char * | tz | ) |
Sets the timezone environment variable for the time conversion functions.
| tz | Timezone string (if NULL uses UTC) |
| LSB_UTIL_EXPORT lsb_err_id LSB_ERR_UTIL_FULL |
| LSB_UTIL_EXPORT lsb_err_id LSB_ERR_UTIL_NULL |
| LSB_UTIL_EXPORT lsb_err_id LSB_ERR_UTIL_OOM |
| LSB_UTIL_EXPORT lsb_err_id LSB_ERR_UTIL_PRANGE |
1.8.11