]> granicus.if.org Git - strace/log
strace
8 years agotests: add mlock.test
Fei Jie [Wed, 27 Apr 2016 08:54:19 +0000 (16:54 +0800)]
tests: add mlock.test

* tests/mlock.c: New file.
* tests/mlock.test: New test.
* tests/.gitignore: Add mlock.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add mlock.test.

8 years agoMove parsers of NUMA related syscalls to numa.c
Dmitry V. Levin [Wed, 27 Apr 2016 05:06:06 +0000 (05:06 +0000)]
Move parsers of NUMA related syscalls to numa.c

* mem.c (get_nodes, SYS_FUNC(mbind), SYS_FUNC(set_mempolicy),
SYS_FUNC(get_mempolicy), SYS_FUNC(migrate_pages), SYS_FUNC(move_pages)):
Move ...
* numa.c: ... here.
* Makefile.am (strace_SOURCES): Add numa.c

8 years agotests/umovestr3.c: robustify against os specific issues
Dmitry V. Levin [Wed, 27 Apr 2016 03:18:44 +0000 (03:18 +0000)]
tests/umovestr3.c: robustify against os specific issues

* tests/umovestr3.c (main): Create extra gap before unreadable page.

8 years agotests: extend test coverage of umovestr short read condition
Dmitry V. Levin [Wed, 27 Apr 2016 00:08:06 +0000 (00:08 +0000)]
tests: extend test coverage of umovestr short read condition

* tests/umovestr3.c: New file.
* tests/umovestr3.test: New test.
* tests/.gitignore: Add umovestr3.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add umovestr3.test.

8 years agotests: check decoding of out-of-range syscalls
Dmitry V. Levin [Tue, 26 Apr 2016 23:17:17 +0000 (23:17 +0000)]
tests: check decoding of out-of-range syscalls

* tests/nsyscalls.c: New file.
* tests/nsyscalls.test: New test.
* tests/.gitignore: Add nsyscalls.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add nsyscalls.test.

8 years agoFix decoding of 3rd argument of getdents/getdents64 syscalls
Dmitry V. Levin [Tue, 26 Apr 2016 22:38:10 +0000 (22:38 +0000)]
Fix decoding of 3rd argument of getdents/getdents64 syscalls

* dirent.c (SYS_FUNC(getdents)): Always print 3rd syscall argument
as unsigned int.
* dirent64.c (SYS_FUNC(getdents64)): Likewise.
* tests/getdents.c (main): Check it.
* tests/getdents64.c (main): Likewise.

8 years agoFix decoding of LINUX_REBOOT_CMD_RESTART2 argument
Dmitry V. Levin [Tue, 26 Apr 2016 17:41:44 +0000 (17:41 +0000)]
Fix decoding of LINUX_REBOOT_CMD_RESTART2 argument

* reboot.c (SYS_FUNC(reboot)): Cast numeric arguments to unsigned int.

8 years ago.travis.yml: raise sleep delay
Dmitry V. Levin [Tue, 26 Apr 2016 16:46:20 +0000 (16:46 +0000)]
.travis.yml: raise sleep delay

Previous sleep delay value seems to be not enough nowadays.

.travis.yml (SLEEP_A_BIT): Raise sleep delay.

8 years agoMove definitions of MPOL_* constants to xlat files
Dmitry V. Levin [Tue, 26 Apr 2016 16:36:30 +0000 (16:36 +0000)]
Move definitions of MPOL_* constants to xlat files

* mem.c (MPOL_DEFAULT, MPOL_PREFERRED, MPOL_BIND, MPOL_INTERLEAVE):
Move to xlat/policies.in.
(MPOL_F_NODE, MPOL_F_ADDR): Move to xlat/mempolicyflags.in.
(MPOL_MF_STRICT, MPOL_MF_MOVE, MPOL_MF_MOVE_ALL): Move
to xlat/mbindflags.in.

8 years agotests: check decoding of renameat2 syscall
Dmitry V. Levin [Tue, 26 Apr 2016 16:11:48 +0000 (16:11 +0000)]
tests: check decoding of renameat2 syscall

