~ubuntu-branches/ubuntu/maverick/hello/maverick

« back to all changes in this revision

Viewing changes to src/system.h

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-01-05 16:42:30 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040105164230-ze0yqbimyx4sx1gs
Tags: 2.1.1-4
Updated config.guess and config.sub for GNU/K*BSD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* system.h
 
2
   Copyright (C) 1996 Free Software Foundation, Inc. */
 
3
 
 
4
/* Include sys/types.h before this file.  */
 
5
 
 
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
 
10
#endif
 
11
#if !defined(DEV_BSIZE) && defined(BBSIZE) /* SGI */
 
12
#define DEV_BSIZE BBSIZE
 
13
#endif
 
14
#ifndef DEV_BSIZE
 
15
#define DEV_BSIZE 4096
 
16
#endif
 
17
 
 
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 */
 
27
 
 
28
/* system.h ends here */