<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix/tests/syscalls.scm, branch python-team</title>
<subtitle>Transactional package manager, declarative GNU/Linux distribution, reproducible deployment tool, and more! https://guix.gnu.org</subtitle>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/'/>
<entry>
<title>Revert "syscalls: Add mmap support."</title>
<updated>2025-10-30T07:19:51+00:00</updated>
<author>
<name>Maxim Cournoyer</name>
<email>maxim@guixotic.coop</email>
</author>
<published>2025-10-30T07:19:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=3ae5c9f2a78ce85beceb7467479c741e4c046830'/>
<id>3ae5c9f2a78ce85beceb7467479c741e4c046830</id>
<content type='text'>
This reverts commit e1994a021437b3fd73089c08d7e8db876fad698d.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit e1994a021437b3fd73089c08d7e8db876fad698d.
</pre>
</div>
</content>
</entry>
<entry>
<title>syscalls: Add mmap support.</title>
<updated>2025-10-30T07:13:03+00:00</updated>
<author>
<name>Maxim Cournoyer</name>
<email>maxim@guixotic.coop</email>
</author>
<published>2025-10-21T14:22:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=e1994a021437b3fd73089c08d7e8db876fad698d'/>
<id>e1994a021437b3fd73089c08d7e8db876fad698d</id>
<content type='text'>
* 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-&gt;bytevector, reading", "file-&gt;bytevector, writing")
("manual munmap does not lead to double free"): New tests.

Change-Id: I19ec687899eda635559e91200dd8d98669b0e35f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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-&gt;bytevector, reading", "file-&gt;bytevector, writing")
("manual munmap does not lead to double free"): New tests.

Change-Id: I19ec687899eda635559e91200dd8d98669b0e35f
</pre>
</div>
</content>
</entry>
<entry>
<title>build/syscalls: Introduce new safe-clone and use it.</title>
<updated>2025-10-29T02:34:28+00:00</updated>
<author>
<name>Maxim Cournoyer</name>
<email>maxim@guixotic.coop</email>
</author>
<published>2025-10-17T14:12:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=1eccea7ffb7eac43670d5fd76e8afa8ecfe6b0b9'/>
<id>1eccea7ffb7eac43670d5fd76e8afa8ecfe6b0b9</id>
<content type='text'>
* guix/build/syscalls.scm (without-automatic-finalization): Accept multiple
expressions.
(without-garbage-collection): New syntax.
(without-threads): Likewise.
(ensure-signal-delivery-thread, safe-clone): New procedures.
* tests/syscalls.scm: ("clone and unshare triggers EINVAL")
("safe-clone and unshare succeeds"): New tests.
* gnu/build/linux-container.scm (run-container): Adjust to use 'safe-clone'.

Relates-to: #1169
Change-Id: I044c11a899e24e547a7aed97f30c8e7250ab5363
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/build/syscalls.scm (without-automatic-finalization): Accept multiple
expressions.
(without-garbage-collection): New syntax.
(without-threads): Likewise.
(ensure-signal-delivery-thread, safe-clone): New procedures.
* tests/syscalls.scm: ("clone and unshare triggers EINVAL")
("safe-clone and unshare succeeds"): New tests.
* gnu/build/linux-container.scm (run-container): Adjust to use 'safe-clone'.

Relates-to: #1169
Change-Id: I044c11a899e24e547a7aed97f30c8e7250ab5363
</pre>
</div>
</content>
</entry>
<entry>
<title>syscalls: Add ‘unshare’.</title>
<updated>2025-04-20T16:50:51+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2025-03-25T15:51:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=c990405607f3692420ed94e75a7046feff3e28ce'/>
<id>c990405607f3692420ed94e75a7046feff3e28ce</id>
<content type='text'>
* guix/build/syscalls.scm (unshare): New procedure.

Change-Id: I344273b8bdeaa9366334e6e20ee7efc37eb6c8f7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/build/syscalls.scm (unshare): New procedure.

Change-Id: I344273b8bdeaa9366334e6e20ee7efc37eb6c8f7
</pre>
</div>
</content>
</entry>
<entry>
<title>syscalls: Remove wrong syscall ID for ‘kexec_load_file’ on i686.</title>
<updated>2025-01-07T16:44:12+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2025-01-06T11:05:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=410a359d4ac696cb61682dd6cc903319ca295646'/>
<id>410a359d4ac696cb61682dd6cc903319ca295646</id>
<content type='text'>
Fixes &lt;https://issues.guix.gnu.org/75205&gt;.

* guix/build/syscalls.scm (kexec-load-file): Remove syscall ID for i686.
* tests/syscalls.scm ("kexec-load-file"): Accept ENOSYS in addition to
EPERM.

Reported-by: Dariqq &lt;dariqq@posteo.net&gt;
Change-Id: I83fe25636addb57533ed88cbfb40107d265b13a7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes &lt;https://issues.guix.gnu.org/75205&gt;.

