From 70196747af629536842998272e2f7945f35dbb61 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 3 Nov 1996 23:53:51 +0000 Subject: cpp-indent + change some #ifdef to #if --- lib/fsusage.c | 60 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'lib/fsusage.c') diff --git a/lib/fsusage.c b/lib/fsusage.c index c669c5e36..62cffb435 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -15,8 +15,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifdef HAVE_CONFIG_H -#include +#if HAVE_CONFIG_H +# include #endif #include @@ -25,40 +25,40 @@ int statfs (); -#ifdef HAVE_SYS_PARAM_H -#include +#if HAVE_SYS_PARAM_H +# include #endif -#ifdef HAVE_SYS_MOUNT_H -#include +#if HAVE_SYS_MOUNT_H +# include #endif -#ifdef HAVE_SYS_VFS_H -#include +#if HAVE_SYS_VFS_H +# include #endif -#ifdef HAVE_SYS_FS_S5PARAM_H /* Fujitsu UXP/V */ -#include +#if HAVE_SYS_FS_S5PARAM_H /* Fujitsu UXP/V */ +# include #endif #if defined(HAVE_SYS_FILSYS_H) && !defined(_CRAY) -#include /* SVR2. */ +# include /* SVR2. */ #endif -#ifdef HAVE_FCNTL_H -#include +#if HAVE_FCNTL_H +# include #endif -#ifdef HAVE_SYS_STATFS_H -#include +#if HAVE_SYS_STATFS_H +# include #endif -#ifdef HAVE_DUSTAT_H /* AIX PS/2. */ -#include +#if HAVE_DUSTAT_H /* AIX PS/2. */ +# include #endif -#ifdef HAVE_SYS_STATVFS_H /* SVR4. */ -#include +#if HAVE_SYS_STATVFS_H /* SVR4. */ +# include int statvfs (); #endif @@ -103,7 +103,7 @@ get_fs_usage (path, disk, fsp) if (statfs (path, &fsd, sizeof (struct statfs)) != 0) return -1; -#define CONVERT_BLOCKS(b) adjust_blocks ((b), fsd.f_fsize, 512) +# define CONVERT_BLOCKS(b) adjust_blocks ((b), fsd.f_fsize, 512) #endif /* STAT_STATFS3_OSF1 */ #ifdef STAT_STATFS2_FS_DATA /* Ultrix. */ @@ -111,7 +111,7 @@ get_fs_usage (path, disk, fsp) if (statfs (path, &fsd) != 1) return -1; -#define CONVERT_BLOCKS(b) adjust_blocks ((b), 1024, 512) +# define CONVERT_BLOCKS(b) adjust_blocks ((b), 1024, 512) fsp->fsu_blocks = CONVERT_BLOCKS (fsd.fd_req.btot); fsp->fsu_bfree = CONVERT_BLOCKS (fsd.fd_req.bfree); fsp->fsu_bavail = CONVERT_BLOCKS (fsd.fd_req.bfreen); @@ -120,9 +120,9 @@ get_fs_usage (path, disk, fsp) #endif #ifdef STAT_READ_FILSYS /* SVR2. */ -#ifndef SUPERBOFF -#define SUPERBOFF (SUPERB * 512) -#endif +# ifndef SUPERBOFF +# define SUPERBOFF (SUPERB * 512) +# endif struct filsys fsd; int fd; @@ -136,7 +136,7 @@ get_fs_usage (path, disk, fsp) return -1; } close (fd); -#define CONVERT_BLOCKS(b) adjust_blocks ((b), (fsd.s_type == Fs2b ? 1024 : 512), 512) +# define CONVERT_BLOCKS(b) adjust_blocks ((b), (fsd.s_type == Fs2b ? 1024 : 512), 512) fsp->fsu_blocks = CONVERT_BLOCKS (fsd.s_fsize); fsp->fsu_bfree = CONVERT_BLOCKS (fsd.s_tfree); fsp->fsu_bavail = CONVERT_BLOCKS (fsd.s_tfree); @@ -150,7 +150,7 @@ get_fs_usage (path, disk, fsp) if (statfs (path, &fsd) < 0) return -1; -#ifdef STATFS_TRUNCATES_BLOCK_COUNTS +# ifdef STATFS_TRUNCATES_BLOCK_COUNTS /* In SunOS 4.1.2, 4.1.3, and 4.1.3_U1, the block counts in the struct statfs are truncated to 2GB. These conditions detect that truncation, presumably without botching the 4.1.1 case, in which @@ -162,9 +162,9 @@ get_fs_usage (path, disk, fsp) fsd.f_bfree = fsd.f_spare[1]; fsd.f_bavail = fsd.f_spare[2]; } -#endif /* STATFS_TRUNCATES_BLOCK_COUNTS */ +# endif /* STATFS_TRUNCATES_BLOCK_COUNTS */ -#define CONVERT_BLOCKS(b) adjust_blocks ((b), fsd.f_bsize, 512) +# define CONVERT_BLOCKS(b) adjust_blocks ((b), fsd.f_bsize, 512) #endif #ifdef STAT_STATFS2_FSIZE /* 4.4BSD. */ @@ -172,7 +172,7 @@ get_fs_usage (path, disk, fsp) if (statfs (path, &fsd) < 0) return -1; -#define CONVERT_BLOCKS(b) adjust_blocks ((b), fsd.f_fsize, 512) +# define CONVERT_BLOCKS(b) adjust_blocks ((b), fsd.f_fsize, 512) #endif #ifdef STAT_STATFS4 /* SVR3, Dynix, Irix, AIX. */ @@ -204,7 +204,7 @@ get_fs_usage (path, disk, fsp) if (statvfs (path, &fsd) < 0) return -1; /* f_frsize isn't guaranteed to be supported. */ -#define CONVERT_BLOCKS(b) \ +# define CONVERT_BLOCKS(b) \ adjust_blocks ((b), fsd.f_frsize ? fsd.f_frsize : fsd.f_bsize, 512) #endif -- cgit v1.2.3-54-g00ecf