libgo: adjust NetBSD-specific types for stable syscall API
authorNikhil Benesch <nikhil.benesch@gmail.com>
Mon, 19 Oct 2020 02:07:34 +0000 (02:07 +0000)
committerIan Lance Taylor <iant@golang.org>
Tue, 20 Oct 2020 20:01:26 +0000 (13:01 -0700)
commit7cf256c3c8d9375fea7a0f02c128fa084ae53396
treee0b2c121b4537eff41fc44c5eac7520f95fef6eb
parent52cb0c7b0e9eaa757c70a745f737b7393ec3137e
libgo: adjust NetBSD-specific types for stable syscall API

The backwards-compatibility guarantees of the syscall package
require some munging of the C API inferred by mksysinfo.sh.
Specifically, the RTM_RESOLVE constant must be added if it is
missing, and the stat_t struct must use the suffix "timespec"
rather than "tim" for its time-related fields.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/263519
gcc/go/gofrontend/MERGE
libgo/mksysinfo.sh