diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2025-10-21 23:22:24 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-10-30 16:13:03 +0900 |
| commit | e1994a021437b3fd73089c08d7e8db876fad698d (patch) | |
| tree | 4c277554d2167559e9325afc191c53e262733918 /gnu/packages/librewolf.scm | |
| parent | 36a90a1a044e9e141da71f6ff9c7fcf68bcf3016 (diff) | |
syscalls: Add mmap support.
* guix/build/syscalls.scm (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC)
(PROT_SEM, MAP_SHARED, MAP_PRIVATE, MAP_FAILED)
(MS_ASYNC, MS_INVALIDATE, MS_SYNC)
(%mmap-guardian, %unmapped-bytevectors): New variables.
(unmapped-bytevector?, pump-mmap-guardian, %mmap, mmap, %munmap, munmap)
(%msync, msync): New procedures.
* guix/build/io.scm: New file.
* Makefile.am: Register it.
* tests/syscalls.scm (strace-output): New variable.
("mmap and munmap", "file->bytevector, reading", "file->bytevector, writing")
("manual munmap does not lead to double free"): New tests.
Change-Id: I19ec687899eda635559e91200dd8d98669b0e35f
Diffstat (limited to 'gnu/packages/librewolf.scm')
0 files changed, 0 insertions, 0 deletions
