comparison lib/fileblocks.c @ 599:eee505e8b62c

Indent CPP conditionals.
author Jim Meyering <jim@meyering.net>
date Sun, 28 Apr 1996 21:41:20 +0000
parents e504ab9c8abf
children b4ef1c1a0171
comparison
equal deleted inserted replaced
598:e504ab9c8abf 599:eee505e8b62c
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 /* Written by Brian L. Matthews, blm@6sceng.UUCP. */ 18 /* Written by Brian L. Matthews, blm@6sceng.UUCP. */
19 19
20 #ifdef HAVE_CONFIG_H 20 #ifdef HAVE_CONFIG_H
21 #include <config.h> 21 # include <config.h>
22 #endif 22 #endif
23 23
24 #if !defined (HAVE_ST_BLOCKS) && !defined(_POSIX_VERSION) 24 #if !defined (HAVE_ST_BLOCKS) && !defined(_POSIX_VERSION)
25 #include <sys/types.h> 25 # include <sys/types.h>
26 #include <sys/param.h> 26 # include <sys/param.h>
27 27
28 #ifndef NINDIR 28 # ifndef NINDIR
29 /* Some SysV's, like Irix, seem to lack these. Hope they're correct. */ 29 /* Some SysV's, like Irix, seem to lack these. Hope they're correct. */
30 /* Size of a indirect block, in bytes. */ 30 /* Size of a indirect block, in bytes. */
31 #ifndef BSIZE 31 # ifndef BSIZE
32 #define BSIZE 1024 32 # define BSIZE 1024
33 #endif 33 # endif
34 34
35 /* Number of inode pointers per indirect block. */ 35 /* Number of inode pointers per indirect block. */
36 #define NINDIR (BSIZE/sizeof(daddr_t)) 36 # define NINDIR (BSIZE/sizeof(daddr_t))
37 #endif /* !NINDIR */ 37 # endif /* !NINDIR */
38 38
39 /* Number of direct block addresses in an inode. */ 39 /* Number of direct block addresses in an inode. */
40 #define NDIR 10 40 # define NDIR 10
41 41
42 /* Return the number of 512-byte blocks in a file of SIZE bytes. */ 42 /* Return the number of 512-byte blocks in a file of SIZE bytes. */
43 43
44 long 44 long
45 st_blocks (size) 45 st_blocks (size)