Ludovic Courtès
ea98270443
syscalls: Add 'restart-on-EINTR'.
...
* guix/build/syscalls.scm (call-with-restart-on-EINTR): New procedure.
(restart-on-EINTR): New macro.
2015-05-22 11:51:12 +02:00
Ludovic Courtès
6944fdbdbd
syscalls: Add 'set-network-interface-up'.
...
* guix/build/syscalls.scm (set-network-interface-up): New procedure.
2015-05-17 23:20:59 +02:00
宋文武
9331ba5dd9
linux-boot: Make /etc/mtab a symlink to /proc/self/mounts.
...
Fixes <http://bugs.gnu.org/19491 >.
* gnu/build/linux-boot.scm (mount-root-file-system): Make /root/etc/mtab
a symlink to /proc/self/mounts.
* gnu/build/file-systems.scm (mount-file-system): Don't update /etc/mtab.
* guix/build/syscalls.scm (mount, umount): Have #:update-mtab? default to
#f.
2015-01-05 22:24:00 +08:00
Ludovic Courtès
c9bf64d6d7
syscalls: Add more procedures for network interfaces.
...
* guix/build/syscalls.scm (sizeof*, type-size, write-type, write-types,
read-type, read-types, define-c-struct): New macros.
(SIOCSIFFLAGS, SIOCGIFADDR, SIOCSIFADDR): New variables.
(sockaddr-in, sockaddr-in6): New C structs.
(write-socket-address!, read-socket-address,
set-network-interface-flags, set-network-interface-address,
network-interface-address, configure-network-interface): New
procedures.
2014-12-19 17:15:53 +01:00
Ludovic Courtès
cd4a3cb359
syscalls: Update /etc/mtab, not /etc/fstab.
...
* guix/build/syscalls.scm (remove-from-mtab): Replace "fstab" with
"mtab".
2014-11-14 00:41:01 +01:00
Ludovic Courtès
ccea821bef
syscalls: Add 'mount-points'.
...
* guix/build/syscalls.scm (mount-points): New procedure.
* tests/syscalls.scm ("mount-points"): New test.
2014-11-10 22:42:14 +01:00
Ludovic Courtès
8591fae4cf
syscalls: Adjust /proc/net/dev parser for old kernels.
...
* 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-22 21:12:26 +02:00
Ludovic Courtès
715fc9d44d
syscalls: Add 'swapon' and 'swapoff'.
...
* guix/build/syscalls.scm (swapon, swapoff): New procedures.
* tests/syscalls.scm ("swapon, ENOENT/EPERM", "swapoff, EINVAL/EPERM"):
New tests.
2014-09-18 20:19:56 +02:00
Ludovic Courtès
4d54785c69
syscalls: Add 'all-network-interfaces'.
...
* 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-14 23:49:02 +02:00
Ludovic Courtès
973eea3478
syscalls: Add 'network-interface-flags'.
...
* 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-14 23:49:02 +02:00
Ludovic Courtès
7585016f53
syscalls: Add 'network-interfaces'.
...
* 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-09-14 23:49:02 +02:00
Ludovic Courtès
17a4d34489
syscalls: Add 'processes' to list all the live processes.
...
* guix/build/syscalls.scm (kernel?, processes): New procedures.
2014-05-14 19:07:03 +02:00
Ludovic Courtès
29fa45f45d
Add (guix build syscalls).
...
* 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).
2014-05-10 22:55:34 +02:00