diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-09-06 09:17:57 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-09-06 11:12:11 +0200 |
commit | 26ffb69399752d6b2c1ea93ac8c6cf7e3d178c02 (patch) | |
tree | e57565bc6a92510590e50c3c4788355ac0d1c030 /tests/monads.scm | |
parent | fea1422e273ba5ca7640ecbbfbf352703ef7cda8 (diff) | |
download | gnu-guix-26ffb69399752d6b2c1ea93ac8c6cf7e3d178c02.tar gnu-guix-26ffb69399752d6b2c1ea93ac8c6cf7e3d178c02.tar.gz |
syscalls: Use #:return-errno? when it is available.
* guix/build/syscalls.scm (errno): Do not export.
(syscall->procedure): Change to return a procedure that returns both the
value and errno. Use #:return-errno? where available.
(mount, umount, swapon, swapoff, mkdtemp!, fdatasync, statfs)
(clone, setns, pivot-root, fcntl-flock, network-interface-names)
(network-interface-flags, set-network-interface-flags)
(set-network-interface-address, network-interface-address):
(network-interfaces, tcgetattr, tcsetattr, terminal-window-size): Adjust
accordingly using 'let-values'.
Diffstat (limited to 'tests/monads.scm')
0 files changed, 0 insertions, 0 deletions