mksysinfo: Define MADV_ constants for madvise.

From-SVN: r184752
This commit is contained in:
Ian Lance Taylor 2012-03-01 17:22:29 +00:00
parent f34ce44b67
commit 116b061e74
1 changed files with 2 additions and 0 deletions

View File

@ -191,6 +191,8 @@ grep '^const _PROT_' gen-sysinfo.go | \
sed -e 's/^\(const \)_\(PROT_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
grep '^const _MAP_' gen-sysinfo.go | \
sed -e 's/^\(const \)_\(MAP_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
grep '^const _MADV_' gen-sysinfo.go | \
sed -e 's/^\(const \)_\(MADV_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
# Process status constants.
grep '^const _W' gen-sysinfo.go |