Home
last modified time | relevance | path

Searched refs:otfd (Results 1 - 3 of 3) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/mount_setattr/
H A Dmount_setattr01.c45 static int mount_flag, otfd = -1; variable
62 if (otfd > -1) in cleanup()
63 SAFE_CLOSE(otfd); in cleanup()
90 otfd = (int)TST_RET; in run()
92 TST_EXP_PASS_SILENT(mount_setattr(otfd, "", AT_EMPTY_PATH, &attr, sizeof(attr)), in run()
97 TST_EXP_PASS_SILENT(move_mount(otfd, "", AT_FDCWD, OT_MNTPOINT, MOVE_MOUNT_F_EMPTY_PATH)); in run()
101 SAFE_CLOSE(otfd); in run()
115 SAFE_CLOSE(otfd); in run()
/third_party/ltp/testcases/kernel/syscalls/mount/
H A Dmount03.c43 static int otfd; variable
52 TST_EXP_FAIL(otfd = open(file, O_CREAT | O_RDWR, 0700), EROFS); in test_rdonly()
59 TST_EXP_FAIL(otfd = open(file, O_RDWR, 0700), EACCES); in test_nodev()
66 otfd = SAFE_OPEN(file, O_CREAT | O_RDWR, 0700); in test_noexec()
74 TST_EXP_FD(otfd = open(file, O_CREAT | O_RDWR, 0700)); in test_remount()
109 TST_EXP_FD_SILENT(otfd = open(file, O_CREAT | O_RDWR, 0700)); in test_file_dir_noatime()
115 SAFE_WRITE(1, otfd, TEST_STR, strlen(TEST_STR)); in test_file_dir_noatime()
116 SAFE_FSTAT(otfd, &st); in test_file_dir_noatime()
127 SAFE_READ(0, otfd, readbuf, sizeof(readbuf)); in test_file_dir_noatime()
128 SAFE_FSTAT(otfd, in test_file_dir_noatime()
[all...]
/third_party/ltp/testcases/kernel/syscalls/open_tree/
H A Dopen_tree01.c41 int otfd; in run() local
43 TEST(otfd = open_tree(AT_FDCWD, MNTPOINT, tc->flags | OPEN_TREE_CLONE)); in run()
44 if (otfd == -1) { in run()
49 TEST(move_mount(otfd, "", AT_FDCWD, OT_MNTPOINT, in run()
51 SAFE_CLOSE(otfd); in run()

Completed in 2 milliseconds