[LTP] [PATCH] syscalls/preadv203: Add basic RWF_NOWAIT test

Cyril Hrubis chrubis@suse.cz
Wed Feb 6 13:10:29 CET 2019


Hi!
> > +static void *nowait_reader(void *unused LTP_ATTRIBUTE_UNUSED)
> ...
> > +		TEST(preadv2(fd, rd_iovec, 2, off, RWF_NOWAIT));
> RWF_NOWAIT needs to be declared in lapi for old distros.

Right and we should as well return TCONF on older kernels, I haven't
tested that properly yet but I guess that we should check for EOPNOTSUPP
and EINVAL. I will do that later on, I just didn't want to delay the
initial test patch because it seem that kernel developers wanted to
have it ASAP.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list