Searched refs:ps_strings (Results 1 - 23 of 23) sorted by relevance

/freebsd-11.0-release/lib/csu/powerpc/
H A Dcrt1.c52 struct ps_strings;
61 struct ps_strings *__ps_strings;
64 void (*)(void), struct ps_strings *);
69 * The last argument, ps_strings, is a BSD extension.
75 struct ps_strings *ps_strings)
81 if (ps_strings != (struct ps_strings *)0)
82 __ps_strings = ps_strings;
73 _start(int argc, char **argv, char **env, const struct Struct_Obj_Entry *obj __unused, void (*cleanup)(void), struct ps_strings *ps_strings) argument
/freebsd-11.0-release/lib/csu/powerpc64/
H A Dcrt1.c52 struct ps_strings;
55 void (*)(void), struct ps_strings *);
64 struct ps_strings *__ps_strings;
69 * The last argument, ps_strings, is a BSD extension.
75 struct ps_strings *ps_strings)
80 if (ps_strings != (struct ps_strings *)0)
81 __ps_strings = ps_strings;
73 _start(int argc, char **argv, char **env, const struct Struct_Obj_Entry *obj __unused, void (*cleanup)(void), struct ps_strings *ps_strings) argument
/freebsd-11.0-release/lib/csu/arm/
H A Dcrt1.c52 struct ps_strings;
55 void (*)(void), struct ps_strings *);
64 struct ps_strings *__ps_strings;
66 void __start(int, char **, char **, struct ps_strings *,
76 " mov r3, r0 /* ps_strings */ \n"
91 __start(int argc, char **argv, char **env, struct ps_strings *ps_strings, argument
97 if (ps_strings != (struct ps_strings *)0)
98 __ps_strings = ps_strings;
[all...]
/freebsd-11.0-release/contrib/gdb/gdb/
H A Di386fbsd-nat.c86 /* FreeBSD provides a kern.ps_strings sysctl that we can use to
95 u_long ps_strings;
100 len = sizeof (ps_strings);
101 if (sysctl (mib, 2, &ps_strings, &len, NULL, 0) == 0)
103 i386fbsd_sigtramp_start_addr = ps_strings - 128;
104 i386fbsd_sigtramp_end_addr = ps_strings;
94 u_long ps_strings; local
/freebsd-11.0-release/lib/csu/mips/
H A Dcrt1.c45 struct ps_strings;
54 void __start(char **, void (*)(void), struct Struct_Obj_Entry *, struct ps_strings *);
61 struct ps_strings *ps_strings __unused)
/freebsd-11.0-release/lib/csu/sparc64/
H A Dcrt1.c43 struct ps_strings;
55 struct ps_strings *);
59 * %o0 holds ps_strings pointer.
73 struct ps_strings *ps_strings __unused)
/freebsd-11.0-release/lib/libc/gen/
H A Dsetproctitle.c39 * Older FreeBSD 2.0, 2.1 and 2.2 had different ps_strings structures and
43 * 3: ps_strings at the very top of the stack.
44 * We only support a kernel providing #3 style ps_strings.
46 * For historical purposes, a definition of the old ps_strings structure
65 static struct ps_strings *ps_strings; local
132 if (ps_strings == NULL) {
134 if (sysctlbyname("kern.ps_strings", &ul_ps_strings, &len, NULL,
137 ps_strings = (struct ps_strings *)ul_ps_string
[all...]
/freebsd-11.0-release/contrib/netbsd-tests/kernel/
H A Dh_ps_strings2.c45 extern struct ps_strings *__ps_strings;
H A Dh_ps_strings1.c39 extern struct ps_strings *__ps_strings;
48 static const char nargv_err[] = "Wrong argc in ps_strings";
54 static const char argv_err[] = "Wrong argv in ps_strings";
60 static const char env_err[] = "Wrong env in ps_strings";
68 static const char nenv_err[] = "Wrong nenv in ps_strings";
/freebsd-11.0-release/sys/sys/
H A Dexec.h50 * pointers in ps_strings. The kern.proc.args sysctl first tries p_args.
51 * If p_args is NULL, it then falls back to reading ps_strings and following
54 struct ps_strings { struct
74 * Address of ps_strings structure (in user space).
75 * Prefer the kern.ps_strings or kern.proc.ps_strings sysctls to this constant.
77 #define PS_STRINGS (USRSTACK - sizeof(struct ps_strings))
H A Dimgact.h74 unsigned long ps_strings; /* PS_STRINGS for BSD/OS binaries */ member in struct:image_params
/freebsd-11.0-release/sys/kern/
H A Dimgact_aout.c199 imgp->ps_strings = aout_sysvec.sv_psstrings;
H A Dimgact_elf.c2137 elf_ps_strings_t ps_strings; local
2142 size = sizeof(structsize) + sizeof(ps_strings);
2145 structsize = sizeof(ps_strings);
2147 ps_strings = PTROUT(p->p_sysent->sv_psstrings);
2149 ps_strings = p->p_sysent->sv_psstrings;
2152 sbuf_bcat(sb, &ps_strings, sizeof(ps_strings));
H A Dkern_exec.c120 SYSCTL_PROC(_kern, KERN_PS_STRINGS, ps_strings, CTLTYPE_ULONG|CTLFLAG_RD,
1361 struct ps_strings *arginfo;
1378 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings;
1467 * Fill in "ps_strings" struct for ps, w, etc.
H A Dkern_proc.c1696 struct ps_strings pss;
1779 #define GET_PS_STRINGS_CHUNK_SZ 256 /* Chunk size (bytes) for ps_strings operations. */
2700 * This sysctl allows a process to retrieve ps_strings structure location of
2709 vm_offset_t ps_strings; local
2734 ps_strings = p->p_sysent->sv_psstrings;
2736 error = SYSCTL_OUT(req, &ps_strings, sizeof(ps_strings));
2965 static SYSCTL_NODE(_kern_proc, KERN_PROC_PS_STRINGS, ps_strings, CTLFLAG_RD |
2967 "Process ps_strings location");
/freebsd-11.0-release/sys/amd64/linux/
H A Dlinux_sysvec.c272 struct ps_strings *arginfo;
277 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings;
331 struct ps_strings *arginfo;
345 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings;
409 * Fill in "ps_strings" struct for ps, w, etc.
/freebsd-11.0-release/sys/i386/linux/
H A Dlinux_sysvec.c101 #define LINUX_PS_STRINGS (LINUX_USRSTACK - sizeof(struct ps_strings))
239 struct ps_strings *arginfo;
248 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings;
306 struct ps_strings *arginfo;
319 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings;
388 * Fill in "ps_strings" struct for ps, w, etc.
/freebsd-11.0-release/sys/mips/mips/
H A Dpm_machdep.c458 * a3 ps_strings
463 td->td_frame->a3 = (register_t)imgp->ps_strings;
/freebsd-11.0-release/lib/libprocstat/
H A Dcore.c354 struct ps_strings pss;
/freebsd-11.0-release/sys/powerpc/powerpc/
H A Dexec_machdep.c515 * _start(argc, argv, envp, obj, cleanup, ps_strings);
520 * - ps_strings is a NetBSD extention, and will be
544 tf->fixreg[8] = (register_t)imgp->ps_strings; /* NetBSD extension */
578 tf->fixreg[8] = (register_t)imgp->ps_strings; /* NetBSD extension */
/freebsd-11.0-release/sys/amd64/linux32/
H A Dlinux32_sysvec.c830 regs->tf_rbx = imgp->ps_strings;
923 * Fill in "ps_strings" struct for ps, w, etc.
/freebsd-11.0-release/sys/amd64/ia32/
H A Dia32_signal.c960 regs->tf_rbx = imgp->ps_strings;
/freebsd-11.0-release/sys/i386/i386/
H A Dmachdep.c1169 regs->tf_ebx = imgp->ps_strings;

Completed in 232 milliseconds