2
Copyright (C) 1996 Free Software Foundation, Inc. */
4
/* Include sys/types.h before this file. */
6
/* Get or fake the disk device blocksize.
7
Usually defined by sys/param.h (if at all). */
8
#if !defined(DEV_BSIZE) && defined(BSIZE)
9
#define DEV_BSIZE BSIZE
11
#if !defined(DEV_BSIZE) && defined(BBSIZE) /* SGI */
12
#define DEV_BSIZE BBSIZE
15
#define DEV_BSIZE 4096
18
/* Extract or fake data from a `struct stat'.
19
ST_BLKSIZE: Optimal I/O blocksize for the file, in bytes. */
20
#ifndef HAVE_ST_BLKSIZE
21
# define ST_BLKSIZE(statbuf) DEV_BSIZE
22
#else /* HAVE_ST_BLKSIZE */
23
/* Some systems, like Sequents, return st_blksize of 0 on pipes. */
24
# define ST_BLKSIZE(statbuf) ((statbuf).st_blksize > 0 \
25
? (statbuf).st_blksize : DEV_BSIZE)
26
#endif /* HAVE_ST_BLKSIZE */
28
/* system.h ends here */