Re: [PATCH 1/2] libc: fix setting return value and errno in fallocate()

Bernhard Reutner-Fischer <[email protected]> Wed, 16 Sep 2015 23:52:28 +0200
Newsgroups gmane.comp.lib.uclibc.general
Message-ID <[email protected]>
On September 16, 2015 9:20:31 PM GMT+02:00, Waldemar Brodkorb <[email protected]> wrote:
>Hi Yuriy,
>
>can you explain why these patches are useful?

posix_fallocate does not set errno, the non-standard, Linux fallocate does, according to its manpage (and returns -1 upon error).

>Better standard conformance? Testsuite or runtime fixes?

So at least the former. Should double check not to regress the posix variant.. ( or maybe that's a bug in the standard, didn't look yet).

HTH,
>
>Thanks
> Waldemar