From 913a0dc0cabeb7898e051681dc01218d9f83949f Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 13 Sep 2005 01:58:02 +0000 Subject: Add vacfilegetmode. --- src/cmd/vac/file.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cmd') 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 @@ -992,6 +992,12 @@ vacfileisdir(VacFile *f) return (f->dir.mode & ModeDir) != 0; } +int +vacfilegetmode(VacFile *f) +{ + return f->dir.mode; +} + int vacfileisroot(VacFile *f) { -- cgit v1.2.3