Files
l2/stdlib/mem.sl

15 lines
243 B
Plaintext
Raw Normal View History

2026-01-08 13:15:27 +01:00
import stdlib.sl
word alloc
2026-01-08 13:15:27 +01:00
0 # addr hint (NULL)
swap # size
3 # prot (PROT_READ | PROT_WRITE)
34 # flags (MAP_PRIVATE | MAP_ANON)
-1 # fd
0 # offset
mmap
end
2026-01-08 13:15:27 +01:00
word free
2026-01-08 13:15:27 +01:00
munmap drop
end