This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Identify items in QNX 4 programs requiring attention (QNX)
mig4nto [-qsr] [-o output_directory] [file...]
The mig4nto utility helps you identify areas in your programs that will need attention during the migration process. This utility copies source files, then inserts comments above each source line that contains a function name or C preprocessor manifest name requiring attention. These comments include brief suggestions as to a course of action.
The marked-up files are written to a directory other than the one from which their corresponding source files were read. You specify this directory with the -o option.
For each file it examines, the mig4nto utility also provides a summary report listing the items in the file that require attention and the lines on which these items are found. If you want to generate this summary report without also generating annotated program files, then specify the -r option.
While processing files, mig4nto normally keeps you informed of its progress. But if you want to run the utility in the background, you can specify the -q option to prevent status messages from being displayed.
For each input file, mig4nto creates an output file in the directory specified by the -o option. Each source line containing items that require attention is preceded by a special comment line or lines.
Annotate all the C source files in the current directory, and place the output files in the /nto/src directory.
mig4nto -o /nto/src *.c
Annotate all the C source files in the current directory, and place the output in the /nto/src directory. Place the summary report in the report file.
mig4nto -o /nto/src -s *.c > report
If a file can't be opened for reading or writing, or if an I/O error occurs while reading or writing a file, the output file is removed and processing is continued with the next file. The final exit status will be greater than one. |