OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [include/] [sys/] [statvfs.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
/* Definitions for getting information about a filesystem.
2
   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
3
   This file is part of the GNU C Library.
4
 
5
   The GNU C Library is free software; you can redistribute it and/or
6
   modify it under the terms of the GNU Lesser General Public
7
   License as published by the Free Software Foundation; either
8
   version 2.1 of the License, or (at your option) any later version.
9
 
10
   The GNU C Library is distributed in the hope that it will be useful,
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
   Lesser General Public License for more details.
14
 
15
   You should have received a copy of the GNU Lesser General Public
16
   License along with the GNU C Library; if not, write to the Free
17
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18
   02111-1307 USA.  */
19
 
20
#ifndef _SYS_STATVFS_H
21
#define _SYS_STATVFS_H  1
22
 
23
#include <features.h>
24
 
25
/* Get the system-specific definition of `struct statfs'.  */
26
#include <bits/statvfs.h>
27
 
28
#ifndef __USE_FILE_OFFSET64
29
# ifndef __fsblkcnt_t_defined
30
typedef __fsblkcnt_t fsblkcnt_t; /* Type to count file system blocks.  */
31
#  define __fsblkcnt_t_defined
32
# endif
33
# ifndef __fsfilcnt_t_defined
34
typedef __fsfilcnt_t fsfilcnt_t; /* Type to count file system inodes.  */
35
#  define __fsfilcnt_t_defined
36
# endif
37
#else
38
# ifndef __fsblkcnt_t_defined
39
typedef __fsblkcnt64_t fsblkcnt_t; /* Type to count file system blocks.  */
40
#  define __fsblkcnt_t_defined
41
# endif
42
# ifndef __fsfilcnt_t_defined
43
typedef __fsfilcnt64_t fsfilcnt_t; /* Type to count file system inodes.  */
44
#  define __fsfilcnt_t_defined
45
# endif
46
#endif
47
 
48
__BEGIN_DECLS
49
 
50
/* Return information about the filesystem on which FILE resides.  */
51
#ifndef __USE_FILE_OFFSET64
52
extern int statvfs (__const char *__restrict __file,
53
                    struct statvfs *__restrict __buf) __THROW;
54
#else
55
# ifdef __REDIRECT
56
extern int __REDIRECT (statvfs,
57
                       (__const char *__restrict __file,
58
                        struct statvfs *__restrict __buf) __THROW,
59
                       statvfs64);
60
# else
61
#  define statvfs statvfs64
62
# endif
63
#endif
64
#ifdef __USE_LARGEFILE64
65
extern int statvfs64 (__const char *__restrict __file,
66
                      struct statvfs64 *__restrict __buf) __THROW;
67
#endif
68
 
69
/* Return information about the filesystem containing the file FILDES
70
   refers to.  */
71
#ifndef __USE_FILE_OFFSET64
72
extern int fstatvfs (int __fildes, struct statvfs *__buf) __THROW;
73
#else
74
# ifdef __REDIRECT
75
extern int __REDIRECT (fstatvfs, (int __fildes, struct statvfs *__buf) __THROW,
76
                       fstatvfs64);
77
# else
78
#  define fstatvfs fstatvfs64
79
# endif
80
#endif
81
#ifdef __USE_LARGEFILE64
82
extern int fstatvfs64 (int __fildes, struct statvfs64 *__buf) __THROW;
83
#endif
84
 
85
__END_DECLS
86
 
87
#endif  /* sys/statvfs.h */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.