|
ESDM
Middleware for Earth System Data
|
Debug adds functionality for logging and inspection of ESDM types during development. More...
#include <errno.h>#include <esdm-datatypes.h>#include <esdm-internal.h>#include <fcntl.h>#include <glib.h>#include <limits.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/stat.h>#include <sys/types.h>#include <unistd.h>
Functions | |
| bool | ea_is_valid_dataset_name (char const *str) |
| int | mkdir_recursive (const char *path) |
| int | posix_recursive_remove (const char *path) |
| int | ea_read_file (char *filepath, char **buf) |
| int | ea_write_check (int fd, char *buf, size_t len) |
| int | ea_read_check (int fd, char *buf, size_t len) |
| void | print_stat (struct stat sb) |
| json_t * | load_json (const char *str) |
| int | ea_compute_hash_str (const char *str) |
| _Static_assert (sizeof(kCharset) - 1==1<< kCharsetBits, "wrong number of characters in kCharset") | |
| void | ea_generate_id (char *str, size_t length) |
| char * | ea_make_id (size_t length) |
| void * | ea_checked_malloc (size_t size) |
| void * | ea_checked_calloc (size_t nmemb, size_t size) |
| void * | ea_checked_realloc (void *ptr, size_t size) |
| char * | ea_checked_strdup (const char *string) |
| char * | ea_checked_strndup (const char *string, size_t n) |
| void * | ea_memdup (void *data, size_t size) |
| void | ea_start_timer (timer *t1) |
| double | ea_timer_subtract (timer number, timer subtract) |
| double | ea_stop_timer (timer t1) |
| defineConvertersForSourceType (int8_t) | |
Debug adds functionality for logging and inspection of ESDM types during development.
| #define defineConverter | ( | destType, | |
| sourceType | |||
| ) |
| #define defineConvertersForSourceType | ( | sourceType | ) |
| #define selectConvertersForSource | ( | sourceType, | |
| esdmSourceType | |||
| ) |
| char* ea_checked_strdup | ( | const char * | string | ) |
Wrapper for strdup() that checks the result for a null-pointer.
| char* ea_checked_strndup | ( | const char * | string, |
| size_t | n | ||
| ) |
Wrapper for strndup() that checks the result for a null-pointer.
| void* ea_memdup | ( | void * | data, |
| size_t | size | ||
| ) |
Create a copy of an arbitrary memory buffer. This is essentially a strdup() for non-string data.
| [in] | data | pointer to the bytes to copy |
| [in] | size | count of bytes to copy |
| int ea_read_check | ( | int | fd, |
| char * | buf, | ||
| size_t | len | ||
| ) |
Read while ensuring and retrying until len is read or error occured.
| int ea_write_check | ( | int | fd, |
| char * | buf, | ||
| size_t | len | ||
| ) |
Write while ensuring and retrying until len is written or error occured.
| void print_stat | ( | struct stat | sb | ) |
Print a detailed summary for the stat system call.