-sed 's/.*/p(&)/' /tmp/m.type |awk '
- /p\(CODE\)/ ||
- /p\(DIR\)/ ||
- /p\(FILE\)/ ||
- /p\(struct __CODE\)/ ||
- /p\(struct __fpstate\)/ ||
- /p\(struct __ptcb\)/ ||
- /p\(struct __siginfo\)/ ||
- /p\(struct __ucontext\)/ ||
- /p\(struct in6_mutinfo\)/ ||
- /p\(struct npttimeval\)/ { printf "//" }
- { print }' >>sizeof.c
+sort /tmp/m.type |uniq |awk '
+ /^struct __(CODE|fpstate|ptcb|siginfo|ucontext)$/ ||
+ /^(DIR|FILE|elf_fpxregset_t)$/ { printf "//" }
+ { print "p(" $0 ")" }' >>sizeof.c