pthread_debug_cmd - Passes a list of pthread_debug commands to DECthreads.
DECthreads POSIX 1003.1c Library (libpthread.so)
Interfaces documented on this reference page conform to industry standards as follows:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
NULL-terminated pthread_debug command string to pass to DECthreads debug. Use semicolons to separate debug commands.
This routine passes a list of debugging commands to DECthreads. Each command (separated by a semicolon) is executed in sequence. Any output is written to standard output. This routine returns the status of the last specified operation in the command string when the final command (or Exit command) is executed.
To invoke the DECthreads debugger for interactive commands, use pthread_debug.
The following are two examples of listing commands in a call to this
pthread_debug_cmd("thread -b; mu -lq; cond -wq");
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows: Command successful. Last command was quit or exit No objects selected (for example, thread -br) Alternate success No privilege for command Invalid parameter on command Invalid object sequence number given Inconsistent state for operation Unable to complete due to internal corruption Invalid command options Missing command argument Invalid address Invalid command No command given Conflicting options Unimplemented feature
Manuals: Guide to DECthreads and Programmer's Guide