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
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 34505 Build 31603: arc lint + arc unit
Event Timeline
sys/compat/linux/linux_mmap.c | ||
---|---|---|
409 | 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. | |
414 | I didn't find it in OpenSSL. BoringSSL is here: https://boringssl.googlesource.com/boringssl/+/ad5582985cc6b89d0e7caf0d9cc7e301de61cf66 |
sys/compat/linux/linux_mmap.c | ||
---|---|---|
409 | Sure, if that seems clearer I have no objection to structuring it separately. |