aboutsummaryrefslogtreecommitdiff
path: root/tests/monads.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-09-06 09:17:57 +0200
committerLudovic Courtès <ludo@gnu.org>2016-09-06 11:12:11 +0200
commit26ffb69399752d6b2c1ea93ac8c6cf7e3d178c02 (patch)
treee57565bc6a92510590e50c3c4788355ac0d1c030 /tests/monads.scm
parentfea1422e273ba5ca7640ecbbfbf352703ef7cda8 (diff)
downloadgnu-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