auxv_t
kp->kp_auxv = mdb_alloc(sizeof (auxv_t) * kp->kp_nauxv, UM_SLEEP);
auxv_t *kp_auxv; /* Auxv array from u-area */
auxv_t *auxp;
mdb_free(kp->kp_auxv, kp->kp_nauxv * sizeof (auxv_t));
kp_auxv(mdb_tgt_t *t, const auxv_t **auxvp)
int (*f_auxv)(uintptr_t, auxv_t *);
extern int mdb_kproc_auxv(uintptr_t, auxv_t *);
pt_auxv(mdb_tgt_t *t, const auxv_t **auxvp)
const auxv_t *auxp, *auxv = NULL;
return (sizeof (auxv_t) * auxn);
nbytes = MIN(nbytes, sizeof (auxv_t) * auxn);
ps_pauxv(struct ps_prochandle *P, const auxv_t **auxvp)
const auxv_t *auxv;
const auxv_t **);
mdb_tgt_auxv(mdb_tgt_t *t, const auxv_t **auxvp)
int (*t_auxv)(mdb_tgt_t *, const auxv_t **auxvp);
extern int mdb_tgt_auxv(mdb_tgt_t *, const auxv_t **);
auxv_t *auxp;
Pread_aux_gcore(struct ps_prochandle *P, auxv_t **auxvp, int *nauxp, void *data)
auxv_t *auxv;
mdb_kproc_auxv(uintptr_t proc, auxv_t *auxv)
sizeof (auxv_t) * __KERN_NAUXV_IMPL);
const auxv_t *pa;
const auxv_t *auxvp;
datap->pd_auxv = safe_zalloc(i * sizeof (auxv_t));
bcopy(auxvp, datap->pd_auxv, i * sizeof (auxv_t));
auxv_t *pd_auxv;
const auxv_t *auxv;
ps_pauxv(struct ps_prochandle *ph, const auxv_t **auxvp)
auxv_t *auxvp;
entsize = sizeof (auxv_t);
auxv_t auxv;
START(auxv, auxv_t);
SCALAR_FIELD(auxv_t, a_type, 1);
SCALAR_FIELD(auxv_t, a_un.a_val, 1);
SCALAR_FIELD(auxv_t, a_un.a_ptr, 0);
SCALAR_FIELD(auxv_t, a_un.a_fcn, 0);
extern void Dbg_file_ldso(Rt_map *, char **, auxv_t *, const char *,
Dbg_file_ldso(Rt_map *lmp, char **envp, auxv_t *auxv, const char *lmid,
const auxv_t *auxvp = NULL;
auxv_t *auxv, *_auxv;
_auxv = (auxv_t *)ebp->eb_un.eb_ptr;
if ((lmp = setup((char **)_envp, (auxv_t *)_auxv, _flags, _platform,
extern int rtld_getopt(char **, char ***, auxv_t **, Word *,
extern Rt_map *setup(char **, auxv_t *, Word, char *, int, char *,
setup(char **envp, auxv_t *auxv, Word _flags, char *_platform, int _syspagsz,
stack_cleanup(char **argv, char ***envp, auxv_t **auxv, int rmcnt)
rtld_getopt(char **argv, char ***envp, auxv_t **auxv, Word *lmflags,
auxv_t *oauxv, *nauxv;
nauxv = (auxv_t *)&nenvp[ndx];
oauxv = (auxv_t *)&oenvp[ndx];
if ((lmp = setup((char **)_envp, (auxv_t *)_auxv, _flags, _platform,
auxv_t *auxv, *_auxv;
_auxv = (auxv_t *)ebp->eb_un.eb_ptr;
if ((lmp = setup((char **)_envp, (auxv_t *)_auxv, _flags, _platform,
auxv_t *auxv, *_auxv;
_auxv = (auxv_t *)ebp->eb_un.eb_ptr;
if ((lmp = setup((char **)_envp, (auxv_t *)_auxv, _flags, _platform,
auxv_t *auxv, *_auxv;
_auxv = (auxv_t *)ebp->eb_un.eb_ptr;
auxv_t auxv[32];
auxv_t *dla_auxv; /* process auxv vectors */
extern ps_err_e ps_pauxv(struct ps_prochandle *, const auxv_t **);
auxv_t *ap;
for (ap = (auxv_t *)p; ap->a_type != AT_NULL; ap++) {
const auxv_t *auxvp = NULL;
for (ap = (auxv_t *)ebp->eb_un.eb_ptr;
auxv_t *ap; /* working aux pointer */
return ((auxv_t *)0);
auxv_t *auxp;
if ((auxp = _getaux(type)) != (auxv_t *)0)
auxv_t *auxp;
if ((auxp = _getaux(type)) != (auxv_t *)0)
static auxv_t *
static auxv_t *auxb = NULL;
auxv_t *buf = NULL;
statb.st_size + sizeof (auxv_t));
nauxv = i / sizeof (auxv_t);
for (ap = (auxv_t *)ebp->eb_un.eb_ptr;
auxv_t *ap; /* working aux pointer */
static auxv_t auxb;
while (read(fd, &auxb, sizeof (auxv_t)) == sizeof (auxv_t)) {
auxv_32_to_n(const auxv32_t *src, auxv_t *dst)
auxv_n_to_32(const auxv_t *src, auxv32_t *dst)
extern void auxv_32_to_n(const auxv32_t *, auxv_t *);
extern void auxv_n_to_32(const auxv_t *, auxv32_t *);
Pread_aux_live(struct ps_prochandle *P, auxv_t **auxvp, int *nauxp, void *data)
auxv_t *auxv;
statb.st_size >= sizeof (auxv_t) &&
(auxv = malloc(statb.st_size + sizeof (auxv_t))) != NULL) {
(naux /= sizeof (auxv_t)) < 1) {
auxv_t *auxv; /* the process's aux vector */
if ((P->auxv = malloc(sizeof (auxv_t) * (n + 1))) == NULL)
n = nbytes / sizeof (auxv_t);
nbytes = n * sizeof (auxv_t);
if ((P->auxv = malloc(nbytes + sizeof (auxv_t))) == NULL)
ps_pauxv(struct ps_prochandle *P, const auxv_t **aux)
*aux = (const auxv_t *)P->auxv;
auxv_t *auxv;
const auxv_t *
static const auxv_t empty = { AT_NULL, 0L };
typedef void (*pop_read_aux_t)(struct ps_prochandle *, auxv_t **, int *,
extern const auxv_t *Pgetauxvec(struct ps_prochandle *);
extern int proc_get_auxv(pid_t, auxv_t *, int);
proc_get_auxv(pid_t pid, auxv_t *pauxv, int naux)
if ((rv = read(fd, pauxv, naux * sizeof (auxv_t))) >= 0)
rv /= sizeof (auxv_t);
static auxv_t auxb;
while (read(fd, &auxb, sizeof (auxv_t)) == sizeof (auxv_t)) {
static auxv_t auxb;
while (read(fd, &auxb, sizeof (auxv_t)) == sizeof (auxv_t)) {
ASSERT(num_auxv <= sizeof (up->u_auxv) / sizeof (auxv_t));
typedef auxv_t aux_entry_t;
__KERN_NAUXV_IMPL * sizeof (auxv_t));
__KERN_NAUXV_IMPL * sizeof (auxv_t)))
auxv_t *auxp;
auxv_t auxv[__KERN_NAUXV_IMPL];
auxv_t auxv[__KERN_NAUXV_IMPL];
auxv_t *auxp;
auxv_t *auxp;
auxv_t *auxp;
auxv_t auxv[__KERN_NAUXV_IMPL];
vap->va_size = __KERN_NAUXV_IMPL * PR_OBJSIZE(auxv32_t, auxv_t);
auxv_t auxflags_auxv;
auxv_t brand_auxv[] = {
auxv_t **a = (auxv_t **)auxvpp;
auxv_t u_auxv[__KERN_NAUXV_IMPL]; /* aux vector from exec */