41 snprintf(child,
sizeof(child),
"%s/child", parent);
43 if (mkdir(parent, 0755) < 0) {
44 perror(
"mkdir parent");
54 if (rmdir(child) < 0) {
55 perror(
"rmdir child");
60 if (rmdir(parent) < 0) {
61 perror(
"rmdir parent");
uint32_t av_get_random_seed(void)
Get a seed to use in conjunction with random functions.
miscellaneous OS support macros and functions.