projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: cleanup and portability fix to configure.ac
[lttng-tools.git]
/
src
/
common
/
utils.h
diff --git
a/src/common/utils.h
b/src/common/utils.h
index 7d8d70b5c29cfad26260b172a5381ca8d6674069..4f82ebd44ce4accbc780db25db33167ea97fbae6 100644
(file)
--- a/
src/common/utils.h
+++ b/
src/common/utils.h
@@
-21,11
+21,14
@@
#include <sys/types.h>
#include <unistd.h>
#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdint.h>
+#include <getopt.h>
#define KIBI_LOG2 10
#define MEBI_LOG2 20
#define GIBI_LOG2 30
#define KIBI_LOG2 10
#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);
int utils_create_pipe(int *dst);
int utils_create_pipe_cloexec(int *dst);
char *utils_expand_path(const char *path);
int utils_create_pipe(int *dst);
int utils_create_pipe_cloexec(int *dst);
@@
-34,14
+37,26
@@
void utils_close_pipe(int *src);
char *utils_strdupdelim(const char *begin, const char *end);
int utils_set_fd_cloexec(int fd);
int utils_create_pid_file(pid_t pid, const char *filepath);
char *utils_strdupdelim(const char *begin, const char *end);
int utils_set_fd_cloexec(int fd);
int utils_create_pid_file(pid_t pid, const char *filepath);
-int utils_mkdir_recursive(const char *path, mode_t mode);
+int utils_mkdir(const char *path, mode_t mode, int uid, int gid);
+int utils_mkdir_recursive(const char *path, mode_t mode, int uid, int gid);
int utils_create_stream_file(const char *path_name, char *file_name, uint64_t size,
int utils_create_stream_file(const char *path_name, char *file_name, uint64_t size,
- uint64_t count, int uid, int gid);
+ uint64_t count, int uid, int gid, char *suffix);
+int utils_unlink_stream_file(const char *path_name, char *file_name, uint64_t size,
+ uint64_t count, int uid, int gid, char *suffix);
int utils_rotate_stream_file(char *path_name, char *file_name, uint64_t size,
int utils_rotate_stream_file(char *path_name, char *file_name, uint64_t size,
- uint64_t count, int uid, int gid, int out_fd, uint64_t *new_count);
-int utils_parse_size_suffix(char *str, uint64_t *size);
+ uint64_t count, int uid, int gid, int out_fd, uint64_t *new_count,
+ int *stream_fd);
+int utils_parse_size_suffix(char const * const str, uint64_t * const size);
int utils_get_count_order_u32(uint32_t x);
char *utils_get_home_dir(void);
int utils_get_count_order_u32(uint32_t x);
char *utils_get_home_dir(void);
+char *utils_get_user_home_dir(uid_t uid);
+char *utils_get_kmod_probes_list(void);
+char *utils_get_extra_kmod_probes_list(void);
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);
+gid_t utils_get_group_id(const char *name);
+char *utils_generate_optstring(const struct option *long_options,
+ size_t opt_count);
+int utils_create_lock_file(const char *filepath);
+int utils_recursive_rmdir(const char *path);
#endif /* _COMMON_UTILS_H */
#endif /* _COMMON_UTILS_H */
This page took
0.023091 seconds
and
4
git commands to generate.