summaryrefslogtreecommitdiff
path: root/guix/build/syscalls.scm
AgeCommit message (Collapse)Author
2014-09-22syscalls: Adjust /proc/net/dev parser for old kernels.Ludovic Courtès
* guix/build/syscalls.scm (%interface-line): Remove whitespace in rest pattern. (There's no extra whitespace after the colon with Linux 2.6.32.)
2014-09-18syscalls: Add 'swapon' and 'swapoff'.Ludovic Courtès
* guix/build/syscalls.scm (swapon, swapoff): New procedures. * tests/syscalls.scm ("swapon, ENOENT/EPERM", "swapoff, EINVAL/EPERM"): New tests.
2014-09-14syscalls: Add 'all-network-interfaces'.Ludovic Courtès
* guix/build/syscalls.scm (network-interfaces): Update docstring. (%interface-line): New variable. (all-network-interfaces): New procedure. * tests/syscalls.scm ("all-network-interfaces"): New test. ("network-interfaces"): Change to make sure the result is a subset of (all-network-interfaces).
2014-09-14syscalls: Add 'network-interface-flags'.Ludovic Courtès
* guix/build/syscalls.scm (SIOCGIFFLAGS, IFF_UP, IFF_BROADCAST, IFF_LOOPBACK, IF_NAMESIZE): New variables. (network-interface-flags, loopback-network-interface?): New procedures. * tests/syscalls.scm ("network-interface-flags", "loopback-network-interface?"): New tests.
2014-09-14syscalls: Add 'network-interfaces'.Ludovic Courtès
* guix/build/syscalls.scm (SIOCGIFCONF, ifconf-struct, ifreq-struct-size): New variables. (%ioctl, bytevector->string-list, network-interfaces): New procedures. * tests/syscalls.scm ("network-interfaces"): New test.
2014-05-14syscalls: Add 'processes' to list all the live processes.Ludovic Courtès
* guix/build/syscalls.scm (kernel?, processes): New procedures.
2014-05-10Add (guix build syscalls).Ludovic Courtès
* guix/build/syscalls.scm, tests/syscalls.scm: New files. * Makefile.am (MODULES): Add guix/build/syscalls.scm. (SCM_TESTS): Add tests/syscalls.scm. * guix/utils.scm (%libc-errno-pointer, errno): Remove; take from (guix build syscalls).