aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sysctl.h
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2005-04-18 02:10:37 +0000
committerDavid Schultz <das@FreeBSD.org>2005-04-18 02:10:37 +0000
commitfe769cdd95d9ca0a717347fda6a6d7f221da3dc2 (patch)
tree8c45b36fc5a18072346900999b3e287e63a24ebd /sys/sys/sysctl.h
parent7bd4e568500e79b96b06681d7785913b8c66c0cf (diff)
downloadsrc-fe769cdd95d9ca0a717347fda6a6d7f221da3dc2.tar.gz
src-fe769cdd95d9ca0a717347fda6a6d7f221da3dc2.zip
Add a sysctl that returns the full path of a process' text file.
This information is needed by things like `gdb -p' and Sun's javac, and previously it could only be obtained via procfs
Notes
Notes: svn path=/head/; revision=145216
Diffstat (limited to 'sys/sys/sysctl.h')
-rw-r--r--sys/sys/sysctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index 7879e424e843..c9532aca6d56 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -428,6 +428,7 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry);
#define KERN_PROC_SV_NAME 9 /* get syscall vector name */
#define KERN_PROC_RGID 10 /* by real group id */
#define KERN_PROC_GID 11 /* by effective group id */
+#define KERN_PROC_PATHNAME 12 /* path to executable */
#define KERN_PROC_INC_THREAD 0x10 /*
* modifier for pid, pgrp, tty,
* uid, ruid, gid, rgid and proc