guix-devel/guix
Ludovic Courtès e7f5691d45 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.
2015-07-25 14:43:45 +02:00
..
build syscalls: Add 'network-interfaces', which wraps libc's 'getifaddrs'. 2015-07-25 14:43:45 +02:00
build-system
import
scripts
base32.scm
base64.scm
build-system.scm
config.scm.in
cpio.scm
cvs-download.scm
derivations.scm
download.scm
elf.scm
ftp-client.scm
gcrypt.scm
gexp.scm
git-download.scm
gnu-maintenance.scm
gnupg.scm
hash.scm
http-client.scm
licenses.scm
monad-repl.scm
monads.scm
nar.scm
packages.scm
pk-crypto.scm
pki.scm
profiles.scm
records.scm
search-paths.scm
serialization.scm
sets.scm
store.scm
svn-download.scm
tests.scm
ui.scm
utils.scm