diff options
author | Ian Lance Taylor <iant@golang.org> | 2019-09-06 18:12:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-09-06 18:12:46 +0000 |
commit | aa8901e9bb0399d2c16f988ba2fe46eb0c0c5d13 (patch) | |
tree | 7e63b06d1eec92beec6997c9d3ab47a5d6a835be /libgo/mkrsysinfo.sh | |
parent | 920ea3b8ba3164b61ac9490dfdfceb6936eda6dd (diff) | |
download | gcc-aa8901e9bb0399d2c16f988ba2fe46eb0c0c5d13.tar.gz |
libgo: update to Go 1.13beta1 release
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/193497
From-SVN: r275473
Diffstat (limited to 'libgo/mkrsysinfo.sh')
-rwxr-xr-x | libgo/mkrsysinfo.sh | 8 |
1 files changed, 3 insertions, 5 deletions
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. |