-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
148 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
gommap - Memory mapping support for Go. | ||
|
||
Copyright (c) 2010, Gustavo Niemeyer <[email protected]> | ||
Copyright (c) 2010-2012, Gustavo Niemeyer <[email protected]> | ||
|
||
All rights reserved. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,47 @@ | ||
// ** This file is automatically generated from consts.c. ** | ||
// ** This file is automatically generated from consts.c.txt ** | ||
|
||
package gommap | ||
|
||
type ProtFlags uint | ||
|
||
const ( | ||
PROT_NONE = 0x0 | ||
PROT_READ = 0x1 | ||
PROT_WRITE = 0x2 | ||
PROT_EXEC = 0x4 | ||
PROT_NONE ProtFlags = 0x0 | ||
PROT_READ ProtFlags = 0x1 | ||
PROT_WRITE ProtFlags = 0x2 | ||
PROT_EXEC ProtFlags = 0x4 | ||
) | ||
|
||
type MapFlags uint | ||
|
||
const ( | ||
MAP_SHARED = 0x1 | ||
MAP_PRIVATE = 0x2 | ||
MAP_FIXED = 0x10 | ||
MAP_ANONYMOUS = 0x20 | ||
MAP_GROWSDOWN = 0x100 | ||
MAP_LOCKED = 0x2000 | ||
MAP_NONBLOCK = 0x10000 | ||
MAP_NORESERVE = 0x4000 | ||
MAP_POPULATE = 0x8000 | ||
MAP_SHARED MapFlags = 0x1 | ||
MAP_PRIVATE MapFlags = 0x2 | ||
MAP_FIXED MapFlags = 0x10 | ||
MAP_ANONYMOUS MapFlags = 0x20 | ||
MAP_GROWSDOWN MapFlags = 0x100 | ||
MAP_LOCKED MapFlags = 0x2000 | ||
MAP_NONBLOCK MapFlags = 0x10000 | ||
MAP_NORESERVE MapFlags = 0x4000 | ||
MAP_POPULATE MapFlags = 0x8000 | ||
) | ||
|
||
type SyncFlags uint | ||
|
||
const ( | ||
MS_SYNC = 0x4 | ||
MS_ASYNC = 0x1 | ||
MS_INVALIDATE = 0x2 | ||
MS_SYNC SyncFlags = 0x4 | ||
MS_ASYNC SyncFlags = 0x1 | ||
MS_INVALIDATE SyncFlags = 0x2 | ||
) | ||
|
||
type AdviseFlags uint | ||
|
||
const ( | ||
MADV_NORMAL = 0x0 | ||
MADV_RANDOM = 0x1 | ||
MADV_SEQUENTIAL = 0x2 | ||
MADV_WILLNEED = 0x3 | ||
MADV_DONTNEED = 0x4 | ||
MADV_REMOVE = 0x9 | ||
MADV_DONTFORK = 0xa | ||
MADV_DOFORK = 0xb | ||
MADV_NORMAL AdviseFlags = 0x0 | ||
MADV_RANDOM AdviseFlags = 0x1 | ||
MADV_SEQUENTIAL AdviseFlags = 0x2 | ||
MADV_WILLNEED AdviseFlags = 0x3 | ||
MADV_DONTNEED AdviseFlags = 0x4 | ||
MADV_REMOVE AdviseFlags = 0x9 | ||
MADV_DONTFORK AdviseFlags = 0xa | ||
MADV_DOFORK AdviseFlags = 0xb | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.