* tests/renameat2.c: New file.
* tests/renameat2.test: New test.
* tests/.gitignore: Add renameat2.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add renameat2.test.

8 years agoAdd default values for RENAME_* constants
Dmitry V. Levin [Tue, 26 Apr 2016 16:30:13 +0000 (16:30 +0000)]
Add default values for RENAME_* constants

* xlat/rename_flags.in: Add default values.

8 years agotests: check decoding of utimes syscall
Dmitry V. Levin [Tue, 26 Apr 2016 15:35:57 +0000 (15:35 +0000)]
tests: check decoding of utimes syscall

* tests/utimes.c: New file.
* tests/utimes.test: New test.
* tests/.gitignore: Add utimes.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add utimes.test.

8 years agotests: check decoding of futimesat syscall
Dmitry V. Levin [Tue, 26 Apr 2016 15:34:03 +0000 (15:34 +0000)]
tests: check decoding of futimesat syscall

* tests/futimesat.c: New file.
* tests/futimesat.test: New test.
* tests/.gitignore: Add futimesat.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add futimesat.test.

8 years agotests: extend test coverage of mknod syscall
Dmitry V. Levin [Tue, 26 Apr 2016 11:00:51 +0000 (11:00 +0000)]
tests: extend test coverage of mknod syscall

* mknod.c (main): Check more corner cases of mode_t parser.
* mknod.test: Update.

8 years agotests: add sched_yield.test
Fei Jie [Tue, 26 Apr 2016 08:03:11 +0000 (16:03 +0800)]
tests: add sched_yield.test

* tests/sched_yield.c: New file.
* tests/sched_yield.test: New test.
* tests/.gitignore: Add sched_yield.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add sched_yield.test.

8 years agotests: add sync.test
Fei Jie [Tue, 26 Apr 2016 08:03:10 +0000 (16:03 +0800)]
tests: add sync.test

* tests/sync.c: New file.
* tests/sync.test: New test.
* tests/.gitignore: Add sync.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add sync.test.

8 years agotests: add mknodat.test
Fei Jie [Tue, 26 Apr 2016 08:03:09 +0000 (16:03 +0800)]
tests: add mknodat.test

* tests/mknodat.c: New file.
* tests/mknodat.test: New test.
* tests/.gitignore: Add mknodat.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add mknodat.test.

8 years agotests: add unlink.test
Fei Jie [Tue, 26 Apr 2016 08:03:08 +0000 (16:03 +0800)]
tests: add unlink.test

* tests/unlink.c: New file.
* tests/unlink.test: New test.
* tests/.gitignore: Add unlink.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add unlink.test.

8 years agotests: add reboot.test
Fei Jie [Tue, 26 Apr 2016 08:03:07 +0000 (16:03 +0800)]
tests: add reboot.test

* tests/reboot.c: New file.
* tests/reboot.test: New test.
* tests/.gitignore: Add reboot.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add reboot.test.

8 years agoFix decoding of statfs family syscalls
Dmitry V. Levin [Tue, 26 Apr 2016 00:21:26 +0000 (00:21 +0000)]
Fix decoding of statfs family syscalls

Fix decoders of fstatfs, fstatfs64, statfs, and statfs64 syscalls
by rewriting them using mpers infrastructure.

