blob: 0d770dd72a94ae51fcc5cd1d503c59677b8bbc39 [file] [log] [blame]
Matt Mower523a0592015-12-13 11:31:00 -06001/*
2 * Copyright (C) 2012 Freescale Semiconductor, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 */
19
20#ifndef _SYS_STATVFS_H_
21#define _SYS_STATVFS_H_
22#include <sys/types.h>
23
24struct statvfs {
25 unsigned long f_bsize; /* file system block size */
26 unsigned long f_frsize; /* fragment size */
27 fsblkcnt_t f_blocks; /* size of fs in f_frsize units */
28 fsblkcnt_t f_bfree; /* # free blocks */
29 fsblkcnt_t f_bavail; /* # free blocks for non-root */
30 fsfilcnt_t f_files; /* # inodes */
31 fsfilcnt_t f_ffree; /* # free inodes */
32 fsfilcnt_t f_favail; /* # free inodes for non-root */
33 unsigned long f_fsid; /* file system ID */
34 unsigned long f_flag; /* mount flags */
35 unsigned long f_namemax; /* maximum filename length */
36};
37
38int statvfs(const char *, struct statvfs *);
39#endif