]> granicus.if.org Git - strace/commit
tests: require only presence of __NR_* macros for file_handle test
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 23 Oct 2016 20:23:05 +0000 (23:23 +0300)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 28 Oct 2016 23:54:01 +0000 (02:54 +0300)
commitad7f4354d5cfd8008b2cfffaf0dcb7cb64bbcbea
tree09fe043f0efe95673ca3cd725a40da31ac055e41
parentd6ee2bba25d1358ea47da1a2d3f5995bf56ab4c2
tests: require only presence of __NR_* macros for file_handle test

* tests/file_handle.c: replace fcntl.h include with asm/unistd.h.
[MAX_HANDLE_SZ]: change to defined __NR_name_to_handle_at
&& defined __NR_open_by_handle_at, add fcntl.h include
[!MAX_HANDLE_SZ]: Add definition of MAX_HANDLE_SZ and struct
file_handle.
(main): Change name_to_handle_at and open_by_handle_at calls to syscall.
tests/file_handle.c