| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 3: Basic Library Functions Oracle Solaris 11 Information Library |
enable_extended_FILE_stdio(3C)
posix_spawnattr_getschedparam(3C)
posix_spawnattr_getschedpolicy(3C)
posix_spawnattr_getsigdefault(3C)
posix_spawnattr_getsigignore_np(3C)
posix_spawnattr_getsigmask(3C)
posix_spawnattr_setschedparam(3C)
posix_spawnattr_setschedpolicy(3C)
posix_spawnattr_setsigdefault(3C)
posix_spawnattr_setsigignore_np(3C)
posix_spawnattr_setsigmask(3C)
posix_spawn_file_actions_addclose(3C)
posix_spawn_file_actions_addclosefrom_np(3C)
posix_spawn_file_actions_adddup2(3C)
posix_spawn_file_actions_addopen(3C)
posix_spawn_file_actions_destroy(3C)
posix_spawn_file_actions_init(3C)
pthread_attr_getdetachstate(3C)
pthread_attr_getinheritsched(3C)
pthread_attr_getschedparam(3C)
pthread_attr_getschedpolicy(3C)
pthread_attr_setdetachstate(3C)
pthread_attr_setinheritsched(3C)
pthread_attr_setschedparam(3C)
pthread_attr_setschedpolicy(3C)
pthread_barrierattr_destroy(3C)
pthread_barrierattr_getpshared(3C)
pthread_barrierattr_setpshared(3C)
pthread_condattr_getpshared(3C)
pthread_condattr_setpshared(3C)
pthread_cond_reltimedwait_np(3C)
pthread_key_create_once_np(3C)
pthread_mutexattr_getprioceiling(3C)
pthread_mutexattr_getprotocol(3C)
pthread_mutexattr_getpshared(3C)
pthread_mutexattr_getrobust(3C)
pthread_mutexattr_setprioceiling(3C)
pthread_mutexattr_setprotocol(3C)
pthread_mutexattr_setpshared(3C)
pthread_mutexattr_setrobust(3C)
pthread_mutex_getprioceiling(3C)
pthread_mutex_reltimedlock_np(3C)
pthread_mutex_setprioceiling(3C)
pthread_rwlockattr_destroy(3C)
pthread_rwlockattr_getpshared(3C)
pthread_rwlockattr_setpshared(3C)
pthread_rwlock_reltimedrdlock_np(3C)
pthread_rwlock_reltimedwrlock_np(3C)
pthread_rwlock_timedrdlock(3C)
pthread_rwlock_timedwrlock(3C)
rctlblk_get_enforced_value(3C)
- allocate and deallocate process handles for libc_db
cc [flag... ]file... -lc_db [library... ]#include <proc_service.h>#include <thread_db.h>td_err_etd_ta_new(const struct ps_prochandle *ph_p,td_thragent_t **ta_pp);
td_err_etd_ta_delete(const td_thragent_t *ta_p);
td_err_etd_ta_get_ph(const td_thragent_t *ta_p,struct ps_prochandle **ph_pp);
Thetd_ta_new() function registers a target process withlibc_db(3LIB) and allocates aninternal process handle of typetd_thragent_t for this target process. Subsequentcalls tolibc_db can use this handle to refer to this targetprocess.
There are actually two process handles, an internal process handle assignedbylibc_db and an external process handle assigned by thelibc_db client.There is a one-to-one correspondence between the two handles. When theclient calls alibc_db function, it uses the internal process handle. Whenlibc_db calls one of the client-provided routines listed inproc_service(3PROC), it uses theexternal process handle.
Theph argument is the external process handle thatlibc_db should useto identify this target process to the controlling process when it callsroutines in the imported interface.
If this call is successful, the value of the newly allocatedtd_thragent_thandle is returned in *ta_pp. Thetd_ta_delete() function deregisters a targetprocess withlibc_db, which deallocates its internal process handle and frees any otherresourceslibc_db has acquired with respect to the target process. Theta_pargument specifies the target process to be deregistered.
Thetd_ta_get_ph() function returns in *ph_pp the external process handle that correspondsto the internal process handleta_p. This is useful for checking internalconsistency.
The call completed successfully.
ANULL external process handle was passed totd_ta_new().
Theta_pp argument isNULL or an internal error occurred.
A call to one of the imported interface routines failed.
Memory allocation failure.
The target process does not appear to be multithreaded.
Seeattributes(5) for description of the following attributes:
|
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |