root@emad:/opt/ltp# strace ./testcases/bin/pwritev01_64
execve("./testcases/bin/pwritev01_64", ["./testcases/bin/pwritev01_64"], [/* 15 vars */]) = 0
brk(0) = 0xb4f000
uname({sysname="Linux", nodename="emad", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76fd7000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=40700, ...}) = 0
mmap2(NULL, 40700, PROT_READ, MAP_PRIVATE, 3, 0) = 0x76fcd000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\270m\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1226316, ...}) = 0
mmap2(NULL, 1295720, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76e6d000
mprotect(0x76f94000, 65536, PROT_NONE) = 0
mmap2(0x76fa4000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x127000) = 0x76fa4000
mmap2(0x76fa7000, 9576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76fa7000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76fcc000
set_tls(0x76fcc4c0, 0x76fccb98, 0x76fda050, 0x76fcc4c0, 0x76fda050) = 0
mprotect(0x76fa4000, 8192, PROT_READ) = 0
mprotect(0x76fd9000, 4096, PROT_READ) = 0
munmap(0x76fcd000, 40700) = 0
brk(0) = 0xb4f000
brk(0xb70000) = 0xb70000
uname({sysname="Linux", nodename="emad", ...}) = 0
rt_sigaction(SIGHUP, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGILL, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTRAP, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGABRT, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGBUS, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR1, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR2, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGALRM, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSTKFLT, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCHLD, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTSTP, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTTIN, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTTOU, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGURG, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXCPU, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXFSZ, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGVTALRM, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPROF, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGIO, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPWR, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSYS, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_16, {0x15884, [], SA_RESTORER|SA_RESTART, 0x76e99b70}, {SIG_DFL, [], 0}, 8) = 0
gettimeofday({128, 707568}, NULL) = 0
getpid() = 828
mkdir("/tmp/pwrmITmMY", 0700) = 0
getgid32() = 0
chown32("/tmp/pwrmITmMY", -1, 0) = 0
chmod("/tmp/pwrmITmMY", 0777) = 0
getcwd("/opt/ltp", 4096) = 9
chdir("/tmp/pwrmITmMY") = 0
open("file", O_RDWR|O_CREAT, 0644) = 3
pwrite64(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048, 0) = 2048
_llseek(3, 0, [0], SEEK_SET) = 0
pwritev(3, [{"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"..., 1024}], 1, 0) = 1024
_llseek(3, 0, [0], SEEK_CUR) = 0
pread64(3, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"..., 1024, 0) = 1024
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(207, 16), ...}) = 0
ioctl(1, TCGETS, {B115200 opost isig icanon echo ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76fd6000
write(1, "pwritev01 1 TPASS : Pwrite"..., 96pwritev01 1 TPASS : Pwritev(2) write 1024 bytes successfully with content 'a' expectedly
) = 96
pwrite64(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048, 0) = 2048
_llseek(3, 0, [0], SEEK_SET) = 0
pwritev(3, [{"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"..., 1024}, {NULL, 0}], 2, 0) = 1024
_llseek(3, 0, [0], SEEK_CUR) = 0
pread64(3, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"..., 1024, 0) = 1024
write(1, "pwritev01 2 TPASS : Pwrite"..., 96pwritev01 2 TPASS : Pwritev(2) write 1024 bytes successfully with content 'a' expectedly
) = 96
pwrite64(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048, 0) = 2048
_llseek(3, 0, [0], SEEK_SET) = 0
pwritev(3, [{"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"..., 1024}], 1, 512) = 1024
_llseek(3, 0, [0], SEEK_CUR) = 0
pread64(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024, 0) = 1024
write(1, "pwritev01 3 TFAIL : pwrite"..., 81pwritev01 3 TFAIL : pwritev01.c:114: Buffer wrong at 0 have 00 expected 61
) = 81
close(3) = 0
open("/tmp/pwrmITmMY", O_RDONLY|O_DIRECTORY|O_NOFOLLOW) = 3
close(3) = 0
stat64("/tmp/pwrmITmMY", {st_mode=S_IFDIR|0777, st_size=60, ...}) = 0
open("/tmp/pwrmITmMY", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFDIR|0777, st_size=60, ...}) = 0
getdents(3, /* 3 entries */, 32768) = 48
open("/tmp/pwrmITmMY/file", O_RDONLY|O_DIRECTORY|O_NOFOLLOW) = -1 ENOTDIR (Not a directory)
unlink("/tmp/pwrmITmMY/file") = 0
getdents(3, /* 0 entries */, 32768) = 0
close(3) = 0
lstat64("/tmp/pwrmITmMY", {st_mode=S_IFDIR|0777, st_size=40, ...}) = 0
unlink("/tmp/pwrmITmMY") = -1 EISDIR (Is a directory)
rmdir("/tmp/pwrmITmMY") = 0
exit_group(1) = ?
+++ exited with 1 +++
root@emad:/opt/ltp#