diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-11-21 16:55:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 16:55:58 +0000 |
commit | 8d279853dc3c306e8d0d14d5476cdf787c297db1 (patch) | |
tree | caf82e9d5d3cf708477e31509ad4940416eb0c34 /src/sys/socket/addr.rs | |
parent | 33b5f928ea8e691c89d4b7242d44bdb2c1a62167 (diff) | |
parent | 63c56263fbaa723693ff91f082c30f3a44259c4f (diff) | |
download | nix-8d279853dc3c306e8d0d14d5476cdf787c297db1.zip |
Merge #1873
1873: mmap non-zero length r=asomers a=JonathanWoollett-Light
When calling [`mmap`](https://man7.org/linux/man-pages/man2/mmap.2.html) the passed length needs to be greater than zero, else an error is returned:
> EINVAL (since Linux 2.6.12) length was 0.
By specifying the argument as `std::num::NonZeroUsize` we eliminate this error case.
Co-authored-by: Jonathan <jonathanwoollettlight@gmail.com>
Diffstat (limited to 'src/sys/socket/addr.rs')
0 files changed, 0 insertions, 0 deletions