xref: /titanic_51/usr/src/uts/common/sys/ustat.h (revision bbaa8b60dd95d714741fc474adad3cf710ef4efd)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 /*
27  * WARNING: The ustat system call will become obsolete in the
28  * next major release following SVR4. Application code should
29  * migrate to the replacement system call statvfs(2).
30  */
31 
32 /*
33  * Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
34  * Use is subject to license terms.
35  */
36 
37 #ifndef _SYS_USTAT_H
38 #define	_SYS_USTAT_H
39 
40 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 11.8 */
41 
42 #include <sys/types.h>
43 
44 #ifdef	__cplusplus
45 extern "C" {
46 #endif
47 
48 #if !defined(_LP64) && _FILE_OFFSET_BITS == 64
49 #error	"Cannot use ustat in the large files compilation environment"
50 #endif
51 
52 struct  ustat {
53 	daddr_t	f_tfree;	/* total free */
54 	ino_t	f_tinode;	/* total inodes free */
55 	char	f_fname[6];	/* filsys name */
56 	char	f_fpack[6];	/* filsys pack name */
57 };
58 
59 #if defined(_SYSCALL32)
60 
61 struct	ustat32 {
62 	daddr32_t	f_tfree;	/* total free */
63 	ino32_t		f_tinode;	/* total inodes free */
64 	char		f_fname[6];	/* filsys name */
65 	char		f_fpack[6];	/* filsys pack name */
66 };
67 
68 #endif	/* _SYSCALL32 */
69 
70 #ifdef	__cplusplus
71 }
72 #endif
73 
74 #endif	/* _SYS_USTAT_H */
75