Lines Matching defs:auxv
304 if (P->auxv && (mptr == P->map_exec || mptr == P->map_ldso)) {
305 free(P->auxv);
306 P->auxv = NULL;
851 * If we're not a core file, re-read the /proc/<pid>/auxv file and store
852 * its contents in P->auxv. In the case of a core file, we either
853 * initialized P->auxv in Pcore() from the NT_AUXV, or we don't have an
854 * auxv because the note was missing.
869 if (P->auxv != NULL) {
870 free(P->auxv);
871 P->auxv = NULL;
875 (void) snprintf(auxfile, sizeof (auxfile), "%s/%d/auxv",
882 (P->auxv = malloc(statb.st_size + sizeof (auxv_t))) != NULL) {
883 if ((naux = read(fd, P->auxv, statb.st_size)) < 0 ||
885 free(P->auxv);
886 P->auxv = NULL;
888 P->auxv[naux].a_type = AT_NULL;
889 P->auxv[naux].a_un.a_val = 0L;
904 auxv_t *auxv;
906 if (P->auxv == NULL)
909 if (P->auxv == NULL)
912 for (auxv = P->auxv; auxv->a_type != AT_NULL; auxv++) {
913 if (auxv->a_type == type)
914 return (auxv->a_un.a_val);
929 if (P->auxv == NULL)
932 if (P->auxv == NULL)
935 return (P->auxv);
3034 if (P->auxv != NULL) {
3035 free(P->auxv);
3036 P->auxv = NULL;