JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
man pages section 3: Realtime Library Functions     Oracle Solaris 10 8/11 Information Library
search filter icon
search icon

Document Information

Preface

Realtime Library Functions

aiocancel(3AIO)

aio_cancel(3RT)

aio_error(3RT)

aio_fsync(3RT)

aioread(3AIO)

aio_read(3RT)

aio_return(3RT)

aio_suspend(3RT)

aiowait(3AIO)

aio_waitn(3RT)

aiowrite(3AIO)

aio_write(3RT)

clock_getres(3RT)

clock_gettime(3RT)

clock_nanosleep(3RT)

clock_settime(3RT)

door_bind(3DOOR)

door_call(3DOOR)

door_create(3DOOR)

door_cred(3DOOR)

door_info(3DOOR)

door_return(3DOOR)

door_revoke(3DOOR)

door_server_create(3DOOR)

door_ucred(3DOOR)

door_unbind(3DOOR)

door_xcreate(3DOOR)

fdatasync(3RT)

lio_listio(3RT)

mq_close(3RT)

mq_getattr(3RT)

mq_notify(3RT)

mq_open(3RT)

mq_receive(3RT)

mq_reltimedreceive_np(3RT)

mq_reltimedsend_np(3RT)

mq_send(3RT)

mq_setattr(3RT)

mq_timedreceive(3RT)

mq_timedsend(3RT)

mq_unlink(3RT)

nanosleep(3RT)

proc_service(3PROC)

ps_kill(3PROC)

ps_lcontinue(3PROC)

ps_lgetfpregs(3PROC)

ps_lgetregs(3PROC)

ps_lgetxregs(3PROC)

ps_lgetxregsize(3PROC)

ps_lrolltoaddr(3PROC)

ps_lsetfpregs(3PROC)

ps_lsetregs(3PROC)

ps_lsetxregs(3PROC)

ps_lstop(3PROC)

ps_pcontinue(3PROC)

ps_pdread(3PROC)

ps_pdwrite(3PROC)

ps_pglobal_lookup(3PROC)

ps_pglobal_sym(3PROC)

ps_pread(3PROC)

ps_pstop(3PROC)

ps_ptread(3PROC)

ps_ptwrite(3PROC)

ps_pwrite(3PROC)

sched_getparam(3RT)

sched_get_priority_max(3RT)

sched_get_priority_min(3RT)

sched_getscheduler(3RT)

sched_rr_get_interval(3RT)

sched_setparam(3RT)

sched_setscheduler(3RT)

sched_yield(3RT)

sem_close(3RT)

sem_destroy(3RT)

sem_getvalue(3RT)

sem_init(3RT)

sem_open(3RT)

sem_post(3RT)

sem_reltimedwait_np(3RT)

sem_timedwait(3RT)

sem_trywait(3RT)

sem_unlink(3RT)

sem_wait(3RT)

shm_open(3RT)

shm_unlink(3RT)

sigqueue(3RT)

sigtimedwait(3RT)

sigwaitinfo(3RT)

timer_create(3RT)

timer_delete(3RT)

timer_getoverrun(3RT)

timer_gettime(3RT)

timer_settime(3RT)

proc_service

- process service interfaces

Synopsis

#include <proc_service.h> 

ps_err_e ps_pdmodel(struct ps_prochandle *ph,
     int *data_model);
ps_err_e ps_pglobal_lookup(struct ps_prochandle *ph,
     const char *object_name, const char *sym_name,
     psaddr_t *sym_addr);
ps_err_e ps_pglobal_sym(struct ps_prochandle *ph,
     const char *object_name, const char *sym_name,
     ps_sym_t *sym);
ps_err_e ps_pread(struct ps_prochandle *ph, psaddr_t addr,
     void *buf, size_t size);
ps_err_e ps_pwrite(struct ps_prochandle *ph, psaddr_t addr,
     const void *buf, size_t size);
ps_err_e ps_pdread(struct ps_prochandle *ph, psaddr_t addr,
     void *buf, size_t size);
ps_err_e ps_pdwrite(struct ps_prochandle *ph, psaddr_t addr,
     const void *buf, size_t size);
ps_err_e ps_ptread(struct ps_prochandle *ph, psaddr_t addr,
     void *buf, size_t size);
