[PATCH] Implement the mlock2 function
Florian Weimer
fweimer@redhat.com
Mon Nov 27 10:25:00 GMT 2017
On 11/28/2017 10:25 AM, Rical Jasan wrote:
>> +Like @code{mlock}, @code{mlock2} returns zero on success and @code{-1}
>
> I thought you were in the @math camp for return values. :P
mlock uses @code, so it was a difficult decision. 8-/
>> @deftypefun int munlock (const void *@var{addr}, size_t @var{len})
>> @standards{POSIX.1b, sys/mman.h}
>> @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
>
> The rest of the patch looked OK to me, but I'm not able to give an
> authoritative ACK on it. Seemed straightforward though.
I'm waiting for more feedback on the ENOSYS masking behavior.
Thanks,
Florian
More information about the Libc-alpha
mailing list