diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-04-25 16:47:23 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-04-25 23:27:09 +0200 |
commit | 785cfa8791b0d683830245f119ee6fd42e5356d3 (patch) | |
tree | 5b6046a7d3b2e488b3dc3a5bfe2f780a494309e7 /tests | |
parent | f77863a09eebf65299e734d27f1c5b96e9742f52 (diff) | |
download | guix-785cfa8791b0d683830245f119ee6fd42e5356d3.tar guix-785cfa8791b0d683830245f119ee6fd42e5356d3.tar.gz |
syscalls: 'define-c-struct' computes the struct size.
* guix/build/syscalls.scm (struct-alignment, struct-size): New macros.
(define-c-struct): Add 'size' parameter and honor it.
(sockaddr-in, sockaddr-in6, ifaddrs, winsize): Adjust accordingly.
(%struct-ifaddrs-type, %sizeof-ifaddrs, winsize-struct): Remove.
(terminal-window-size): Use 'make-bytevector' instead of 'make-c-struct'.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions