Remove the unused AM conditionnal and use the 'HAVE_' prefix for the
define like the other detected features.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I9a001051a14e2360e7f66fd4f627f97b11563c4f
)
AX_CONFIG_FEATURE(
[dirfd], [Use directory file descriptors],
)
AX_CONFIG_FEATURE(
[dirfd], [Use directory file descriptors],
- [COMPAT_DIRFD], [This platform supports directory file descriptors.],
- [enable_dirfd="yes"], [enable_dirfd="no"]
+ [HAVE_DIRFD], [This platform supports directory file descriptors.]
-AM_CONDITIONAL([COMPAT_DIRFD], [ test "$enable_dirfd" = "yes" ])
AM_CONDITIONAL([TEST_JAVA_JUL_AGENT], [test "x$test_java_agent_jul" = "xyes"])
AM_CONDITIONAL([TEST_JAVA_LOG4J_AGENT], [test "x$test_java_agent_log4j" = "xyes"])
AM_CONDITIONAL([TEST_JAVA_JUL_AGENT], [test "x$test_java_agent_jul" = "xyes"])
AM_CONDITIONAL([TEST_JAVA_LOG4J_AGENT], [test "x$test_java_agent_log4j" = "xyes"])
static
void lttng_directory_handle_release(struct urcu_ref *ref);
static
void lttng_directory_handle_release(struct urcu_ref *ref);
/*
* Special inode number reserved to represent the "current working directory".
/*
* Special inode number reserved to represent the "current working directory".
return run_as_rmdirat_recursive(handle->dirfd, name, uid, gid, flags);
}
return run_as_rmdirat_recursive(handle->dirfd, name, uid, gid, flags);
}
-#else /* COMPAT_DIRFD */
static
int get_full_path(const struct lttng_directory_handle *handle,
static
int get_full_path(const struct lttng_directory_handle *handle,
-#endif /* COMPAT_DIRFD */
/* Common implementation. */
/* Common implementation. */
* This wrapper provides a handle that is either a copy of a directory's path
* or a directory file descriptors, depending on the platform's capabilities.
*/
* This wrapper provides a handle that is either a copy of a directory's path
* or a directory file descriptors, depending on the platform's capabilities.
*/
struct lttng_directory_handle;
struct lttng_directory_handle;
if (!lttng_directory_handle_uses_fd(new_handle)) {
ret = ENOTSUP;
} else {
if (!lttng_directory_handle_uses_fd(new_handle)) {
ret = ENOTSUP;
} else {
*out_fds = new_handle->dirfd;
#else
abort();
*out_fds = new_handle->dirfd;
#else
abort();
static
int fd_close(void *unused, int *in_fds)
{
static
int fd_close(void *unused, int *in_fds)
{
}
new_handle = open_args.ret_handle;
}
new_handle = open_args.ret_handle;
new_handle->destroy_cb = directory_handle_destroy;
new_handle->destroy_cb_data = tracker;
#endif
new_handle->destroy_cb = directory_handle_destroy;
new_handle->destroy_cb_data = tracker;
#endif