mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
Fix madvise() on Windows
This commit is contained in:
parent
f51fd97644
commit
ce0143e2a1
5 changed files with 121 additions and 35 deletions
|
@ -23,6 +23,10 @@
|
|||
* Advises kernel about memory intentions, the POSIX way.
|
||||
*
|
||||
* @return 0 on success, or errno on error
|
||||
* @raise EINVAL if `advice` isn't valid or supported by system
|
||||
* @raise EINVAL on Linux if addr/length isn't page size aligned with
|
||||
* respect to `getauxval(AT_PAGESZ)`
|
||||
* @raise ENOMEM on Linux if addr/length overlaps unmapped regions
|
||||
* @returnserrno
|
||||
*/
|
||||
errno_t posix_madvise(void *addr, uint64_t len, int advice) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue