diff options
author | peter <peter@FreeBSD.org> | 1996-08-24 13:43:46 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-08-24 13:43:46 +0000 |
commit | 5de1717df65217d69ab1d759c49815a133dc2a86 (patch) | |
tree | dae0e1aad0834644c124ba8995f8c379a47a4aef /usr.bin | |
parent | 73b870d08718378d7ccc3271d6fe94762ee3be6a (diff) | |
download | FreeBSD-src-5de1717df65217d69ab1d759c49815a133dc2a86.zip FreeBSD-src-5de1717df65217d69ab1d759c49815a133dc2a86.tar.gz |
Locate the text inode, closes PR#1070
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 *)) |