* of the internal API below.
*/
static
-int lttng_directory_handle_stat(const struct lttng_directory_handle *handle,
- const char *path, struct stat *st);
-static
int lttng_directory_handle_mkdir(
const struct lttng_directory_handle *handle,
const char *path, mode_t mode);
handle->dirfd = -1;
}
-static
+LTTNG_HIDDEN
int lttng_directory_handle_stat(const struct lttng_directory_handle *handle,
const char *path, struct stat *st)
{
handle->base_path = NULL;
}
-static
+LTTNG_HIDDEN
int lttng_directory_handle_stat(const struct lttng_directory_handle *handle,
const char *subdirectory, struct stat *st)
{
#ifndef _COMPAT_DIRECTORY_HANDLE_H
#define _COMPAT_DIRECTORY_HANDLE_H
-#include <common/macros.h>
#include <common/credentials.h>
+#include <common/macros.h>
+#include <sys/stat.h>
#include <urcu/ref.h>
enum lttng_directory_handle_rmdir_recursive_flags {
const struct lttng_credentials *creds,
int flags);
+/*
+ * stat() a file relative to a directory handle.
+ */
+LTTNG_HIDDEN
+int lttng_directory_handle_stat(
+ const struct lttng_directory_handle *handle,
+ const char *name,
+ struct stat *stat_buf);
+
/*
* Compare two directory handles.
*