OpenSolaris_b135/lib/brand/lx/lx_brand/sys/lx_statfs.h

Compare this file to the similar file:
Show the results in this format:

/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License (the "License").
 * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 * or http://www.opensolaris.org/os/licensing.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information: Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */
/*
 * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 */

#ifndef	_LX_STATFS_H
#define	_LX_STATFS_H

#pragma ident	"%Z%%M%	%I%	%E% SMI"

#ifdef	__cplusplus
extern "C" {
#endif

extern int lx_statfs_init(void);

struct lx_statfs {
	int		f_type;
	int		f_bsize;
	ulong_t		f_blocks;
	ulong_t		f_bfree;
	ulong_t		f_bavail;
	ulong_t		f_files;
	ulong_t		f_ffree;
	u_longlong_t	f_fsid;
	int		f_namelen;
	int		f_frsize;
	int		f_spare[5];
};

struct lx_statfs64 {
	int		f_type;
	int		f_bsize;
	u_longlong_t	f_blocks;
	u_longlong_t	f_bfree;
	u_longlong_t	f_bavail;
	u_longlong_t	f_files;
	u_longlong_t	f_ffree;
	u_longlong_t	f_fsid;
	int		f_namelen;
	int		f_frsize;
	int		f_spare[5];
};

/*
 * These magic values are taken mostly from statfs(2).
 */
#define	LX_ISOFS_SUPER_MAGIC		0x9660
#define	LX_NFS_SUPER_MAGIC		0x6969
#define	LX_MSDOS_SUPER_MAGIC		0x4d44
#define	LX_PROC_SUPER_MAGIC		0x9fa0
#define	LX_UFS_MAGIC			0x00011954
#define	LX_DEVPTS_SUPER_MAGIC		0x1cd1

#ifdef	__cplusplus
}
#endif

#endif	/* _LX_STATFS_H */