Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages
XOLINT(1) FreeBSD General Commands Manual XOLINT(1)

detect errors in programs using xo_emit(3)

xolint [
] [
-C <flags>
] [
] [
] [
] [
] [
] [
] [

xolint is a tool for reporting common mistakes in format strings in source code that invokes xo_emit(3). It allows these errors to be diagnosed at build time, rather than waiting until runtime.
xolint takes one or more C files as arguments, and reports error, warning, or informational messages as needed.
Invoke 'cpp' against the input file
Flags that are passed to 'cpp'
Enable debug output
Generate documentation for all xolint messages
Generate a table of xo_info_t structures.
Print the offending lines after the error message is displayed
Do not report errors, but instead print a complete list of all field names, sorted alphabetically. The output can help spot inconsistencies and spelling errors.
Extract samples from xolint, suitable for internal testing.
The output message contains the source filename and line number, the class of the message, the message, and, if -p is given, the line that contains the error:
    % xolint -t xolint.c 
    xolint.c: 16: error: anchor format should be "%d" 
    16         xo_emit("{[:/%s}");

libxo(3), xo_emit(3)

FreeBSD uses libxo version 0.6.1. Complete documentation can be found on github:
libxo lives on github as:
The latest release of libxo is available at:

The libxo library was added in FreeBSD 11.0.

Phil Shafer
December 4, 2014 FreeBSD 12.0-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.