ps_err_e ps_ptwrite(struct ps_prochandle *ph, psaddr_t addr,
     const void *buf, size_t size);
ps_err_e ps_pstop(struct ps_prochandle *ph);
ps_err_e ps_pcontinue(struct ps_prochandle *ph);
ps_err_e ps_lstop(struct ps_prochandle *ph, lwpid_t lwpid);
ps_err_e ps_lcontinue(struct ps_prochandle *ph, lwpid_t lwpid);
ps_err_e ps_lgetregs(struct ps_prochandle *ph, lwpid_t lwpid,
     prgregset_t gregset);
ps_err_e ps_lsetregs(struct ps_prochandle *ph, lwpid_t lwpid,
     const prgregset_t gregset);
ps_err_e ps_lgetfpregs(struct ps_prochandle *ph, lwpid_t lwpid,
     prfpregset_t *fpregset);
ps_err_e ps_lsetfpregs(struct ps_prochandle *ph, lwpid_t lwpid,
     const prfpregset_t *fpregset);
ps_err_e ps_pauxv(struct ps_prochandle *ph,
     const auxv_t **auxp);
ps_err_e ps_kill(struct ps_prochandle *ph, int sig);
ps_err_e ps_lrolltoaddr(struct ps_prochandle *ph,
     lwpid_t lwpid, psaddr_t go_addr, psaddr_t stop_addr);
void ps_plog(const char *fmt);
ps_err_e ps_lgetxregsize(struct ps_prochandle *ph,
     lwpid_t lwpid, int *xregsize);
ps_err_e ps_lgetxregs(struct ps_prochandle *ph,
     lwpid_t lwpid, caddr_t xregset);
ps_err_e ps_lsetxregs(struct ps_prochandle *ph,
     lwpid_t lwpid, caddr_t xregset);

x86

ps_err_e ps_lgetLDT(struct ps_prochandle *ph, lwpid_t lwpid,
     struct ssd *ldt);

Description

Every program that links libthread_db or librtld_db must provide a set of process control primitives that allow libthread_db and librtld_db to access memory and registers in the target process, to start and to stop the target process, and to look up symbols in the target process. See libc_db(3LIB). For information on librtld_db, refer to the Linker and Libraries Guide.

Refer to the individual reference manual pages that describe these routines for a functional specification that clients of libthread_db and librtld_db can use to implement this required interface. The <proc_service.h> header lists the C declarations of these routines.

FUNCTIONS

ps_pdmodel()

Returns the data model of the target process.

ps_pglobal_lookup()

Looks up the symbol in the symbol table of the load object in the target process and returns its address.

ps_pglobal_sym()

Looks up the symbol in the symbol table of the load object in the target process and returns its symbol table entry.

ps_pread()

Copies size bytes from the target process to the controlling process.

ps_pwrite()

Copies size bytes from the controlling process to the target process.

ps_pdread()

Identical to ps_pread().

ps_pdwrite()

Identical to ps_pwrite().

ps_ptread()

Identical to ps_pread().

ps_ptwrite()

Identical to ps_pwrite().

ps_pstop()

Stops the target process.

ps_pcontinue()

Resumes target process.

ps_lstop()

Stops a single lightweight process ( LWP ) within the target process.

ps_lcontinue()

Resumes a single LWP within the target process.

ps_lgetregs()

Gets the general registers of the LWP.

ps_lsetregs()

Sets the general registers of the LWP.

ps_lgetfpregs()

Gets the LWP`s floating point register set.

ps_lsetfpregs()

Sets the LWP`s floating point register set.

ps_pauxv()

Returns a pointer to a read-only copy of the target process's auxiliary vector.

ps_kill()

Sends signal to target process.

ps_lrolltoaddr()

Rolls the LWP out of a critical section when the process is stopped.

ps_plog()

Logs a message.

ps_lgetxregsize()

Returns the size of the architecture-dependent extra state registers.

ps_lgetxregs()

Gets the extra state registers of the LWP.

ps_lsetxregs()

Sets the extra state registers of the LWP.

x86

ps_lgetLDT()

Reads the local descriptor table of the LWP.

Attributes

See attributes(5) for description of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
MT Level
Safe

See Also

libc_db(3LIB), librtld_db(3LIB), ps_pread(3PROC), rtld_db(3EXT), attributes(5)

Linker and Libraries Guide