diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:05:07 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:05:07 +0100 |
commit | ab69e22f688ed0f0ceaddfb40a3958cfa44e1485 (patch) | |
tree | 6b1573bf97769d7afac0a329cfa557eb4e5a8460 | |
parent | 841fb3c2b5fc1472e4d7ecf67ffbfec2c7075f56 (diff) |
Changed available_space()
-rw-r--r-- | FICS/utils.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index 441ec65..9c62696 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -816,28 +816,10 @@ PUBLIC char *dotQuad(unsigned int a) return tmp; } -PUBLIC int available_space(void) +PUBLIC int +available_space(void) { -#if defined(SYSTEM_NEXT) - struct statfs buf; - - statfs(player_dir, &buf); - return ((buf.f_bsize * buf.f_bavail)); -#elif defined(SYSTEM_ULTRIX) - struct fs_data buf; - - statfs(player_dir, &buf); - return ((1024 * buf.bfreen)); -#elif defined(SYSTEM_SUN4) -/* - struct statfs buf; - - statfs(player_dir, buf); - return (1024 * buf.f_bfree); */ - return 100000000; /* Infinite space */ -#else - return 100000000; /* Infinite space */ -#endif + return 100000000; /* Infinite space */ } PUBLIC int |