Locate the text inode, closes PR#1070

This commit is contained in:
peter 1996-08-24 13:43:46 +00:00
parent 64aaa1c0cd
commit 212e1aa3b0
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -331,6 +331,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
*/