create a new case to test flags for openat(2):
O_APPEND
O_CLOEXEC
O_LARGEFILE
O_NOATIME
O_NOFOLLOW
O_TRUNC
Signed-off-by: Xing Gu
---
configure.ac | 1 +
m4/ltp-openat.m4 | 25 ++
runtest/syscalls
Create a function tst_path_has_mnt_flags() for checking whether
a path is on a system that is mounted with specified flags.
Signed-off-by: Xing Gu
---
include/test.h | 9
lib/tst_path_has_mnt_flags.c | 99
2 files changed, 108 inse
Create a function tst_path_has_mnt_flags() for checking whether
a path is on a system that is mounted with specified flags.
Signed-off-by: Xing Gu
---
include/test.h | 9 +
lib/tst_path_has_mnt_flags.c | 79
2 files changed, 88 inse
Create a function tst_path_has_mnt_flags() for checking whether
a path is on a system that is mounted with specified flags.
Signed-off-by: Xing Gu
---
include/test.h | 9 +
lib/tst_path_has_mnt_flags.c | 81
2 files changed, 90 inse
From: "gux.f...@cn.fujitsu.com"
create a new case to test flags for openat(2):
O_APPEND
O_CLOEXEC
O_LARGEFILE
O_NOATIME
O_NOFOLLOW
O_TRUNC
Signed-off-by: Xing Gu
---
configure.ac | 1 +
m4/ltp-openat.m4 | 25 +
Signed-off-by: Xing Gu
---
testcases/kernel/syscalls/rmdir/rmdir02.c | 92 ---
1 file changed, 85 insertions(+), 7 deletions(-)
diff --git a/testcases/kernel/syscalls/rmdir/rmdir02.c
b/testcases/kernel/syscalls/rmdir/rmdir02.c
index 9ae919a..9d55d76 100644
--- a/test
Delete some useless comments.
Use some SAFE_* macros.
Move the test body from main() to rmdir_verify().
Signed-off-by: Xing Gu
---
testcases/kernel/syscalls/rmdir/rmdir02.c | 406 +++---
1 file changed, 91 insertions(+), 315 deletions(-)
diff --git a/testcases/kernel/sys
Signed-off-by: Xing Gu
---
testcases/kernel/syscalls/renameat/renameat01.c | 115 +++-
1 file changed, 113 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/renameat/renameat01.c
b/testcases/kernel/syscalls/renameat/renameat01.c
index bc08477..20526c5 1006
Add renameat.h to encapsulate renameat syscall.
Delete some useless comments.
Use some SAFE_* macros.
Move the test body from main() to (*testfunc[])().
Signed-off-by: Xing Gu
---
configure.ac| 1 +
include/lapi/fcntl.h| 4 +
m4