Commit 42ee8204 by Ian Lance Taylor

mksysinfo: remove incorrect quotes in st_fsid handling for Hurd

    
    Also stop converting st_dev on Hurd; it shouldn't appear, but if it
    somehow does we don't want to convert it.
    
    Reviewed-on: https://go-review.googlesource.com/c/161961

From-SVN: r268785
parent 0df9962a
9b66264ed6adcf3fd215dbfd125c12b022b7280e fc8aa5a46433d6ecba9fd1cd0bee4290c314ca06
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -486,9 +486,9 @@ grep '^type _st_timespec ' gen-sysinfo.go | \ ...@@ -486,9 +486,9 @@ grep '^type _st_timespec ' gen-sysinfo.go | \
# Special treatment of struct stat st_dev for GNU/Hurd # Special treatment of struct stat st_dev for GNU/Hurd
# /usr/include/i386-gnu/bits/stat.h: #define st_dev st_fsid # /usr/include/i386-gnu/bits/stat.h: #define st_dev st_fsid
fsid_to_dev= st_dev='-e s/st_dev/Dev/'
if grep 'define st_dev st_fsid' gen-sysinfo.go > /dev/null 2>&1; then if grep 'define st_dev st_fsid' gen-sysinfo.go > /dev/null 2>&1; then
fsid_to_dev="-e 's/st_fsid/Dev/'" st_dev='-e s/st_fsid/Dev/'
fi fi
# The stat type. # The stat type.
...@@ -500,8 +500,7 @@ else ...@@ -500,8 +500,7 @@ else
grep '^type _stat ' gen-sysinfo.go grep '^type _stat ' gen-sysinfo.go
fi | sed -e 's/type _stat64/type Stat_t/' \ fi | sed -e 's/type _stat64/type Stat_t/' \
-e 's/type _stat/type Stat_t/' \ -e 's/type _stat/type Stat_t/' \
-e 's/st_dev/Dev/' \ ${st_dev} \
${fsid_to_dev} \
-e 's/st_ino/Ino/g' \ -e 's/st_ino/Ino/g' \
-e 's/st_nlink/Nlink/' \ -e 's/st_nlink/Nlink/' \
-e 's/st_mode/Mode/' \ -e 's/st_mode/Mode/' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment