]>
git.saurik.com Git - apple/xnu.git/blob - libsyscall/xcodescripts/filter_mig.awk
3 # Usage: foo <template> <file>
4 # Searches through file for instances of 'kern_return_t $FOO'
5 # where $FOO is an line in the template file
6 # and prepends the first line in the template file.
8 # Example template format:
14 # BEGIN { print ARGV[1]; print ARGV[2] }
16 # In the first file, build array of lines
25 # In the second file, match kern_return_t <template>
26 # at the beginning of the line
27 # print the prefix line if found
31 if ($2 in templates
) {
36 # Pass through everything in the second file