Tornado Reference : Tornado Utilities
makeStatTbl - make a table of status values
makeStatTbl hdir [...]
This tool creates an array of type SYMBOL that contains the names and values of all the status codes defined in the .h files in the specified directory(s). All status codes must be prefixed with "S_" to be included in this table, with the exception of status codes in the UNIX-compatible header file errno.h. In each hdir there must be a *ModNum.h file which defines the module numbers, e.g., "M_". The generated code is written to standard output.
The symbol array is accessible through the global variable statTbl. The array contains statTblSize elements. These are the only external declarations in the generated code.
This tool's primary use is for creating the VxWorks status table used by printErrno( ), but may be used by applications as well. For an example, see $WIND_BASE/target/config/all/statTbl.c, which is generated by this tool from $WIND_BASE/target/h/*.
hdir/*ModNum.h module number file for each h directory symLib.h symbol header file