diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/fstat/fstat.1 | 4 | ||||
-rw-r--r-- | usr.bin/fstat/fstat.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/fstat/fstat.1 b/usr.bin/fstat/fstat.1 index 02a3588e..d3f7c2d 100644 --- a/usr.bin/fstat/fstat.1 +++ b/usr.bin/fstat/fstat.1 @@ -49,7 +49,7 @@ .Nm Fstat identifies open files. A file is considered open by a process if it was explicitly opened, -is the working directory, root directory, active pure text, or kernel +is the working directory, root directory, active executable text, or kernel trace file for that process. If no options are specified, .Nm fstat @@ -112,7 +112,7 @@ The file number in the per-process open file table or one of the following special names: .Pp .Bd -ragged -offset indent -compact -text - pure text inode +text - executable text inode wd - current working directory root - root inode tr - kernel trace file diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index f92c175..fe4b7d0 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -332,6 +332,11 @@ dofiles(kp) if (p->p_tracep) vtrans(p->p_tracep, TRACE, FREAD|FWRITE); /* + * text vnode, if one + */ + if (p->p_textvp) + vtrans(p->p_textvp, TEXT, FREAD); + /* * open files */ #define FPSIZE (sizeof (struct file *)) |