1139743Simp/*- 243412Snewton * Copyright (c) 1998 Mark Newton 343412Snewton * Copyright (c) 1994 Christos Zoulas 443412Snewton * All rights reserved. 543412Snewton * 643412Snewton * Redistribution and use in source and binary forms, with or without 743412Snewton * modification, are permitted provided that the following conditions 843412Snewton * are met: 943412Snewton * 1. Redistributions of source code must retain the above copyright 1043412Snewton * notice, this list of conditions and the following disclaimer. 1143412Snewton * 2. Redistributions in binary form must reproduce the above copyright 1243412Snewton * notice, this list of conditions and the following disclaimer in the 1343412Snewton * documentation and/or other materials provided with the distribution. 1443412Snewton * 3. The name of the author may not be used to endorse or promote products 1543412Snewton * derived from this software without specific prior written permission 1643412Snewton * 1743412Snewton * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1843412Snewton * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1943412Snewton * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2043412Snewton * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2143412Snewton * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2243412Snewton * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2343412Snewton * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2443412Snewton * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2543412Snewton * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2643412Snewton * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2749267Snewton * 2850477Speter * $FreeBSD$ 2943412Snewton */ 3043412Snewton 3143412Snewton#ifndef _SVR4_STATVFS_H_ 3243412Snewton#define _SVR4_STATVFS_H_ 3343412Snewton 3443412Snewtontypedef struct svr4_statvfs { 3543412Snewton u_long f_bsize; 3643412Snewton u_long f_frsize; 3743412Snewton svr4_fsblkcnt_t f_blocks; 3843412Snewton svr4_fsblkcnt_t f_bfree; 3943412Snewton svr4_fsblkcnt_t f_bavail; 4043412Snewton svr4_fsblkcnt_t f_files; 4143412Snewton svr4_fsblkcnt_t f_ffree; 4243412Snewton svr4_fsblkcnt_t f_favail; 4343412Snewton u_long f_fsid; 4443412Snewton char f_basetype[16]; 4543412Snewton u_long f_flag; 4643412Snewton u_long f_namemax; 4743412Snewton char f_fstr[32]; 4843412Snewton u_long f_filler[16]; 4943412Snewton} svr4_statvfs_t; 5043412Snewton 5143412Snewtontypedef struct svr4_statvfs64 { 5243412Snewton u_long f_bsize; 5343412Snewton u_long f_frsize; 5443412Snewton svr4_fsblkcnt64_t f_blocks; 5543412Snewton svr4_fsblkcnt64_t f_bfree; 5643412Snewton svr4_fsblkcnt64_t f_bavail; 5743412Snewton svr4_fsblkcnt64_t f_files; 5843412Snewton svr4_fsblkcnt64_t f_ffree; 5943412Snewton svr4_fsblkcnt64_t f_favail; 6043412Snewton u_long f_fsid; 6143412Snewton char f_basetype[16]; 6243412Snewton u_long f_flag; 6343412Snewton u_long f_namemax; 6443412Snewton char f_fstr[32]; 6543412Snewton u_long f_filler[16]; 6643412Snewton} svr4_statvfs64_t; 6743412Snewton 6843412Snewton#define SVR4_ST_RDONLY 0x01 6943412Snewton#define SVR4_ST_NOSUID 0x02 7043412Snewton#define SVR4_ST_NOTRUNC 0x04 7143412Snewton 7243412Snewton#endif /* !_SVR4_STATVFS_H_ */ 73