X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.h;h=e92ca7006542e2e8cd5276e27eac197f29e7c681;hb=6e92aae66f50ea02a78aecc72bead32bcd3dbac4;hp=c56942f56a770bdef81af1fd5d03b8cbb05b0e14;hpb=a2e78ff0442a6a4c290577ff2ecf3c4307c3e9f5;p=lttng-tools.git diff --git a/src/common/utils.h b/src/common/utils.h index c56942f56..e92ca7006 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -21,12 +21,14 @@ #include #include #include +#include #define KIBI_LOG2 10 #define MEBI_LOG2 20 #define GIBI_LOG2 30 -char *utils_resolve_relative(const char *path); +char *utils_partial_realpath(const char *path, char *resolved_path, + size_t size); char *utils_expand_path(const char *path); int utils_create_pipe(int *dst); int utils_create_pipe_cloexec(int *dst); @@ -46,5 +48,7 @@ int utils_get_count_order_u32(uint32_t x); char *utils_get_home_dir(void); size_t utils_get_current_time_str(const char *format, char *dst, size_t len); gid_t utils_get_group_id(const char *name); +char *utils_generate_optstring(const struct option *long_options, + size_t opt_count); #endif /* _COMMON_UTILS_H */