summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib/pen.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-04-22 13:58:44 +0000
committerjkh <jkh@FreeBSD.org>1995-04-22 13:58:44 +0000
commitd3abd00ffec4e327d8ad0d9d1401caf10752f449 (patch)
tree7aff6de9fe129eefedbbfe9af4b9488f6e43469c /usr.sbin/pkg_install/lib/pen.c
parent631042660156d0f11cb143dc9a3fc9667a5705e2 (diff)
downloadFreeBSD-src-d3abd00ffec4e327d8ad0d9d1401caf10752f449.zip
FreeBSD-src-d3abd00ffec4e327d8ad0d9d1401caf10752f449.tar.gz
Export the min_free() function.
Diffstat (limited to 'usr.sbin/pkg_install/lib/pen.c')
-rw-r--r--usr.sbin/pkg_install/lib/pen.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c
index fe1468a..07ba4aa 100644
--- a/usr.sbin/pkg_install/lib/pen.c
+++ b/usr.sbin/pkg_install/lib/pen.c
@@ -1,5 +1,5 @@
#ifndef lint
-static const char *rcsid = "$Id: pen.c,v 1.10 1995/04/18 13:04:34 jkh Exp $";
+static const char *rcsid = "$Id: pen.c,v 1.11 1995/04/21 06:30:41 jkh Exp $";
#endif
/*
@@ -30,8 +30,6 @@ static const char *rcsid = "$Id: pen.c,v 1.10 1995/04/18 13:04:34 jkh Exp $";
static char Cwd[FILENAME_MAX];
static char Pen[FILENAME_MAX];
-static long min_free(char *);
-
/*
* Make a temporary directory to play in and chdir() to it, returning
* pathname of previous working directory.
@@ -93,10 +91,13 @@ where_playpen(void)
return NULL;
}
-static long min_free(char *tmpdir)
+long
+min_free(char *tmpdir)
{
struct statfs buf;
+ if (!tmpdir)
+ tmpdir = Pen;
if (statfs(tmpdir, &buf) != 0) {
perror("Error in statfs");
return -1;
OpenPOWER on IntegriCloud