Home
last modified time | relevance | path

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

/freebsd-12.1/lib/csu/arm/
H A Dcrt1.c56 struct ps_strings;
59 void (*)(void), struct ps_strings *);
68 struct ps_strings *__ps_strings;
70 void __start(int, char **, char **, struct ps_strings *,
95 __start(int argc, char **argv, char **env, struct ps_strings *ps_strings, in __start() argument
101 if (ps_strings != (struct ps_strings *)0) in __start()
102 __ps_strings = ps_strings; in __start()
/freebsd-12.1/lib/csu/powerpc64/
H A Dcrt1.c54 struct ps_strings;
57 void (*)(void), struct ps_strings *);
66 struct ps_strings *__ps_strings;
77 struct ps_strings *ps_strings) in _start() argument
82 if (ps_strings != (struct ps_strings *)0) in _start()
83 __ps_strings = ps_strings; in _start()
/freebsd-12.1/lib/csu/powerpc/
H A Dcrt1.c54 struct ps_strings;
63 struct ps_strings *__ps_strings;
66 void (*)(void), struct ps_strings *);
77 struct ps_strings *ps_strings) in _start() argument
83 if (ps_strings != (struct ps_strings *)0) in _start()
84 __ps_strings = ps_strings; in _start()
/freebsd-12.1/lib/libc/gen/
H A Dsetproctitle.c61 static struct ps_strings *ps_strings; in setproctitle_internal() local
115 if (ps_strings == NULL) { in setproctitle_internal()
120 ps_strings = (struct ps_strings *)ul_ps_strings; in setproctitle_internal()
127 if (ps_strings->ps_argvstr == NULL) in setproctitle_internal()
133 oargc = ps_strings->ps_nargvstr; in setproctitle_internal()
134 oargv = ps_strings->ps_argvstr; in setproctitle_internal()
155 ps_strings->ps_nargvstr = nargc; in setproctitle_internal()
156 ps_strings->ps_argvstr = nargvp; in setproctitle_internal()
/freebsd-12.1/contrib/gdb/gdb/
H A Di386fbsd-nat.c94 u_long ps_strings; in _initialize_i386fbsd_nat() local
99 len = sizeof (ps_strings); in _initialize_i386fbsd_nat()
100 if (sysctl (mib, 2, &ps_strings, &len, NULL, 0) == 0) in _initialize_i386fbsd_nat()
102 i386fbsd_sigtramp_start_addr = ps_strings - 128; in _initialize_i386fbsd_nat()
103 i386fbsd_sigtramp_end_addr = ps_strings; in _initialize_i386fbsd_nat()
/freebsd-12.1/lib/csu/mips/
H A Dcrt1.c47 struct ps_strings;
56 void __start(char **, void (*)(void), struct Struct_Obj_Entry *, struct ps_strings *);
63 struct ps_strings *ps_strings __unused) in __start()
/freebsd-12.1/lib/csu/sparc64/
H A Dcrt1.c45 struct ps_strings;
57 struct ps_strings *);
75 struct ps_strings *ps_strings __unused) in _start()
/freebsd-12.1/sys/sys/
H A Dexec.h56 struct ps_strings { struct
79 #define PS_STRINGS (USRSTACK - sizeof(struct ps_strings))
H A Dimgact.h77 unsigned long ps_strings; /* PS_STRINGS for BSD/OS binaries */ member
/freebsd-12.1/sys/arm64/linux/
H A Dlinux_sysvec.c157 struct ps_strings *arginfo; in linux_elf_fixup()
163 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings; in linux_elf_fixup()
226 struct ps_strings *arginfo; in linux_copyout_strings()
239 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings; in linux_copyout_strings()
/freebsd-12.1/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;
/freebsd-12.1/sys/kern/
H A Dimgact_aout.c74 #define AOUT32_PS_STRINGS (AOUT32_USRSTACK - sizeof(struct ps_strings))
203 imgp->ps_strings = aout_sysvec.sv_psstrings; in exec_aout_imgact()
H A Dimgact_elf.c2481 elf_ps_strings_t ps_strings; in __elfN() local
2486 size = sizeof(structsize) + sizeof(ps_strings); in __elfN()
2489 structsize = sizeof(ps_strings); in __elfN()
2491 ps_strings = PTROUT(p->p_sysent->sv_psstrings); in __elfN()
2493 ps_strings = p->p_sysent->sv_psstrings; in __elfN()
2496 sbuf_bcat(sb, &ps_strings, sizeof(ps_strings)); in __elfN()
H A Dkern_exec.c125 SYSCTL_PROC(_kern, KERN_PS_STRINGS, ps_strings, CTLTYPE_ULONG|CTLFLAG_RD|
1486 struct ps_strings *arginfo; in exec_copyout_strings()
1503 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings; in exec_copyout_strings()
H A Dkern_proc.c1748 struct ps_strings pss; in get_proc_vector()
2799 vm_offset_t ps_strings; in sysctl_kern_proc_ps_strings() local
2824 ps_strings = p->p_sysent->sv_psstrings; in sysctl_kern_proc_ps_strings()
2826 error = SYSCTL_OUT(req, &ps_strings, sizeof(ps_strings)); in sysctl_kern_proc_ps_strings()
3062 static SYSCTL_NODE(_kern_proc, KERN_PROC_PS_STRINGS, ps_strings, CTLFLAG_RD |
/freebsd-12.1/sys/amd64/linux/
H A Dlinux_sysvec.c246 struct ps_strings *arginfo; in linux_fixup_elf()
251 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings; in linux_fixup_elf()
314 struct ps_strings *arginfo; in linux_copyout_strings()
326 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings; in linux_copyout_strings()
/freebsd-12.1/sys/i386/linux/
H A Dlinux_sysvec.c93 #define LINUX_PS_STRINGS (LINUX_USRSTACK - sizeof(struct ps_strings))
212 struct ps_strings *arginfo; in linux_fixup_elf()
220 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings; in linux_fixup_elf()
287 struct ps_strings *arginfo; in linux_copyout_strings()
298 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings; in linux_copyout_strings()
/freebsd-12.1/sys/mips/mips/
H A Dpm_machdep.c468 td->td_frame->a3 = (register_t)imgp->ps_strings; in exec_setregs()
/freebsd-12.1/lib/libprocstat/
H A Dcore.c346 struct ps_strings pss; in get_args()
/freebsd-12.1/sys/powerpc/powerpc/
H A Dexec_machdep.c535 tf->fixreg[8] = (register_t)imgp->ps_strings; /* NetBSD extension */ in exec_setregs()
563 tf->fixreg[8] = (register_t)imgp->ps_strings; /* NetBSD extension */ in ppc32_setregs()
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cc96 extern struct ps_strings *__ps_strings;
597 ps_strings *pss; in GetArgsAndEnv()
/freebsd-12.1/sys/amd64/linux32/
H A Dlinux32_sysvec.c756 regs->tf_rbx = imgp->ps_strings; in linux_exec_setregs()
/freebsd-12.1/sys/amd64/ia32/
H A Dia32_signal.c967 regs->tf_rbx = imgp->ps_strings; in ia32_setregs()
/freebsd-12.1/sys/i386/i386/
H A Dmachdep.c1188 regs->tf_ebx = imgp->ps_strings; in exec_setregs()