* fetch_struct_statfs.c: New file.
* fstatfs.c: Likewise.
* fstatfs64.c: Likewise.
* print_statfs.c: Likewise.
* statfs.h: Likewise.
* statfs64.c: Likewise.
* statfs.c: Remove everything except SYS_FUNC(statfs).
* configure.ac: Remove the check for struct statfs64 in <sys/vfs.h>.
Add checks for struct statfs and struct statfs64 in <asm/statfs.h>.
Add checks for f_frsize and f_flags members of these structures.
* defs.h (struct strace_statfs): New forward declaration.
(print_struct_statfs, print_struct_statfs64): New prototypes.
* Makefile.am (libstrace_a_SOURCES): Add fstatfs.c, fstatfs64.c,
statfs.c, and statfs64.c.
(strace_SOURCES): Add fetch_struct_statfs.c, print_statfs.c,
and statfs.h.
* NEWS: Mention this fix.
* tests/fstatfs.c: New file.
* tests/fstatfs64.c: Likewise.
* tests/statfs64.c: Likewise.
* tests/xstatfs.c: Likewise.
* tests/xstatfs64.c: Likewise.
* tests/xstatfsx.c: Likewise.
* tests/fstatfs.test: New test.
* tests/fstatfs64.test: Likewise.
* tests/statfs64.test: Likewise.
* tests/statfs.c: Rewrite using xstatfs.c.
* tests/statfs.test: Update.
* tests/.gitignore: Add fstatfs, fstatfs64, and statfs64.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add  fstatfs.test, fstatfs64.test, and statfs64.test.
(EXTRA_DIST): Add xstatfs.c, xstatfs64.c, and xstatfsx.c.

8 years agotests: add printflags function to libtests
Dmitry V. Levin [Tue, 26 Apr 2016 00:13:47 +0000 (00:13 +0000)]
tests: add printflags function to libtests

* tests/printflags.c: New file.
* tests/tests.h (printflags): New prototype.
* tests/Makefile.am (libtests_a_SOURCES): Add it.

8 years agoMove definition of struct xlat to a separate header file
Dmitry V. Levin [Tue, 26 Apr 2016 00:08:16 +0000 (00:08 +0000)]
Move definition of struct xlat to a separate header file

Define struct xlat in a separate file so that it could be used later by
tests without inclusion of defs.h header file.

* defs.h (struct xlat, XLAT, XLAT_END): Move ...
* xlat.h: ... here.
* Makefile.am (strace_SOURCES): Add xlat.h.

8 years agoalpha: decode osf_statfs64 and osf_fstatfs64 syscalls
Dmitry V. Levin [Mon, 25 Apr 2016 23:52:03 +0000 (23:52 +0000)]
alpha: decode osf_statfs64 and osf_fstatfs64 syscalls

* linux/alpha/syscallent.h (osf_statfs64, osf_fstatfs64): Set nargs
and handler.

8 years agoalpha: fix decoding of osf_statfs and osf_fstatfs syscalls
Dmitry V. Levin [Mon, 25 Apr 2016 23:52:03 +0000 (23:52 +0000)]
alpha: fix decoding of osf_statfs and osf_fstatfs syscalls

Do not attempt to print struct osf_statfs as if it was the same as
struct statfs.  Since struct osf_statfs has never been decoded properly,
it is probably too late to implement a decoder, so let's just print the
pointer.

* statfs.c [ALPHA] (SYS_FUNC(osf_statfs), SYS_FUNC(osf_fstatfs)): Move ...
* alpha.c: ... here.  Replace printstatfs with printaddr.

8 years agostatfs: print f_flags field only when ST_VALID flag is set
Dmitry V. Levin [Mon, 25 Apr 2016 10:15:14 +0000 (10:15 +0000)]
statfs: print f_flags field only when ST_VALID flag is set

* statfs.c (print_statfs_flags): New function.
(printstatfs, printstatfs64, printcompat_statfs64): Use it.
* xlat/statfs_flags.in (ST_VALID): Move to the head of the list.
* tests/statfs.expected: Update.

8 years agotests: add symlink.test
Fei Jie [Mon, 25 Apr 2016 08:18:23 +0000 (16:18 +0800)]
tests: add symlink.test

* tests/symlink.c: New file.
* tests/symlink.test: New test.
* tests/.gitignore: Add symlink.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add symlink.test.

8 years agotests: add rmdir.test
Fei Jie [Mon, 25 Apr 2016 08:18:22 +0000 (16:18 +0800)]
tests: add rmdir.test

* tests/rmdir.c: New file.
* tests/rmdir.test: New test.
* tests/.gitignore: Add rmdir.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add rmdir.test.

8 years agotests: add setdomainname.test
Fei Jie [Mon, 25 Apr 2016 08:18:21 +0000 (16:18 +0800)]
tests: add setdomainname.test

