/usr/ccs/bin/lint [options] filesDetect bugs, portability problems, and other possible errors in the specified C programs. By default, lint uses definitions in the C library llib-lc.ln. If desired, output from .c files can be saved in "object files" having a .ln suffix. A second lint pass can be invoked on .ln files and libraries for further checking. lint also accepts the cc options -D, -I, and -U. It may accept additional cc options that are system-specific. See also Checking C Programs with lint, which is listed in the Bibliography. Note: this command checks programs written in ANSI C; use /usr/ucb/lint if you want to check programs written in pre-ANSI C. Note also that options -a, -b, -h, and -x have exactly the opposite meaning in the versions for BSD and System V.
-aIgnore long values assigned to variables that aren't long.
-bIgnore break statements that cannot be reached.
-cDon't execute the second pass of lint; save output from first pass in .ln files. (Same as BSD -i option.)
-FPrint files using full pathname, not just the filename.
-hDon't test for bugs, bad style, or extraneous information.
-kReenable warnings that are normally suppressed by directive /* LINTED [message] */, and print the additional message (if specified).
-LdirSearch for lint libraries in directory dir before searching standard directories.
-lxUse library llib-lx.ln in addition to llib-lc.ln.
-mIgnore extern declarations that could be static.
-nDo not check for compatibility.
-o libCreate a lint library named llib-l.lib.ln from the output of the first pass of lint.
-pCheck for portability to variants of C.
-RfilePlace .ln output (from a .c file) in file, for use by cxref.
-sProduce short (one-line) diagnostics.
-uIgnore functions or external variables that are undefined or unused.
-vIgnore unused arguments within functions; same as specifying the directive /* ARGSUSED */.
-VPrint product name and release on standard error.
-WfileSame as -R, except file is prepared for cflow.
-xIgnore unused variables referred to by extern declarations.
-ySame as using the directive /* LINTLIBRARY */, which is the same as supplying options -v and -x.