[PATCH] posix: Set p{read,write}v2 to return ENOTSUP (BZ#21780)

John David Anglin dave.anglin@bell.net
Tue Jul 18 11:40:00 GMT 2017


On 2017-07-17, at 10:29 AM, Adhemerval Zanella wrote:

> Checked on x86_64-linux-gnu and the tst-preadwritev{64}v2 on
> hppa-linux-gnu (although due the installed kernel on my testing system
> the pwritev{64}v2 with an invalid flag still fails due a known kernel
> issue [1]).
> 
> 	[BZ #21780]
> 	* sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
> 	EOPNOTSUPP.
> 	* sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
> 	* sysdeps/posix/pwritev2.c (pwritev2): Likewise.
> 	* sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
> 	* sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
> 	* sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
> 	* sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
> 	* sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.

Fixes the st-preadwritev{64}v2 test failures on hppa.

Dave
--
John David Anglin	dave.anglin@bell.net





More information about the Libc-alpha mailing list