diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-07-25 13:06:01 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-07-25 14:43:45 +0200 |
commit | e7f5691d4540e2cbcbc9f22f8b593f15890057b3 (patch) | |
tree | 8428f0d6c6d255c684cc99ca8f26d7876f6f98f8 /tests/monads.scm | |
parent | 573b4c1ff3409fb4417ec676091f6bbc09219f19 (diff) | |
download | guix-e7f5691d4540e2cbcbc9f22f8b593f15890057b3.tar guix-e7f5691d4540e2cbcbc9f22f8b593f15890057b3.tar.gz |
syscalls: Add 'network-interfaces', which wraps libc's 'getifaddrs'.
Based on discussions with Rohan Prinja <rohan.prinja@gmail.com>.
* guix/build/syscalls.scm (<interface>): New record type.
(write-interface, values->interface, unfold-interface-list,
network-interfaces, free-ifaddrs): New procedures.
(ifaddrs): New C struct.
(%struct-ifaddrs-type, %sizeof-ifaddrs): New macros.
* tests/syscalls.scm ("network-interfaces returns one or more interfaces",
"network-interfaces returns \"lo\""): New tests.
Diffstat (limited to 'tests/monads.scm')
0 files changed, 0 insertions, 0 deletions