This API misuse is intended to produce an error value to detect certain
bogus stub implementations of MADV_WIPEONFORK. We don't need to log a
warning about it.
Details
Details
- Reviewers
trasz emaste - Commits
- rS367182: linux(4): Quiesce warning about madvise(..., -1)
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/compat/linux/linux_mmap.c | ||
---|---|---|
399 ↗ | (On Diff #78938) | Change is fine although this feels odd to me, seems clearer to just have the -1 special case with a return EINVAL leaving the default as it is. |
404 ↗ | (On Diff #78938) | I didn't find it in OpenSSL. BoringSSL is here: https://boringssl.googlesource.com/boringssl/+/ad5582985cc6b89d0e7caf0d9cc7e301de61cf66 |
sys/compat/linux/linux_mmap.c | ||
---|---|---|
399 ↗ | (On Diff #78938) | Sure, if that seems clearer I have no objection to structuring it separately. |