blob: e585406da818348a86635227244d0c5eaf1d44bc [file] [log] [blame]
Dmitry V. Levin9f3a6af2016-04-02 01:08:24 +00001#!/bin/sh
2
3# Check decoding and dumping of pread64 and pwrite64 syscalls.
4
5. "${srcdir=.}/init.sh"
6
7# strace -P is implemented using /proc/self/fd
8[ -d /proc/self/fd/ ] ||
9 framework_skip_ '/proc/self/fd/ is not available'
10
11tmpfile=pread64-pwrite64-tmpfile
12> $tmpfile
13
14run_strace_match_diff \
Dmitry V. Levin7b5d8f92016-04-02 18:27:44 +000015 -a21 -eread=0 -ewrite=1 -e trace=pread64,pwrite64 \
Dmitry V. Levin9f3a6af2016-04-02 01:08:24 +000016 -P $tmpfile -P /dev/zero -P /dev/null
17
18rm -f $tmpfile