HomeFreeBSD

ommap: fix signed len and pos arguments

Description

ommap: fix signed len and pos arguments

4.3 BSD's mmap took an int len and long pos. Reject negative lengths
and in freebsd32 sign-extend pos correctly rather than mis-handling
negative positions as large positive ones.

Reviewed by: kib

Details

Provenance
brooksAuthored on Nov 15 2021, 6:34 PM
Parents
rG3f8ced5bce29: syscalls: regen
Branches
Unknown
Tags
Unknown