From aa8901e9bb0399d2c16f988ba2fe46eb0c0c5d13 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 6 Sep 2019 18:12:46 +0000 Subject: libgo: update to Go 1.13beta1 release Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/193497 From-SVN: r275473 --- libgo/mkrsysinfo.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libgo/mkrsysinfo.sh') diff --git a/libgo/mkrsysinfo.sh b/libgo/mkrsysinfo.sh index f1aa7241cd6..0a5e29ed4ba 100755 --- a/libgo/mkrsysinfo.sh +++ b/libgo/mkrsysinfo.sh @@ -86,13 +86,11 @@ echo $timespec | \ -e 's/tv_sec *[a-zA-Z0-9_]*/tv_sec timespec_sec_t/' \ -e 's/tv_nsec *[a-zA-Z0-9_]*/tv_nsec timespec_nsec_t/' >> ${OUT} echo >> ${OUT} -echo "func (ts *timespec) set_sec(x int64) {" >> ${OUT} -echo " ts.tv_sec = timespec_sec_t(x)" >> ${OUT} +echo "func (ts *timespec) setNsec(ns int64) {" >> ${OUT} +echo " ts.tv_sec = timespec_sec_t(ns / 1e9)" >> ${OUT} +echo " ts.tv_nsec = timespec_nsec_t(ns % 1e9)" >> ${OUT} echo "}" >> ${OUT} echo >> ${OUT} -echo "func (ts *timespec) set_nsec(x int32) {" >> ${OUT} -echo " ts.tv_nsec = timespec_nsec_t(x)" >> ${OUT} -echo "}" >> ${OUT} # Define the epollevent struct. This needs special attention because # the C definition uses a union and is sometimes packed. -- cgit v1.2.1