[PATCH] Add renameat2 function [BZ #17662]

Florian Weimer fweimer@redhat.com
Thu Jul 5 14:01:00 GMT 2018


On 07/04/2018 09:21 PM, Carlos O'Donell wrote:
> On 06/30/2018 08:14 AM, Florian Weimer wrote:
>> The implementation falls back to renameat if renameat2 is not available
>> in the kernel (or in the kernel headers) and the flags argument is zero.
>> Without kernel support, a non-zero argument returns EINVAL, not ENOSYS.
>> This mirrors what the kernel does for invalid renameat2 flags.
> 
> This looks good to me. I object to adding emulation to this function.

Here's an updated patch with the typo fix, the kernel version updates, 
and the expanded NEWS entry.

Still okay?

Thanks,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: renameat2.patch
Type: text/x-patch
Size: 33363 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180705/19d4c617/attachment.bin>


More information about the Libc-alpha mailing list