Patchwork libgo patch committed: Define MADV_ constants for madvise

login
register
mail settings
Submitter Ian Taylor
Date March 1, 2012, 5:22 p.m.
Message ID <mcr62eokzhk.fsf@dhcp-172-18-216-180.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/144082/
State New
Headers show

Comments

Ian Taylor - March 1, 2012, 5:22 p.m.
This patch to libgo's mksysinfo shell script defines the MADV_ constants
use by the syscall.Madvise function.  Bootstrapped and ran Go testsuite
on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

Patch

diff -r 2af6279334e7 libgo/mksysinfo.sh
--- a/libgo/mksysinfo.sh	Thu Mar 01 09:10:52 2012 -0800
+++ b/libgo/mksysinfo.sh	Thu Mar 01 09:20:56 2012 -0800
@@ -191,6 +191,8 @@ 
   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 |