* tests/setdomainname.c: New file.
* tests/setdomainname.test: New test.
* tests/.gitignore: Add setdomainname.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add setdomainname.test.

8 years agotests: add sched_rr_get_interval.test
Fei Jie [Mon, 25 Apr 2016 08:18:20 +0000 (16:18 +0800)]
tests: add sched_rr_get_interval.test

* tests/sched_rr_get_interval.c: New file.
* tests/sched_rr_get_interval.test: New test.
* tests/.gitignore: Add sched_rr_get_interval.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add sched_rr_get_interval.test.

8 years agostatfs: decode f_flags field of struct statfs
Dmitry V. Levin [Sun, 24 Apr 2016 23:54:52 +0000 (23:54 +0000)]
statfs: decode f_flags field of struct statfs

* xlat/statfs_flags.in: New file.
* statfs.c: Include "xlat/statfs_flags.h".
(printstatfs) [_STATFS_F_FLAGS]: Print statbuf.f_flags as flags.
(printstatfs64) [_STATFS_F_FLAGS]: Likewise.
(printcompat_statfs64): Likewise.
* tests/statfs.expected: Update.

8 years agostatfs: don't quote f_type macro names
Zev Weiss [Sun, 24 Apr 2016 23:32:33 +0000 (18:32 -0500)]
statfs: don't quote f_type macro names

* statfs.c (sprintfstype): Don't add double-quotes to fs magic macros.
* tests/statfs.expected: Remove double-quotes.

8 years agotests/shmxt.c: robustify against arch specific issues
Dmitry V. Levin [Sat, 23 Apr 2016 01:53:43 +0000 (01:53 +0000)]
tests/shmxt.c: robustify against arch specific issues

Do not treat failed shmat(SHM_RND) as a test failure.
This change partially reverts commit
bea707377d2ee3e1950bfa43537ef928163a5fa6.

* tests/shmxt.c (main): Use SHM_RND in the second shmat call,
do not treat its potential error as a test failure.

8 years agoRename PRI__s64 to PRI__d64
Dmitry V. Levin [Fri, 22 Apr 2016 23:54:58 +0000 (23:54 +0000)]
Rename PRI__s64 to PRI__d64

As PRI__*64 macros mirror PRI*64 macros from inttypes.h, follow the
principle of least astonishment and name these macros the same way.

* defs.h (PRI__s64): Rename to PRI__d64.

8 years agoFix old_mmap output when mmap arguments are unfetchable
Dmitry V. Levin [Fri, 22 Apr 2016 23:41:36 +0000 (23:41 +0000)]
Fix old_mmap output when mmap arguments are unfetchable

* mem.c (SYS_FUNC(old_mmap)): Use umove_or_printaddr instead of umoven
to fetch mmap arguments, return RVAL_DECODED when umove_or_printaddr
fails.
* tests/old_mmap.c (main): Check it.

8 years agoaarch64: fix old_mmap output for arm personality
Dmitry V. Levin [Fri, 22 Apr 2016 23:47:46 +0000 (23:47 +0000)]
aarch64: fix old_mmap output for arm personality

* mem.c (SYS_FUNC(old_mmap)) [AARCH64]: Fetch mmap arguments
as 32-bit integers.

8 years agoDefine old_mmap parser only on architectures that use it
Dmitry V. Levin [Fri, 22 Apr 2016 23:36:26 +0000 (23:36 +0000)]
Define old_mmap parser only on architectures that use it

* mem.c (SYS_FUNC(old_mmap)): Define only on AARCH64, ARM, I386, X86_64,
X32, M68K, S390, and S390X.

8 years agotests: extend test coverage of mmap syscall
Dmitry V. Levin [Fri, 22 Apr 2016 20:37:19 +0000 (20:37 +0000)]
tests: extend test coverage of mmap syscall

Check decoding of "old mmap" edition of mmap syscall
on those architectures that define it.

* tests/old_mmap.c: New file.
* tests/old_mmap.test: New test.
* tests/.gitignore: Add old_mmap.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add old_mmap.test.

