proc_service.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PROC_SERVICE_H
#define _PROC_SERVICE_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Description:
* Types, global variables, and function definitions for provider
* of import functions for users of libc_db and librtld_db.
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/procfs_isa.h>
#include <elf.h>
#include <sys/segments.h>
#endif
typedef unsigned long psaddr_t;
typedef enum {
PS_OK, /* generic "call succeeded" */
PS_ERR, /* generic error */
PS_BADPID, /* bad process handle */
PS_BADLID, /* bad lwp identifier */
PS_BADADDR, /* bad address */
PS_NOSYM, /* p_lookup() could not find given symbol */
PS_NOFREGS /* FPU register set not available for given lwp */
} ps_err_e;
struct ps_prochandle;
/*
* See <sys/procfs_isa.h> for possible values of data_model.
*/
/*
* Special values for 'object_name' to refer to certain well-known objects.
*/
#ifdef _LP64
#else
#endif
/*
* To read and write the process's address space.
*/
/*
* The following four functions can be implemented as simple aliases for
* the corresponding primary two functions above (#pragma weak ...).
* They are artifacts of history that must be maintained.
*/
lwpid_t, const prgregset_t);
lwpid_t, prfpregset_t *);
lwpid_t, const prfpregset_t *);
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif /* _PROC_SERVICE_H */