diff options
| author | atatat <atatat@NetBSD.org> | 2005-10-01 03:17:37 +0000 |
|---|---|---|
| committer | atatat <atatat@NetBSD.org> | 2005-10-01 03:17:37 +0000 |
| commit | fca6393ad4aec7273b6c52f3736cae3129f3ff2a (patch) | |
| tree | 4b7e9904dee50e6da8e228134971866a36f820fa /sbin/mount_procfs | |
| parent | 97776d231dc1519ae5c187974a38418fd2f8eda1 (diff) | |
Add "cwd" and "root" symlinks to each process's directory. The cwd
link points to the process's current working directory, and the root
link points to the process's root directory. What else would you
expect?
For directories that are out of reach (caller is in a chroot, target
process is in a different chroot, etc), the links point to "/"
instead.
Diffstat (limited to 'sbin/mount_procfs')
| -rw-r--r-- | sbin/mount_procfs/mount_procfs.8 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sbin/mount_procfs/mount_procfs.8 b/sbin/mount_procfs/mount_procfs.8 index 059b87da7cf..c6fa3e836db 100644 --- a/sbin/mount_procfs/mount_procfs.8 +++ b/sbin/mount_procfs/mount_procfs.8 @@ -1,4 +1,4 @@ -.\" $NetBSD: mount_procfs.8,v 1.26 2005/01/31 05:19:19 erh Exp $ +.\" $NetBSD: mount_procfs.8,v 1.27 2005/10/01 03:17:37 atatat Exp $ .\" .\" Copyright (c) 1992, 1993 .\" The Regents of the University of California. All rights reserved. @@ -130,6 +130,13 @@ prefix, in which case that signal is delivered to the process (see .Xr sigaction 2 ) . +.It Pa cwd +A symbolic link that points to the current working directory of the +process. +If the target process's current working directory is not available or +is not at or below the current process's root directory, this link +will point to +.Dq / . .It Pa file A reference to the vnode from which the process text was read. This can be used to gain access to the process' symbol table, @@ -169,6 +176,11 @@ in .Pa fpregs is only implemented on machines which have distinct general purpose and floating point register sets. +.It Pa root +A symbolic link that points to the root directory of the process. +If the target process's root directory is not available or is not at +or below the current process's root directory, this link will point to +.Dq / . .It Pa status The process status. This file is readonly and returns a single line containing |
