FreeBSD Bugzilla – Attachment 145522 Details for
Bug 180970
[request] No manpage for ps_strings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
updated exec.h
sys_sys_exec.h-WB.diff (text/plain), 1.60 KB, created by
Warren Block
on 2014-08-08 14:09:21 UTC
(
hide
)
Description:
updated exec.h
Filename:
MIME Type:
Creator:
Warren Block
Created:
2014-08-08 14:09:21 UTC
Size:
1.60 KB
patch
obsolete
>Index: sys/sys/exec.h >=================================================================== >--- sys/sys/exec.h (revision 269684) >+++ sys/sys/exec.h (working copy) >@@ -39,12 +39,17 @@ > #define _SYS_EXEC_H_ > > /* >- * The following structure is found at the top of the user stack of each >- * user process. The ps program uses it to locate argv and environment >- * strings. Programs that wish ps to display other information may modify >- * it; normally ps_argvstr points to the argv vector, and ps_nargvstr >- * is the same as the program's argc. The fields ps_envstr and ps_nenvstr >- * are the equivalent for the environment. >+ * In the past, the following structure, found at the top of the user stack >+ * of each user process, was used by the kernel to locate environment and >+ * long argv strings. Normally ps_argvstr points to the argv vector, and >+ * ps_nargvstr is the same as the program's argc. The fields ps_envstr and >+ * ps_nenvstr are the equivalent for the environment. >+ * >+ * Modern programs should now use setproctitle(3) to change ps output. >+ * setproctitle() always informs the kernel with sysctl and sets the >+ * pointers in ps_strings. The kern.proc.args sysctl first tries p_args. >+ * If p_args is NULL, it then falls back to reading ps_strings and following >+ * the pointers. > */ > struct ps_strings { > char **ps_argvstr; /* first of 0 or more argument strings */ >@@ -55,6 +60,7 @@ > > /* > * Address of ps_strings structure (in user space). >+ * Prefer the kern.ps_strings or kern.proc.ps_strings sysctls to this constant. > */ > #define PS_STRINGS (USRSTACK - sizeof(struct ps_strings)) > #define SPARE_USRSPACE 4096
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 180970
:
144666
|
145049
|
145426
|
145522
|
145540