8 years agotests: extend test coverage of mincore syscall
Dmitry V. Levin [Fri, 22 Apr 2016 14:14:39 +0000 (14:14 +0000)]
tests: extend test coverage of mincore syscall

* tests/mincore.c (print_mincore): New function.
(test_mincore): Use it.  Check mincore with invalid vec address.
Check mincore with length argument not a multiple of the page size.
(main): Check with DEFAULT_STRLEN pages.

8 years agoMove parsers of sync_file_range and sync_file_range2 syscalls to libstrace
Dmitry V. Levin [Fri, 22 Apr 2016 04:17:06 +0000 (04:17 +0000)]
Move parsers of sync_file_range and sync_file_range2 syscalls to libstrace

For each given architecture only one of these two syscalls has a
syscallent entry.  When each parser is placed into a separate file,
moving to libstrace ensures that only one of them that is need
is linked into strace executable.

* sync_file_range.c (SYS_FUNC(sync_file_range2)): Move ...
* sync_file_range2.c: ... here.
* Makefile.am (strace_SOURCES): Move sync_file_range.c ...
(libstrace_a_SOURCES): ... here.  Add sync_file_range2.c.
(strace_SOURCES_c): Add filtered libstrace_a_SOURCES.

8 years agotests: check decoding of clock_adjtime syscall
Dmitry V. Levin [Fri, 22 Apr 2016 01:13:27 +0000 (01:13 +0000)]
tests: check decoding of clock_adjtime syscall

* tests/clock_adjtime.c: New file.
* tests/clock_adjtime.test: New test.
* tests/.gitignore: Add clock_adjtime.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add clock_adjtime.test.

8 years agotests: do not include <assert.h> unnecessarily
Dmitry V. Levin [Thu, 21 Apr 2016 18:20:47 +0000 (18:20 +0000)]
tests: do not include <assert.h> unnecessarily

