pthdb_pthread_sigmask, pthdb_pthread_sigpend or pthdb_pthread_sigwait Subroutine

Purpose

Returns the pthread signals pending, the signals blocked, the signals received, and awaited signals.

Library

pthread debug library (libpthdebug.a)

Syntax

#include <sys/pthdebug.h>

int pthdb_pthread_sigmask (pthdb_session_t  session,
                           pthdb_pthread_t  pthread,
                           sigset_t        * sigsetp)
int pthdb_pthread_sigpend (pthdb_session_t  session,
                           pthdb_pthread_t  pthread,
                           sigset_t        * sigsetp)
int pthdb_pthread_sigwait (pthdb_session_t  session,
                           pthdb_pthread_t   pthread,
                           sigset_t        * sigsetp)

Description

pthdb_pthread_sigmask reports the signals that the pthread has blocked.

pthdb_pthread_sigpend reports the signals that the pthread has pending.

pthdb_pthread_sigwait reports the signals that the pthread is waiting on.

Parameters

Item Description
session Session handle.
pthread Pthread handle
sigsetp Signal set buffer.

Return Values

If successful, these functions return PTHDB_SUCCESS. Otherwise, an error code is returned.

Error Code

Item Description
PTHDB_BAD_SESSION Invalid session handle.
PTHDB_BAD_PTHREAD Invalid pthread handle.
PTHDB_BAD_POINTER Invalid buffer pointer.
PTHDB_CALLBACK Debugger call back error.
PTHDB_INTERNAL Error in library.