* guix/build/syscalls.scm (kexec-load-file): Remove syscall ID for i686.
* tests/syscalls.scm ("kexec-load-file"): Accept ENOSYS in addition to
EPERM.

Reported-by: Dariqq &lt;dariqq@posteo.net&gt;
Change-Id: I83fe25636addb57533ed88cbfb40107d265b13a7
</pre>
</div>
</content>
</entry>
<entry>
<title>syscalls: Add ‘kexec-load-file’.</title>
<updated>2024-12-28T21:32:38+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2024-12-19T14:51:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=5c9029dc79027a156aceb86b38d9fd9abb3cdaa4'/>
<id>5c9029dc79027a156aceb86b38d9fd9abb3cdaa4</id>
<content type='text'>
* guix/build/syscalls.scm (string-&gt;utf-8/nul-terminated)
(kexec-load-file): New procedures.
* tests/syscalls.scm ("kexec-load-file"): New test.

Change-Id: I3724226a14ecc07f346e77519fb5b0591096c7f6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/build/syscalls.scm (string-&gt;utf-8/nul-terminated)
(kexec-load-file): New procedures.
* tests/syscalls.scm ("kexec-load-file"): New test.

Change-Id: I3724226a14ecc07f346e77519fb5b0591096c7f6
</pre>
</div>
</content>
</entry>
<entry>
<title>syscalls: Add ‘mode’ parameter to ‘lock-file’.</title>
<updated>2024-08-20T22:52:38+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2024-07-16T09:01:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=96cd163c14e68c66c6a4cf0b18261fc454f8c1ba'/>
<id>96cd163c14e68c66c6a4cf0b18261fc454f8c1ba</id>
<content type='text'>
* guix/build/syscalls.scm (lock-file): Add ‘mode’ parameter and honor it.
* tests/syscalls.scm ("lock-file + unlock-file"): New test.

Change-Id: I113fb4a8b35dd8782b9c0991574e39a4b4393333
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/build/syscalls.scm (lock-file): Add ‘mode’ parameter and honor it.
* tests/syscalls.scm ("lock-file + unlock-file"): New test.

Change-Id: I113fb4a8b35dd8782b9c0991574e39a4b4393333
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Skip ‘terminal-string-width’ test on encodings other than UTF-8.</title>
<updated>2024-05-13T14:31:35+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2024-05-13T14:30:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=7ca9809cdbfe326294a5d8c64b4b8c59d0e76bea'/>
<id>7ca9809cdbfe326294a5d8c64b4b8c59d0e76bea</id>
<content type='text'>
* tests/syscalls.scm ("terminal-string-width Japanese"): Skip when the
encoding of (current-output-port) is not UTF-8.

Reported-by: Ashvith Shetty &lt;ashvithshetty10@gmail.com&gt;
Change-Id: Ic284dd088d6b148d6fcb457290a28fdb0838b83d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/syscalls.scm ("terminal-string-width Japanese"): Skip when the
encoding of (current-output-port) is not UTF-8.

Reported-by: Ashvith Shetty &lt;ashvithshetty10@gmail.com&gt;
Change-Id: Ic284dd088d6b148d6fcb457290a28fdb0838b83d
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Use ‘test-equal’ for ‘terminal-string-width’ tests.</title>
<updated>2023-11-25T15:29:25+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2023-11-23T14:22:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=e04f8fe4ea50f81847cad98a5dc6b32c27b81ea2'/>
<id>e04f8fe4ea50f81847cad98a5dc6b32c27b81ea2</id>
<content type='text'>
* tests/syscalls.scm ("terminal-string-width English")
("terminal-string-width Japanese"): Use ‘test-equal’.

Change-Id: I3791b2e4c9e35735db6c6da995da8ef0f9a71804
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/syscalls.scm ("terminal-string-width English")
("terminal-string-width Japanese"): Use ‘test-equal’.

Change-Id: I3791b2e4c9e35735db6c6da995da8ef0f9a71804
</pre>
</div>
</content>
</entry>
<entry>
<title>guix: syscalls: Add terminal-string-width.</title>
<updated>2023-11-11T10:07:27+00:00</updated>
<author>
<name>Julien Lepiller</name>
<email>julien@lepiller.eu</email>
</author>
<published>2023-08-26T05:59:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=fd11d7fbf8e0fcc61ff764dcc0ab737971afc55a'/>
<id>fd11d7fbf8e0fcc61ff764dcc0ab737971afc55a</id>
<content type='text'>
* guix/build/syscalls.scm (terminal-width): New procedure.
* tests/syscalls.scm: Add tests.

Change-Id: I6c2caa9fbaffb1e8f4b8933103399be970d5a8f3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/build/syscalls.scm (terminal-width): New procedure.
* tests/syscalls.scm: Add tests.

Change-Id: I6c2caa9fbaffb1e8f4b8933103399be970d5a8f3
</pre>
</div>
</content>
</entry>
</feed>
