About This Guide

Updated: April 19, 2023

These libraries provide QNX helpers, including helpers that assist with logging, string conversion, and number and type sizes.

QNX helpers provide functionality that developers often have to add to each project from scratch.

For example, to use slog2, a developer has to implement initialization for slog2 for each library individually. QNX helpers logging provides default settings and configuration that initialize slog2 and are available to any library that uses slog2 by simply specifying a QNX helpers logging context (see “Setting up QNX helpers logging”).

This table may help you find what you need:

To find out about: See:
Attribute helpers (GCC attribute macros) attr.h
Endianness-related helpers (e.g., endian macros for headers and static initialization) endian.h
Helpers related to the errno variable (e.g., functions that log an error message) error.h
IO helpers (perform tasks related to closing a file) io.h
Setting up and controlling QNX helpers logging log.h
Miscellaneous helpers (mark a variable as unused, determine the length of an array) misc.h
Initialize QNX helpers functionality qh.h
Size-related helpers (e.g., macros that contain the maximum length of a number of the specified type when printed) size.h
Helper functions related to strings (e.g., safely convert a string into a gid_t) string.h
Helper functions related to time (e.g., get the (adjusted) time from the clock with a specified ID) time.h