1185743Ssam/*	$NetBSD: svr4_statvfs.h,v 1.3 1998/09/04 19:54:40 christos Exp $	 */
2185743Ssam
3185743Ssam/*-
4185743Ssam * Copyright (c) 1994 The NetBSD Foundation, Inc.
5185743Ssam * All rights reserved.
6185743Ssam *
7185743Ssam * This code is derived from software contributed to The NetBSD Foundation
8185743Ssam * by Christos Zoulas.
9185743Ssam *
10185743Ssam * Redistribution and use in source and binary forms, with or without
11185743Ssam * modification, are permitted provided that the following conditions
12185743Ssam * are met:
13185743Ssam * 1. Redistributions of source code must retain the above copyright
14185743Ssam *    notice, this list of conditions and the following disclaimer.
15185743Ssam * 2. Redistributions in binary form must reproduce the above copyright
16185743Ssam *    notice, this list of conditions and the following disclaimer in the
17185743Ssam *    documentation and/or other materials provided with the distribution.
18185743Ssam *
19185743Ssam * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20185743Ssam * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21185743Ssam * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22185743Ssam * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23185743Ssam * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24185743Ssam * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25185743Ssam * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26185743Ssam * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27185743Ssam * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28185743Ssam * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29185743Ssam * POSSIBILITY OF SUCH DAMAGE.
30185743Ssam */
31185743Ssam
32185743Ssam#ifndef	_SVR4_STATVFS_H_
33185743Ssam#define	_SVR4_STATVFS_H_
34185743Ssam
35185743Ssamtypedef struct svr4_statvfs {
36185743Ssam	u_long			f_bsize;
37185743Ssam	u_long			f_frsize;
38185743Ssam	svr4_fsblkcnt_t		f_blocks;
39185743Ssam	svr4_fsblkcnt_t		f_bfree;
40185743Ssam	svr4_fsblkcnt_t		f_bavail;
41238651Sadrian	svr4_fsblkcnt_t		f_files;
42185743Ssam	svr4_fsblkcnt_t		f_ffree;
43185743Ssam	svr4_fsblkcnt_t		f_favail;
44185743Ssam	u_long			f_fsid;
45185743Ssam	char			f_basetype[16];
46185743Ssam	u_long			f_flag;
47185743Ssam	u_long			f_namemax;
48185743Ssam	char			f_fstr[32];
49185743Ssam	u_long			f_filler[16];
50185743Ssam} svr4_statvfs_t;
51185743Ssam
52185743Ssamtypedef struct svr4_statvfs64 {
53185743Ssam	u_long			f_bsize;
54185743Ssam	u_long			f_frsize;
55185743Ssam	svr4_fsblkcnt64_t	f_blocks;
56185743Ssam	svr4_fsblkcnt64_t	f_bfree;
57185743Ssam	svr4_fsblkcnt64_t	f_bavail;
58185743Ssam	svr4_fsblkcnt64_t	f_files;
59185743Ssam	svr4_fsblkcnt64_t	f_ffree;
60185743Ssam	svr4_fsblkcnt64_t	f_favail;
61185743Ssam	u_long			f_fsid;
62185743Ssam	char			f_basetype[16];
63	u_long			f_flag;
64	u_long			f_namemax;
65	char			f_fstr[32];
66	u_long			f_filler[16];
67} svr4_statvfs64_t;
68
69#define	SVR4_ST_RDONLY	0x01
70#define	SVR4_ST_NOSUID	0x02
71#define	SVR4_ST_NOTRUNC	0x04
72
73#endif /* !_SVR4_STATVFS_H_ */
74