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
..
2015-06-24 18:05:03 +02:00
2015-05-19 16:09:58 +02:00
2014-02-21 23:49:52 +01:00
2015-04-13 00:02:59 +02:00
2015-06-24 18:05:03 +02:00
2014-03-31 23:34:20 +02:00
2015-06-24 22:47:59 +02:00
2015-01-11 23:50:01 +01:00
2014-09-29 19:30:28 -04:00