#include "sys.h"
#include "sysnet.h"
Go to the source code of this file.
Data Structures | |
| struct | aw_cache_allocator_t |
Functions | |
| int32_t | aw_cache_alloc_clear (aw_cache_allocator_t *allocator) |
| Clear, clean up allocator. Assumes been init'd. | |
| int32_t | aw_cache_alloc_free (aw_cache_allocator_t *allocator, void *object) |
| free() wrapper for use with cache allocator | |
| int32_t | aw_cache_alloc_init (aw_cache_allocator_t *allocator, size_t object_size, u_int32_t max_cache_size) |
| malloc() wrapper, that caches frees in a list for quick reuse | |
| void * | aw_cache_alloc_malloc (aw_cache_allocator_t *allocator) |
| Retuns object , from cache if possible. | |
| void | aw_close_all_fds (void) |
| Close all fds except 0,1,2. Used between a fork() and exec() to avoid child exits() from flushing buffered io to parent fds. | |
| int32_t | aw_close_tcpsocket (int32_t s) |
| standard tcp shutdown procedure | |
| byte_t * | aw_find_in_path (const byte_t *filename, const byte_t *pathvar) |
Return malloc'd full path of filename found in pathvar (e.g., PATH, LD_LIBRARY_PATH), else NULL
| |
| void | aw_free (void *p) |
| free() wrapper | |
| int32_t | aw_get_major_version (void) |
| int32_t | aw_get_minor_version (void) |
| int32_t | aw_get_patchlevel (void) |
| const byte_t * | aw_get_version_string (void) |
| in_addr_t | aw_getifip (const byte_t *ifname) |
| Get first ip address associated with interface. | |
| off_t | aw_lseek_resume (int fildes, off_t offset, int whence) |
| Signal insensitve lseek(). | |
| void * | aw_malloc (size_t size) |
| malloc() wrapper, does some sleep/retry on failure | |
| int32_t | aw_nanosleep (const struct timespec *sleep) |
| Signal insensitve nanosleep(). | |
| ssize_t | aw_read_resume (int fd, void *buf, size_t count) |
| Signal insensitve read(). | |
| byte_t * | aw_strcatdup (const byte_t *s1, const byte_t *s2) |
| Return copy of 2 concatentated strings, NULL on failure. | |
| byte_t * | aw_strstrcase (const byte_t *haystack, const byte_t *needle) |
| Case insensitive strstr. | |
| byte_t * | aw_strtrim (byte_t *s) |
| Remove (in place) whitespace in front/behind text. | |
| ssize_t | aw_write_resume (int fd, const void *buf, size_t count) |
| Signal insensitve write(). | |
| void * | aw_zalloc (size_t size) |
| aw_malloc() wrapper, zeros the memory | |
|
|
Clear, clean up allocator. Assumes been init'd. aw_cache_alloc_clear
|
|
||||||||||||
|
free() wrapper for use with cache allocator aw_cache_alloc_free
|
|
||||||||||||||||
|
malloc() wrapper, that caches frees in a list for quick reuse aw_cache_alloc_init
|
|
|
Retuns object , from cache if possible. aw_cache_alloc_malloc
|
|
|
Close all fds except 0,1,2. Used between a fork() and exec() to avoid child exits() from flushing buffered io to parent fds. aw_close_all_fds |
|
|
standard tcp shutdown procedure aw_close_tcpsocket
|
|
||||||||||||
|
Return malloc'd full path of filename found in pathvar (e.g., PATH, LD_LIBRARY_PATH), else NULL
aw_find_in_path |
|
|
free() wrapper aw_free
|
|
|
aw_get_major_version
|
|
|
aw_get_minor_version
|
|
|
aw_get_patchlevel
|
|
|
aw_get_version_string
|
|
|
Get first ip address associated with interface. aw_getifip
|
|
||||||||||||||||
|
Signal insensitve lseek(). aw_lseek_resume
|
|
|
malloc() wrapper, does some sleep/retry on failure aw_malloc
|
|
|
Signal insensitve nanosleep(). aw_nanosleep
|
|
||||||||||||||||
|
Signal insensitve read(). aw_read_resume
|
|
||||||||||||
|
Return copy of 2 concatentated strings, NULL on failure. aw_strcatdup
|
|
||||||||||||
|
Case insensitive strstr. aw_strstrcase
|
|
|
Remove (in place) whitespace in front/behind text. aw_strtrim
|
|
||||||||||||||||
|
Signal insensitve write(). aw_write_resume
|
|
|
aw_malloc() wrapper, zeros the memory aw_zalloc
|