slog2_reset()

QNX SDP8.0C Library ReferenceAPIDeveloper

Reset the state of slogger2 for the process

Synopsis:

#include <sys/slog2.h>

int slog2_reset( void );

Library:

libslog2

Use the -l slog2 option to qcc to link against this library.

Description:

The slog2_reset() function resets the state of slogger2 within the process. Use this function to unregister a buffer set that you registered with slog2_register().

CAUTION:
Don't use slog2c(), slog2fa(), slog2f(), vslog2f(), or vslog2fa() after using slog2_reset(). The slog2_reset() function unmaps all instances, which releases all buffer handles and triggers the SIGSEGV signal if one of the listed function tries to dereference the buffer pointer.

Returns:

0 for success, or -1 if an error occurred.

Classification:

QNX OS

Safety:
Cancellation pointNo
Signal handlerYes
ThreadYes
Page updated: