Relicence all source and header files included in LGPL code
[lttng-tools.git] / src / common / utils.h
index 570216d53c9709dddcfaf480f68a465bc0a8f294..791b1098e79fefce2b72229986d564f76c652ad0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright (C) 2012 David Goulet <dgoulet@efficios.com>
  *
- * SPDX-License-Identifier: GPL-2.0-only
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
  */
 
 #define MEBI_LOG2 20
 #define GIBI_LOG2 30
 
-char *utils_partial_realpath(const char *path, char *resolved_path,
-               size_t size);
-char *utils_expand_path(const char *path);
-char *utils_expand_path_keep_symlink(const char *path);
 int utils_create_pipe(int *dst);
 int utils_create_pipe_cloexec(int *dst);
 int utils_create_pipe_cloexec_nonblock(int *dst);
@@ -43,7 +39,10 @@ int utils_get_count_order_u32(uint32_t x);
 int utils_get_count_order_u64(uint64_t x);
 const char *utils_get_home_dir(void);
 char *utils_get_user_home_dir(uid_t uid);
-size_t utils_get_current_time_str(const char *format, char *dst, size_t len);
+
+size_t utils_get_current_time_str(const char *format, char *dst, size_t len)
+       ATTR_FORMAT_STRFTIME(1);
+
 int utils_get_group_id(const char *name, bool warn, gid_t *gid);
 char *utils_generate_optstring(const struct option *long_options,
                size_t opt_count);
@@ -67,7 +66,6 @@ enum lttng_error_code utils_group_id_from_name(
  * - `str` is zero length
  * - `str` contains invalid
  */
-LTTNG_HIDDEN
 int utils_parse_unsigned_long_long(const char *str,
                unsigned long long *value);
 
This page took 0.023225 seconds and 4 git commands to generate.