-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|union) __(CODE|ptcb|siginfo|ucontext|sigjmp_buf|double_repr|float_repr)$/ ||
+ /^(DIR|FILE|elf_fpxregset_t|struct user_fpxregs_struct|Sg_io_vec)$/ { printf "//" }
+ { print "p(" $0 ")" }' >>sizeof.c