PERFORCE change 104222 for review
Todd Miller
millert at FreeBSD.org
Wed Aug 16 13:37:00 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=104222
Change 104222 by millert at millert_macbook on 2006/08/16 13:36:47
Do not assume that all typedefs in mac_policy.h refer to
entrypoints.
Affected files ...
.. //depot/projects/trustedbsd/sedarwin8/policies/count/Makefile#2 edit
.. //depot/projects/trustedbsd/sedarwin8/policies/stacktrace/module/Makefile#2 edit
.. //depot/projects/trustedbsd/sedarwin8/policies/stub/Makefile#2 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin8/policies/count/Makefile#2 (text+ko) ====
@@ -16,7 +16,7 @@
policy.in: $(EXPORT_HDRS)/security/security/mac_policy.h
@cpp $(DARWIN_HDRS) -P $< \
| grep -v ^\$ \
- | awk 'RS=";" { if ($$1 == "typedef") { print $$0";" } }' \
+ | awk 'RS=";" { if ($$1 == "typedef" && $$0 ~ /\(/) { print $$0";" } }' \
| tr -d "\n\t" \
| tr ";" "\n" \
| sed -e 's/typedef //g' \
==== //depot/projects/trustedbsd/sedarwin8/policies/stacktrace/module/Makefile#2 (text+ko) ====
@@ -18,7 +18,7 @@
policy.in: $(EXPORT_HDRS)/security/security/mac_policy.h
@cpp $(DARWIN_HDRS) -P $< \
| grep -v ^\$ \
- | awk 'RS=";" { if ($$1 == "typedef") { print $$0";" } }' \
+ | awk 'RS=";" { if ($$1 == "typedef" && $$0 ~ /\(/) { print $$0";" } }' \
| tr -d "\n\t" \
| tr ";" "\n" \
| sed -e 's/typedef //g' \
==== //depot/projects/trustedbsd/sedarwin8/policies/stub/Makefile#2 (text+ko) ====
@@ -15,7 +15,7 @@
policy.in: $(EXPORT_HDRS)/security/security/mac_policy.h
@cpp $(DARWIN_HDRS) -P $< \
| grep -v ^\$ \
- | awk 'RS=";" { if ($$1 == "typedef") { print $$0";" } }' \
+ | awk 'RS=";" { if ($$1 == "typedef" && $$0 ~ /\(/) { print $$0";" } }' \
| tr -d "\n\t" \
| tr ";" "\n" \
| sed -e 's/typedef //g' \
More information about the trustedbsd-cvs
mailing list