Home | History | Annotate | Download | only in solaris

Lines Matching defs:auxv

1 /* Test if /proc/{self,$PID}/auxv is correctly simulated and that the aux
8 #include <sys/auxv.h>
11 static int check_file(const char *path, auxv_t *auxv)
30 if (memcmp(auxv, &rauxv, sizeof(rauxv))) {
31 fprintf(stderr, "incorrect auxv in %s\n", path);
32 fprintf(stderr, "expected: type=%d, val=%ld\n", auxv->a_type,
33 auxv->a_un.a_val);
39 if (auxv->a_type == AT_NULL)
42 auxv++;
54 auxv_t *auxv;
60 auxv = (auxv_t*)(envp + 1);
62 /* /proc/self/auxv check */
63 if (check_file("/proc/self/auxv", auxv))
66 /* /proc/$PID/auxv check */
67 snprintf(buf, sizeof(buf), "/proc/%ld/auxv", (long)getpid());
68 if (check_file(buf, auxv))
72 while (auxv->a_type != AT_NULL) {
73 if (auxv->a_type == AT_SUN_EXECNAME) {
74 const char *execname = auxv->a_un.a_ptr;
86 auxv++;