summaryrefslogtreecommitdiffstats
path: root/gnu/libexec/uucp/libunix/bytfre.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/libexec/uucp/libunix/bytfre.c')
-rw-r--r--gnu/libexec/uucp/libunix/bytfre.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gnu/libexec/uucp/libunix/bytfre.c b/gnu/libexec/uucp/libunix/bytfre.c
deleted file mode 100644
index 3091e7a..0000000
--- a/gnu/libexec/uucp/libunix/bytfre.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* bytfre.c
- Get the number of bytes free on a file system. */
-
-#include "uucp.h"
-
-#include "system.h"
-#include "sysdep.h"
-#include "fsusg.h"
-
-#if HAVE_LIMITS_H
-#include <limits.h>
-#else
-#define LONG_MAX 2147483647
-#endif
-
-long
-csysdep_bytes_free (zfile)
- const char *zfile;
-{
- struct fs_usage s;
-
- if (get_fs_usage ((char *) zfile, (char *) NULL, &s) < 0)
- return -1;
- if (s.fsu_bavail >= LONG_MAX / (long) 512)
- return LONG_MAX;
- return s.fsu_bavail * (long) 512;
-}
OpenPOWER on IntegriCloud