*
*/
-#include <common/compat/fcntl.hpp>
#include <common/payload-view.hpp>
#include <common/payload.hpp>
+#include <fcntl.h>
#include <tap/tap.h>
#include <unistd.h>
diag("Validating fd push/pop order");
for (i = 0; i < 3; i++) {
- int fd = fcntl(STDOUT_FILENO, F_DUPFD, 0);
+ const int fd = fcntl(STDOUT_FILENO, F_DUPFD, 0);
struct fd_handle *handle;
LTTNG_ASSERT(fd >= 0);
diag("Validating fd pop imbalance");
for (i = 0; i < 10; i++) {
struct fd_handle *handle;
- int fd = fcntl(STDOUT_FILENO, F_DUPFD, 0);
+ const int fd = fcntl(STDOUT_FILENO, F_DUPFD, 0);
LTTNG_ASSERT(fd >= 0);
static void test_fd_pop_fd_root_views()
{
int ret, i;
- int fd = fcntl(STDOUT_FILENO, F_DUPFD, 0);
+ const int fd = fcntl(STDOUT_FILENO, F_DUPFD, 0);
struct fd_handle *handle;
struct lttng_payload payload;
const char *const test_description =