980e8111b210e24b4cf2f4d515bc788aad58c85f |
|
03-Oct-2017 |
Cyril Hrubis <chrubis@suse.cz> |
syscalls/open11: Manual fixup The assigment to ret is not used and could be removed in this case. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
25a029c24b1f75a20fec6793d142958ab7c479bf |
|
03-Oct-2017 |
Cyril Hrubis <chrubis@suse.cz> |
Make use of SAFE_SYMLINK() Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
a7b9e11a67a89323575caf839dedfeb773c8eaa5 |
|
03-Oct-2017 |
Cyril Hrubis <chrubis@suse.cz> |
Make use of SAFE_LINK() Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
d8cd45ca8cb268a3fcf4d0679d5fdd24f499ece6 |
|
03-Oct-2017 |
Cyril Hrubis <chrubis@suse.cz> |
Make use of SAFE_OPEN() Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
d2e49100e3ffb1438acad4c333654a1636f6d960 |
|
03-Oct-2017 |
Cyril Hrubis <chrubis@suse.cz> |
Make use of SAFE_MKDIR() Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
43cde6c694b23abd428fa17eac9ef377530a7043 |
|
03-Oct-2017 |
Cyril Hrubis <chrubis@suse.cz> |
Make use of SAFE_CREAT() Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
b0bd0ad871ce94fcb83084bc573c8eeb99fbc508 |
|
24-Aug-2017 |
Matthew Dawson <matthew@mjdsystems.ca> |
misc: Add sys/sysmacros.h header to includes when makedev is used. According to makedev(3), the makedev macro is defined in sys/sysmacros.h. On later versions of glibc, this seems to now be enforced and the build fails. Once added the code compiles as usual. Signed-off-by: Matthew Dawson <matthew@mjdsystems.ca>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
d1e794d62b1bf619df8390535e4c2a58899b1145 |
|
30-Jul-2015 |
Cyril Hrubis <chrubis@suse.cz> |
lib: Get rid of unused tst_require_root() callback Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
d6d11d08678aac1ed2c370ea8e42e5f45aea07be |
|
09-Mar-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Introduce tst_parse_opts() The pattern that was used in all testcases is: const char *msg; msg = parse_opts(...); if (msg) tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg); This change simplifies the steps to just calling: tst_parse_opts(...); Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
aabb8340f63ed31afe995fd97795e542dc68b93c |
|
04-Feb-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Include usctest.h in test.h Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
605fa3362fd7cef0baa2131be32cf44661783d3e |
|
04-Feb-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Get rid of TEST_CLEANUP Special thanks to Coccinelle for making this easy job. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
0b9589f3f9c0345b29cfcf7da5a1253c708303eb |
|
27-May-2014 |
Cyril Hrubis <chrubis@suse.cz> |
testcases: Constify char *msg variable. The parse_opts() now returns const char * instead of char * this commit fixes all warnings caused by the change. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
0d0c695c8c6657710d1a8ecb4f1264dcd405276b |
|
13-Feb-2013 |
Markos Chandras <markos.chandras@imgtec.com> |
open11.c: Define _GNU_SOURCE which is required for O_DIRECTORY O_DIRECTORY is only available if _GNU_SOURCE is defined in uClibc toolchains: Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
94452c49a48ad49eb2ab2956b92207cf4863eb33 |
|
13-Feb-2013 |
Cyril Hrubis <chrubis@suse.cz> |
Revert "syscalls/open11.c: Add ifdefs around O_DIRECTORY" This reverts commit 7d01f97592d9fc5b8735b20960a4462cccfba507. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
7d01f97592d9fc5b8735b20960a4462cccfba507 |
|
12-Feb-2013 |
Cyril Hrubis <chrubis@suse.cz> |
syscalls/open11.c: Add ifdefs around O_DIRECTORY Fixes build on systems with older glibc headers. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|
4d7e1881df9b25812be790e1d1016cfe8c0b5755 |
|
04-Feb-2013 |
Eryu Guan <eguan@redhat.com> |
syscalls/open11: new open(2) test case In addition to existing open(2) tests, add more basic tests and make sure open(2) works and handles error conditions correctly. There are 28 test cases: 1. Open regular file O_RDONLY 2. Open regular file O_WRONLY 3. Open regular file O_RDWR 4. Open regular file O_RDWR | O_SYNC 5. Open regular file O_RDWR | O_TRUNC 6. Open dir O_RDONLY 7. Open dir O_RDWR, expect EISDIR 8. Open regular file O_DIRECTORY, expect ENOTDIR 9. Open hard link file O_RDONLY 10. Open hard link file O_WRONLY 11. Open hard link file O_RDWR 12. Open sym link file O_RDONLY 13. Open sym link file O_WRONLY 14. Open sym link file O_RDWR 15. Open sym link dir O_RDONLY 16. Open sym link dir O_WRONLY, expect EISDIR 17. Open sym link dir O_RDWR, expect EISDIR 18. Open device special file O_RDONLY 19. Open device special file O_WRONLY 20. Open device special file O_RDWR 21. Open non-existing regular file in existing dir 22. Open link file O_RDONLY | O_CREAT 23. Open symlink file O_RDONLY | O_CREAT 24. Open regular file O_RDONLY | O_CREAT 25. Open symlink dir O_RDONLY | O_CREAT, expect EISDIR 26. Open dir O_RDONLY | O_CREAT, expect EISDIR 27. Open regular file O_RDONLY | O_TRUNC, behaviour is undefined but should not oops or hang 28. Open regular file(non-empty) O_RDONLY | O_TRUNC, behaviour is undefined but should not oops or hang Signed-off-by: Eryu Guan <eguan@redhat.com> Acked-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> Reviewed-by: Caspar Zhang <caspar@casparzhang.com> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/open/open11.c
|