3 print "#include <mach/error.h>\n#include <errorlib.h>";
4 print "#define static static const"
5 nsubs = split(subsys, subs);
6 for (sub in subs) printf "#includes \"%s\"\n", sub;
8 static const struct error_system __mach_error_systems[err_max_system + 1] =";
12 for (i = 1; i <= NF; ++i)
13 if ($i ~ /err_[a-z0-9A-Z_]+_sub/) {
14 sub = substr ($i, 0, length ($i) - 4);
15 printf " [err_get_system (%s)] = { errlib_count (%s),\n", $i, sub;
16 printf " \"(system %s) error with unknown subsystem\", %s },\n",
24 const int __mach_error_system_count = errlib_count (__mach_error_systems);";