aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vac
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-09-13 01:58:02 +0000
committerrsc <devnull@localhost>2005-09-13 01:58:02 +0000
commit913a0dc0cabeb7898e051681dc01218d9f83949f (patch)
tree503252dd0c9792e39b01457419200bc0fcfb06f7 /src/cmd/vac
parent7f721693ecb469fdb76150df881fa2e2621450f5 (diff)
downloadplan9port-913a0dc0cabeb7898e051681dc01218d9f83949f.tar.gz
plan9port-913a0dc0cabeb7898e051681dc01218d9f83949f.tar.bz2
plan9port-913a0dc0cabeb7898e051681dc01218d9f83949f.zip
Add vacfilegetmode.
Diffstat (limited to 'src/cmd/vac')
-rw-r--r--src/cmd/vac/file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/vac/file.c b/src/cmd/vac/file.c
index e5629aed..c79b0108 100644
--- a/src/cmd/vac/file.c
+++ b/src/cmd/vac/file.c
@@ -993,6 +993,12 @@ vacfileisdir(VacFile *f)
}
int
+vacfilegetmode(VacFile *f)
+{
+ return f->dir.mode;
+}
+
+int
vacfileisroot(VacFile *f)
{
return f == f->fs->root;