2021-04-25 11:08:48 +00:00
|
|
|
From d42dbc871f149f658b6c3379bbc531efe427253b Mon Sep 17 00:00:00 2001
|
2020-09-04 19:21:25 +00:00
|
|
|
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
|
|
|
|
Date: Sun, 30 Aug 2020 18:02:28 +0200
|
2021-04-25 11:08:48 +00:00
|
|
|
Subject: [PATCH] gcc-go: Fix st_{a,m,c}tim fields in generated sysinfo.go
|
2020-09-04 19:21:25 +00:00
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
There are more than one st_{a,m,c}tim fields in struct stat on time64 machines.
|
|
|
|
|
|
|
|
Run the Go-isation on all of them.
|
|
|
|
|
|
|
|
Taken from Adélie Linux.
|
|
|
|
---
|
|
|
|
libgo/mksysinfo.sh | 6 +++---
|
|
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
|
|
|
|
index bd2ba32cba1..972e2c379bc 100755
|
|
|
|
--- a/libgo/mksysinfo.sh
|
|
|
|
+++ b/libgo/mksysinfo.sh
|
|
|
|
@@ -510,9 +510,9 @@ fi | sed -e 's/type _stat64/type Stat_t/' \
|
|
|
|
-e 's/st_size/Size/' \
|
|
|
|
-e 's/st_blksize/Blksize/' \
|
|
|
|
-e 's/st_blocks/Blocks/' \
|
|
|
|
- -e 's/st_atim/Atim/' \
|
|
|
|
- -e 's/st_mtim/Mtim/' \
|
|
|
|
- -e 's/st_ctim/Ctim/' \
|
|
|
|
+ -e 's/st_atim/Atim/g' \
|
|
|
|
+ -e 's/st_mtim/Mtim/g' \
|
|
|
|
+ -e 's/st_ctim/Ctim/g' \
|
|
|
|
-e 's/\([^a-zA-Z0-9_]\)_timeval\([^a-zA-Z0-9_]\)/\1Timeval\2/g' \
|
|
|
|
-e 's/\([^a-zA-Z0-9_]\)_timespec_t\([^a-zA-Z0-9_]\)/\1Timespec\2/g' \
|
|
|
|
-e 's/\([^a-zA-Z0-9_]\)_st_timespec_t\([^a-zA-Z0-9_]\)/\1StTimespec\2/g' \
|
2020-11-13 10:30:52 +00:00
|
|
|
--
|
2021-03-28 18:49:36 +00:00
|
|
|
2.31.0
|
2020-11-13 10:30:52 +00:00
|
|
|
|