Implemented echo example
This commit is contained in:
9
lib/mem/alloc.q
Normal file
9
lib/mem/alloc.q
Normal file
@ -0,0 +1,9 @@
|
||||
import sys
|
||||
|
||||
alloc(length) {
|
||||
return sys.mmap(0, length, 3, 290)
|
||||
}
|
||||
|
||||
free(address, length) {
|
||||
return sys.munmap(address, length)
|
||||
}
|
Reference in New Issue
Block a user