Automatically change tests/*.c files using the following script:

for f in tests/*.c; do
grep -q '\<assert(' "$f" ||
sed -i '/# *include *<assert\.h>/d' "$f"
done

8 years agotests: do not include <errno.h> unnecessarily
Dmitry V. Levin [Thu, 21 Apr 2016 18:20:47 +0000 (18:20 +0000)]
tests: do not include <errno.h> unnecessarily

Automatically change tests/*.c files using the following script:

for f in tests/*.c; do
grep -Fv errno.h "$f" |
grep -Ewq '(si_)?errno|SOCK_FILTER_DENY_SYSCALL' ||
sed -i '/# *include *<errno\.h>/d' "$f"
done

8 years agotests/xetpriority.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 21:34:19 +0000 (21:34 +0000)]
tests/xetpriority.c: print syscall() result using %ld format

8 years agotests/xetpgid.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 21:33:43 +0000 (21:33 +0000)]
tests/xetpgid.c: print syscall() result using %ld format

8 years agotests/xchownx.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 21:33:24 +0000 (21:33 +0000)]
tests/xchownx.c: use errno2name

8 years agotests/userfaultfd.c: stop using assert
Dmitry V. Levin [Thu, 21 Apr 2016 21:32:52 +0000 (21:32 +0000)]
tests/userfaultfd.c: stop using assert

8 years agotests/unlinkat.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 21:32:28 +0000 (21:32 +0000)]
tests/unlinkat.c: print syscall() result using %ld format

8 years agotests/umount.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 21:32:00 +0000 (21:32 +0000)]
tests/umount.c: use errno2name

8 years agotests/truncate64.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:28:30 +0000 (21:28 +0000)]
tests/truncate64.c: cleanup

* tests/truncate64.c (main): Use errno2name, stop using assert.

8 years agotests/truncate.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:28:03 +0000 (21:28 +0000)]
tests/truncate.c: cleanup

* tests/truncate.c (main): Use errno2name, stop using assert.

8 years agotests/tee.c: stop using assert
Dmitry V. Levin [Thu, 21 Apr 2016 21:27:19 +0000 (21:27 +0000)]
tests/tee.c: stop using assert

8 years agotests/syslog.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 21:26:52 +0000 (21:26 +0000)]
tests/syslog.c: use errno2name

8 years agotests/sync_file_range2.c: stop using assert
Dmitry V. Levin [Thu, 21 Apr 2016 21:26:16 +0000 (21:26 +0000)]
tests/sync_file_range2.c: stop using assert

8 years agotests/sync_file_range.c: stop using assert
Dmitry V. Levin [Thu, 21 Apr 2016 21:25:55 +0000 (21:25 +0000)]
tests/sync_file_range.c: stop using assert

8 years agotests/symlinkat.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:25:29 +0000 (21:25 +0000)]
tests/symlinkat.c: cleanup

8 years agotests/swap.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:24:43 +0000 (21:24 +0000)]
tests/swap.c: cleanup

* tests/swap.c (error_msg): Remove.
(main): Use errno2name.

8 years agotests/splice.c: stop using assert
Dmitry V. Levin [Thu, 21 Apr 2016 21:24:01 +0000 (21:24 +0000)]
tests/splice.c: stop using assert

8 years agotests/setugid.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:23:34 +0000 (21:23 +0000)]
tests/setugid.c: cleanup

8 years agotests/sethostname.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 21:22:50 +0000 (21:22 +0000)]
tests/sethostname.c: use errno2name

8 years agotests/setgroups.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 21:21:37 +0000 (21:21 +0000)]
tests/setgroups.c: use errno2name

* tests/setgroups.c (errno2str): Remove.
(main): Use errno2name.

8 years agotests/seccomp-strict.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:20:31 +0000 (21:20 +0000)]
tests/seccomp-strict.c: cleanup

* tests/seccomp-strict.c (main): Use errno2name, stop using assert.

8 years agotests/seccomp-filter.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:19:30 +0000 (21:19 +0000)]
tests/seccomp-filter.c: cleanup

* tests/seccomp-filter.c (main): Use errno2name, stop using assert.

8 years agotests/sched_xetscheduler.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 21:18:14 +0000 (21:18 +0000)]
tests/sched_xetscheduler.c: print syscall() result using %ld format

8 years agotests/sched_xetparam.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 21:17:46 +0000 (21:17 +0000)]
tests/sched_xetparam.c: print syscall() result using %ld format

8 years agotests/renameat.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 21:17:11 +0000 (21:17 +0000)]
tests/renameat.c: print syscall() result using %ld format

8 years agotests/rename.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 21:16:54 +0000 (21:16 +0000)]
tests/rename.c: print syscall() result using %ld format

8 years agotests/readv.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:16:34 +0000 (21:16 +0000)]
tests/readv.c: cleanup

8 years agotests/pwritev.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 21:16:02 +0000 (21:16 +0000)]
tests/pwritev.c: use errno2name

8 years agotests/preadv-pwritev.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:14:52 +0000 (21:14 +0000)]
tests/preadv-pwritev.c: cleanup

8 years agotests/prctl-seccomp-strict.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:13:20 +0000 (21:13 +0000)]
tests/prctl-seccomp-strict.c: cleanup

* tests/prctl-seccomp-strict.c (main): Use errno2name,
stop using assert.

8 years agotests/openat.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 21:12:41 +0000 (21:12 +0000)]
tests/openat.c: use errno2name

8 years agotests/open.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 21:12:14 +0000 (21:12 +0000)]
tests/open.c: use errno2name

8 years agotests/mlockall.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:06:13 +0000 (21:06 +0000)]
tests/mlockall.c: cleanup

8 years agotests/mlock2.c: stop using assert
Dmitry V. Levin [Thu, 21 Apr 2016 21:05:39 +0000 (21:05 +0000)]
tests/mlock2.c: stop using assert

8 years agotests/mknod.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 21:04:00 +0000 (21:04 +0000)]
tests/mknod.c: print syscall() result using %ld format

8 years agotests/mkdirat.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 21:03:13 +0000 (21:03 +0000)]
tests/mkdirat.c: print syscall() result using %ld format

8 years agotests/lseek.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:01:40 +0000 (21:01 +0000)]
tests/lseek.c: cleanup

* tests/lseek.c (main): Use errno2name, stop using assert.

8 years agotests/llseek.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 21:00:47 +0000 (21:00 +0000)]
tests/llseek.c: cleanup

* tests/llseek.c (main): Use errno2name, stop using assert.

8 years agotests/linkat.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 21:00:18 +0000 (21:00 +0000)]
tests/linkat.c: print syscall() result using %ld format

8 years agotests/iopl.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 20:59:46 +0000 (20:59 +0000)]
tests/iopl.c: use errno2name

8 years agotests/ioperm.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 20:59:26 +0000 (20:59 +0000)]
tests/ioperm.c: use errno2name

8 years agotests/getgroups.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 20:51:15 +0000 (20:51 +0000)]
tests/getgroups.c: use errno2name

* tests/getgroups.c (errno2str): Remove.
(main): Use errno2name.

8 years agotests/ftruncate64.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 20:50:08 +0000 (20:50 +0000)]
tests/ftruncate64.c: cleanup

* tests/ftruncate64.c (main): Use errno2name, stop using assert.

8 years agotests/ftruncate.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 20:48:23 +0000 (20:48 +0000)]
tests/ftruncate.c: cleanup

* tests/ftruncate.c (main): Use errno2name, stop using assert.

8 years agotests/fsync.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 20:46:44 +0000 (20:46 +0000)]
tests/fsync.c: print syscall() result using %ld format

8 years agotests/flock.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 20:46:15 +0000 (20:46 +0000)]
tests/flock.c: print syscall() result using %ld format

8 years agotests/file_handle.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 20:45:17 +0000 (20:45 +0000)]
tests/file_handle.c: use errno2name

8 years agotests/fdatasync.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 20:41:38 +0000 (20:41 +0000)]
tests/fdatasync.c: print syscall() result using %ld format

8 years agotests/fchownat.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 20:40:49 +0000 (20:40 +0000)]
tests/fchownat.c: use errno2name

8 years agotests/fchmodat.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 20:39:58 +0000 (20:39 +0000)]
tests/fchmodat.c: use errno2name

8 years agotests/fchmod.c: use errno2name
Dmitry V. Levin [Thu, 21 Apr 2016 20:39:40 +0000 (20:39 +0000)]
tests/fchmod.c: use errno2name

8 years agotests/faccessat.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 20:38:47 +0000 (20:38 +0000)]
tests/faccessat.c: print syscall() result using %ld format

8 years agotests/epoll_wait.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 20:38:15 +0000 (20:38 +0000)]
tests/epoll_wait.c: print syscall() result using %ld format

8 years agotests/epoll_ctl.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 20:37:50 +0000 (20:37 +0000)]
tests/epoll_ctl.c: print syscall() result using %ld format

8 years agotests/epoll_create1.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 20:36:45 +0000 (20:36 +0000)]
tests/epoll_create1.c: cleanup

* tests/epoll_create1.c (main): Use errno2name, stop using assert.

8 years agotests/epoll_create.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 20:35:20 +0000 (20:35 +0000)]
tests/epoll_create.c: print syscall() result using %ld format

8 years agotests/dup3.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 20:34:56 +0000 (20:34 +0000)]
tests/dup3.c: print syscall() result using %ld format

8 years agotests/dup2.c: print syscall() result using %ld format
Dmitry V. Levin [Thu, 21 Apr 2016 20:34:36 +0000 (20:34 +0000)]
tests/dup2.c: print syscall() result using %ld format

8 years agotests/dup.c: cleanup
Dmitry V. Levin [Thu, 21 Apr 2016 20:33:32 +0000 (20:33 +0000)]
tests/dup.c: cleanup

8 years agotests/creat.c: stop using sys/stat.h
Dmitry V. Levin [Thu, 21 Apr 2016 20:32:43 +0000 (20:32 +0000)]
tests/creat.c: stop using sys/stat.h