Home
last modified time | relevance | path

Searched refs:auxv (Results 1 – 25 of 37) sorted by relevance

12

/illumos-gate/usr/src/cmd/sgs/rtld/i386/
H A D_setup.c72 auxv_t *auxv, *_auxv; in _setup() local
103 for (auxv = _auxv; auxv->a_type != AT_NULL; auxv++) { in _setup()
104 switch (auxv->a_type) { in _setup()
107 fd = (int)auxv->a_un.a_val; in _setup()
111 _flags = auxv->a_un.a_val; in _setup()
124 ld_base = auxv->a_un.a_val; in _setup()
133 uid = (uid_t)auxv->a_un.a_val; in _setup()
141 gid = (gid_t)auxv->a_un.a_val; in _setup()
145 _platform = auxv->a_un.a_ptr; in _setup()
149 _execname = auxv->a_un.a_ptr; in _setup()
[all …]
H A Dboot.S120 movl $EB_AUXV,16(%esi) / set up tag for auxv
121 movl %edi,20(%esi) / point to auxv
/illumos-gate/usr/src/cmd/sgs/rtld/sparcv9/
H A D_setup.c71 auxv_t *auxv, *_auxv; in _setup() local
102 for (auxv = _auxv; auxv->a_type != AT_NULL; auxv++) { in _setup()
103 switch (auxv->a_type) { in _setup()
106 fd = (int)auxv->a_un.a_val; in _setup()
110 _flags = auxv->a_un.a_val; in _setup()
123 ld_base = auxv->a_un.a_val; in _setup()
132 uid = (uid_t)auxv->a_un.a_val; in _setup()
140 gid = (gid_t)auxv->a_un.a_val; in _setup()
144 _platform = auxv->a_un.a_ptr; in _setup()
148 _execname = auxv->a_un.a_ptr; in _setup()
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/sparc/
H A D_setup.c71 auxv_t *auxv, *_auxv; in _setup() local
104 for (auxv = _auxv; auxv->a_type != AT_NULL; auxv++) { in _setup()
105 switch (auxv->a_type) { in _setup()
108 fd = (int)auxv->a_un.a_val; in _setup()
112 _flags = auxv->a_un.a_val; in _setup()
125 ld_base = auxv->a_un.a_val; in _setup()
134 uid = (uid_t)auxv->a_un.a_val; in _setup()
142 gid = (gid_t)auxv->a_un.a_val; in _setup()
146 _platform = auxv->a_un.a_ptr; in _setup()
150 _execname = auxv->a_un.a_ptr; in _setup()
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/amd64/
H A D_setup.c129 auxv_t *auxv, *_auxv; in _setup() local
161 for (auxv = _auxv; auxv->a_type != AT_NULL; auxv++) { in _setup()
162 switch (auxv->a_type) { in _setup()
165 fd = (int)auxv->a_un.a_val; in _setup()
169 _flags = auxv->a_un.a_val; in _setup()
182 ld_base = auxv->a_un.a_val; in _setup()
191 uid = (uid_t)auxv->a_un.a_val; in _setup()
199 gid = (gid_t)auxv->a_un.a_val; in _setup()
203 _platform = auxv->a_un.a_ptr; in _setup()
207 _execname = auxv->a_un.a_ptr; in _setup()
[all …]
H A Dboot.S128 / set up tag for auxv
130 / point to auxv
/illumos-gate/usr/src/cmd/ptools/pldd/
H A Dpldd.c153 const auxv_t *auxv; in show_map() local
161 if (ps_pauxv(Pr, &auxv) == PS_OK) { in show_map()
162 while (auxv->a_type != AT_NULL) { in show_map()
163 if (auxv->a_type == AT_BASE) { in show_map()
164 if (pmap->pr_vaddr == auxv->a_un.a_val) in show_map()
168 auxv++; in show_map()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_pservice.c245 const auxv_t *auxv; in ps_pbrandname() local
250 if (mdb_tgt_auxv(t, &auxv) != 0) in ps_pbrandname()
253 while (auxv->a_type != AT_NULL) { in ps_pbrandname()
254 if (auxv->a_type == AT_SUN_BRANDNAME) in ps_pbrandname()
256 auxv++; in ps_pbrandname()
258 if (auxv->a_type == AT_NULL) in ps_pbrandname()
262 buf, len, auxv->a_un.a_val) <= 0) in ps_pbrandname()
/illumos-gate/usr/src/uts/common/exec/elf/
H A Dold_notes.c93 aux_entry_t auxv[__KERN_NAUXV_IMPL]; in write_old_elfnotes() member
127 bigwad->auxv[i].a_type = up->u_auxv[i].a_type; in write_old_elfnotes()
128 bigwad->auxv[i].a_un.a_val = up->u_auxv[i].a_un.a_val; in write_old_elfnotes()
130 error = elfnote(vp, &offset, NT_AUXV, sizeof (bigwad->auxv), in write_old_elfnotes()
131 (caddr_t)bigwad->auxv, rlimit, credp); in write_old_elfnotes()
H A Delf_notes.c191 aux_entry_t auxv[__KERN_NAUXV_IMPL]; in write_elfnotes() member
285 bigwad->auxv[i].a_type = up->u_auxv[i].a_type; in write_elfnotes()
286 bigwad->auxv[i].a_un.a_val = up->u_auxv[i].a_un.a_val; in write_elfnotes()
288 error = elfnote(vp, &offset, NT_AUXV, sizeof (bigwad->auxv), in write_elfnotes()
289 (caddr_t)bigwad->auxv, rlimit, credp); in write_elfnotes()
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dreadfile.c515 auxv32_t auxv[__BOOT_NAUXV_IMPL]; /* Aux vector */ in read_elf32() local
517 auxv32_t *av = auxv; in read_elf32()
556 size = (caddr_t)av - (caddr_t)auxv; in read_elf32()
557 if (size > sizeof (auxv)) { in read_elf32()
569 bcopy(auxv, in read_elf32()
582 size = (av - auxv) * sizeof (auxv64_t); in read_elf32()
592 auxv32_t *a = auxv; in read_elf32()
594 for (a = auxv; a < av; a++) { in read_elf32()
901 auxv64_t *av = auxv; in read_elf64()
941 size = (caddr_t)av - (caddr_t)auxv; in read_elf64()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab.c328 free(P->auxv); in map_info_free()
329 P->auxv = NULL; in map_info_free()
879 free(P->auxv); in Preadauxvec()
880 P->auxv = NULL; in Preadauxvec()
894 auxv_t *auxv; in Pgetauxval() local
896 if (P->auxv == NULL) in Pgetauxval()
899 if (P->auxv == NULL) in Pgetauxval()
902 for (auxv = P->auxv; auxv->a_type != AT_NULL; auxv++) { in Pgetauxval()
925 return (P->auxv); in Pgetauxvec()
3377 free(P->auxv); in Preset_maps()
[all …]
H A DPservice.c365 if (P->auxv == NULL) in ps_pauxv()
368 if (P->auxv == NULL) in ps_pauxv()
371 *aux = (const auxv_t *)P->auxv; in ps_pauxv()
H A DPcore.c1042 if ((P->auxv = malloc(sizeof (auxv_t) * (n + 1))) == NULL) in note_auxv()
1046 auxv_32_to_n(&a32[i], &P->auxv[i]); in note_auxv()
1053 if ((P->auxv = malloc(nbytes + sizeof (auxv_t))) == NULL) in note_auxv()
1056 if (read(P->asfd, P->auxv, nbytes) != nbytes) { in note_auxv()
1057 free(P->auxv); in note_auxv()
1058 P->auxv = NULL; in note_auxv()
1068 P->auxv[i].a_type, P->auxv[i].a_un.a_val); in note_auxv()
1077 P->auxv[n].a_type = AT_NULL; in note_auxv()
1078 P->auxv[n].a_un.a_val = 0L; in note_auxv()
H A DPcontrol.h231 auxv_t *auxv; /* the process's aux vector */ member
H A DPgcore.c1295 if (write_note(fd, NT_AUXV, P->auxv, in Pfgcore()
1296 P->nauxv * sizeof (P->auxv[0]), &doff) != 0) { in Pfgcore()
1316 auxv_n_to_32(&P->auxv[i], &av32[i]); in Pfgcore()
1377 if (write_note(fd, NT_AUXV, P->auxv, in Pfgcore()
1378 P->nauxv * sizeof (P->auxv[0]), &doff) != 0) { in Pfgcore()
1403 auxv_n_to_32(&P->auxv[i], &av32[i]); in Pfgcore()
H A DPcontrol.c144 auxv_t *auxv; in Pread_aux_live() local
157 (auxv = malloc(statb.st_size + sizeof (auxv_t))) != NULL) { in Pread_aux_live()
158 if ((naux = read(fd, auxv, statb.st_size)) < 0 || in Pread_aux_live()
162 free(auxv); in Pread_aux_live()
164 auxv[naux].a_type = AT_NULL; in Pread_aux_live()
165 auxv[naux].a_un.a_val = 0L; in Pread_aux_live()
167 *auxvp = auxv; in Pread_aux_live()
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dgen_layout_obj.c42 auxv_t auxv; variable
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dsetup.c193 setup(char **envp, auxv_t *auxv, Word _flags, char *_platform, int _syspagsz, in setup() argument
214 _environ = (char **)((ulong_t)auxv - sizeof (char *)); in setup()
369 if (rtld_getopt(argv, &envp, &auxv, &(lml_main.lm_flags), in setup()
711 argsinfo.dla_auxv = auxv; in setup()
866 DBG_CALL(Dbg_file_ldso(rlmp, envp, auxv, in setup()
/illumos-gate/usr/src/tools/sgs/include/
H A DMakefile42 sys/auxv.h \
/illumos-gate/usr/src/cmd/truss/
H A Dactions.c408 auxv_t auxv[32]; in sysentry() local
412 naux = proc_get_auxv(pid, auxv, 32); in sysentry()
414 if (auxv[i].a_type == AT_SUN_EXECNAME) { in sysentry()
415 offset = (long)auxv[i].a_un.a_ptr; in sysentry()
/illumos-gate/usr/src/cmd/sgs/librtld_db/common/
H A Dlibrtld_db.msg41 @ MSG_DB_FLDDATA "rtld_db: rl: found LDDATA auxv ld.so.1 data seg \
118 @ MSG_ER_NOBASE "couldn't find auxv tag 'AT_BASE'"
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgcore.c1582 auxv_t *auxv; in Pread_aux_gcore() local
1586 auxv = calloc(naux + 1, sizeof (*auxv)); in Pread_aux_gcore()
1587 if (auxv == NULL) { in Pread_aux_gcore()
1593 (void) memcpy(auxv, p->p_user.u_auxv, naux * sizeof (*auxv)); in Pread_aux_gcore()
1595 *auxvp = auxv; in Pread_aux_gcore()
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dfiles.c107 Dbg_file_ldso(Rt_map *lmp, char **envp, auxv_t *auxv, const char *lmid, in Dbg_file_ldso() argument
120 EC_NATPTR(auxv)); in Dbg_file_ldso()
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_ks/
H A Dmdb_ks.c1425 mdb_kproc_auxv(uintptr_t proc, auxv_t *auxv) in mdb_kproc_auxv() argument
1427 if (auxv != NULL) { in mdb_kproc_auxv()
1433 bcopy(p.p_user.u_auxv, auxv, in mdb_kproc_auxv()

12