various general purpose/utility functions. More...
#include <sys/types.h>#include <pwd.h>#include <grp.h>#include <stdlib.h>#include <time.h>#include <sys/utsname.h>#include <libgen.h>#include "ut.h"#include "mem/mem.h"#include "globals.h"
Go to the source code of this file.
Module: core
Definition in file ut.c.
Converts relative pathnames to absolute pathnames.
| base | - base file, used to extract the absolute path prefix. Might be NULL, in which case the path of the ser.cfg is used. | |
| file | - file path to be transformed. If it's already absolute (starts with '/') is left alone. If not the result will be `dirname base`/file. |
Definition at line 218 of file ut.c.
References _str::len, _str::s, and STR_FMT.
Referenced by cfg_parser_init(), fix_initial_pathname(), fix_rel_pathname(), and fix_shm_pathname().

1.7.1