syscalls: Use 'define-c-struct' for 'struct ifconf'.
commit9d9d0c9c982449b820eae98d0f2cfa115b618208
authorLudovic Courtès <ludo@gnu.org>
Wed, 16 Nov 2016 22:13:12 +0000 (16 23:13 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 16 Nov 2016 22:38:05 +0000 (16 23:38 +0100)
tree828405a52aba05cb6cb7e92bba4122a975f39d6c
parentf43714e62080f8bdf1ddb02672d26527ac3819ec
syscalls: Use 'define-c-struct' for 'struct ifconf'.

* guix/build/syscalls.scm (ifconf-struct): Remove.
(%ifconf-struct): New C struct.
(network-interface-names): Use 'make-bytevector' and 'write-ifconf!'
instead of 'make-c-struct', and 'read-ifconf' instead of
'parse-c-struct'.
guix/build/syscalls.scm