tail head cat sleep
QR code linking to this page

Manual Pages  — LIBXO


xo_message – emit messages in multiple output styles





#include <libxo/xo.h>

xo_message(const char *fmt, ...);

xo_message_e(const char *fmt, ...);

xo_message_c(int code, const char *fmt, ...);

xo_message_hc(xo_handle_t *xop, int code, const char *fmt, ...);

xo_message_hcv(xo_handle_t *xop, int code, const char *fmt, va_list vap);


xo_message generates text message which lack any sort of structure. These functions should not be used under normal conditions, since they completely defeat the value of using libxo. They are provided for scenarios when the output's content is genuinely unknown and unusable. It is used in converting programs where err/warn where not used, and error messages went to stdout, not stderr. Use of xo_message allows backwards compatibility with that output, but does not put the error in a useful form.

The xo_message function generates output strings using the printf-style format string and arguments provided. If the format string does not end in a newline, xo_message_e will appear a colon, a space, and the error associated with the current errno value. xo_message_c code parameter. xo_message_hc accepts a handle as opened by xo_create(3) and xo_message_hcv


xo_emit(3), libxo(3)


The libxo library first appeared in FreeBSD 11.0 .


libxo was written by Phil Shafer <Mt phil@freebsd.org>.

LIBXO (3) December 4, 2014

tail head cat sleep
QR code linking to this page

Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

"I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act."
— Ken Pier, Xerox PARC