aboutsummaryrefslogtreecommitdiffstats
path: root/sysparser
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-01-18 20:08:41 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-01-18 20:08:41 +0100
commit787f45346ad162ef2c55c7f6ebed39d091f940b2 (patch)
tree4173f3dcedc689604fdc6340e65f4f0307fccc04 /sysparser
parentea2e15278276ce547ea88e7b6a827c81cca6e9da (diff)
sys: improve cmsghdr description
Diffstat (limited to 'sysparser')
-rw-r--r--sysparser/lexer.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysparser/lexer.go b/sysparser/lexer.go
index 57a474cf8..80e6bbbe2 100644
--- a/sysparser/lexer.go
+++ b/sysparser/lexer.go
@@ -76,6 +76,8 @@ func Parse(in io.Reader) *Description {
switch {
case attr == "packed":
str.Packed = true
+ case strings.HasPrefix(attr, "align_ptr"):
+ str.Align = 8 // TODO: this must be target pointer size
case strings.HasPrefix(attr, "align_"):
a, err := strconv.ParseUint(attr[6:], 10, 64)
if err != nil {