Fixed incorrect const values
This commit is contained in:
parent
4dbfa80939
commit
d5bcf340e9
22 changed files with 93 additions and 92 deletions
|
@ -1,22 +0,0 @@
|
|||
import sys
|
||||
|
||||
alloc(length int) -> []byte {
|
||||
x := sys.mmap(0, length+8, prot.read|prot.write, map.private|map.anonymous)
|
||||
|
||||
if x < 0x1000 {
|
||||
return x
|
||||
}
|
||||
|
||||
store(x, 8, length)
|
||||
return x + 8
|
||||
}
|
||||
|
||||
const prot {
|
||||
read 0x1
|
||||
write 0x2
|
||||
}
|
||||
|
||||
const map {
|
||||
private 0x02
|
||||
anonymous 0x20
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue