xref: /illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/fs (revision b30d193948be5a7794d7ae3ba0ed9c2f72c88e0f)
1*b30d1939SAndy Fiddaman
2*b30d1939SAndy Fiddaman/* : : generated by proto : : */
3*b30d1939SAndy Fiddaman/* : : generated from contrib/ast/src/lib/libast/features/fs by iffe version 2012-07-17 : : */
4*b30d1939SAndy Fiddaman
5*b30d1939SAndy Fiddaman#ifndef _def_fs_ast
6*b30d1939SAndy Fiddaman#if !defined(__PROTO__)
7*b30d1939SAndy Fiddaman#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
8*b30d1939SAndy Fiddaman#    if defined(__cplusplus)
9*b30d1939SAndy Fiddaman#      define __LINKAGE__	"C"
10*b30d1939SAndy Fiddaman#    else
11*b30d1939SAndy Fiddaman#      define __LINKAGE__
12*b30d1939SAndy Fiddaman#    endif
13*b30d1939SAndy Fiddaman#    define __STDARG__
14*b30d1939SAndy Fiddaman#    define __PROTO__(x)	x
15*b30d1939SAndy Fiddaman#    define __OTORP__(x)
16*b30d1939SAndy Fiddaman#    define __PARAM__(n,o)	n
17*b30d1939SAndy Fiddaman#    if !defined(__STDC__) && !defined(__cplusplus)
18*b30d1939SAndy Fiddaman#      if !defined(c_plusplus)
19*b30d1939SAndy Fiddaman#      	define const
20*b30d1939SAndy Fiddaman#      endif
21*b30d1939SAndy Fiddaman#      define signed
22*b30d1939SAndy Fiddaman#      define void		int
23*b30d1939SAndy Fiddaman#      define volatile
24*b30d1939SAndy Fiddaman#      define __V_		char
25*b30d1939SAndy Fiddaman#    else
26*b30d1939SAndy Fiddaman#      define __V_		void
27*b30d1939SAndy Fiddaman#    endif
28*b30d1939SAndy Fiddaman#  else
29*b30d1939SAndy Fiddaman#    define __PROTO__(x)	()
30*b30d1939SAndy Fiddaman#    define __OTORP__(x)	x
31*b30d1939SAndy Fiddaman#    define __PARAM__(n,o)	o
32*b30d1939SAndy Fiddaman#    define __LINKAGE__
33*b30d1939SAndy Fiddaman#    define __V_		char
34*b30d1939SAndy Fiddaman#    define const
35*b30d1939SAndy Fiddaman#    define signed
36*b30d1939SAndy Fiddaman#    define void		int
37*b30d1939SAndy Fiddaman#    define volatile
38*b30d1939SAndy Fiddaman#  endif
39*b30d1939SAndy Fiddaman#  define __MANGLE__	__LINKAGE__
40*b30d1939SAndy Fiddaman#  if defined(__cplusplus) || defined(c_plusplus)
41*b30d1939SAndy Fiddaman#    define __VARARG__	...
42*b30d1939SAndy Fiddaman#  else
43*b30d1939SAndy Fiddaman#    define __VARARG__
44*b30d1939SAndy Fiddaman#  endif
45*b30d1939SAndy Fiddaman#  if defined(__STDARG__)
46*b30d1939SAndy Fiddaman#    define __VA_START__(p,a)	va_start(p,a)
47*b30d1939SAndy Fiddaman#  else
48*b30d1939SAndy Fiddaman#    define __VA_START__(p,a)	va_start(p)
49*b30d1939SAndy Fiddaman#  endif
50*b30d1939SAndy Fiddaman#  if !defined(__INLINE__)
51*b30d1939SAndy Fiddaman#    if defined(__cplusplus)
52*b30d1939SAndy Fiddaman#      define __INLINE__	extern __MANGLE__ inline
53*b30d1939SAndy Fiddaman#    else
54*b30d1939SAndy Fiddaman#      if defined(_WIN32) && !defined(__GNUC__)
55*b30d1939SAndy Fiddaman#      	define __INLINE__	__inline
56*b30d1939SAndy Fiddaman#      endif
57*b30d1939SAndy Fiddaman#    endif
58*b30d1939SAndy Fiddaman#  endif
59*b30d1939SAndy Fiddaman#endif
60*b30d1939SAndy Fiddaman#if !defined(__LINKAGE__)
61*b30d1939SAndy Fiddaman#define __LINKAGE__		/* 2004-08-11 transition */
62*b30d1939SAndy Fiddaman#endif
63*b30d1939SAndy Fiddaman
64*b30d1939SAndy Fiddaman#define _def_fs_ast	1
65*b30d1939SAndy Fiddaman#define _sys_types	1	/* #include <sys/types.h> ok */
66*b30d1939SAndy Fiddaman#define _sys_stat	1	/* #include <sys/stat.h> ok */
67*b30d1939SAndy Fiddaman#define _lib_lstat	1	/* lstat() in default lib(s) */
68*b30d1939SAndy Fiddaman#define _lib_mknod	1	/* mknod() in default lib(s) */
69*b30d1939SAndy Fiddaman#define _lib_sync	1	/* sync() in default lib(s) */
70*b30d1939SAndy Fiddaman#include <sys/stat.h>
71*b30d1939SAndy Fiddaman#include <sys/mkdev.h>
72*b30d1939SAndy Fiddaman#define FS_default	"ufs"
73*b30d1939SAndy Fiddaman#if defined(__STDPP__directive) && defined(__STDPP__initial)
74*b30d1939SAndy Fiddaman__STDPP__directive pragma pp:noinitial
75*b30d1939SAndy Fiddaman#endif
76*b30d1939SAndy Fiddaman#define _hdr_stdio	1	/* #include <stdio.h> ok */
77*b30d1939SAndy Fiddaman#define _sys_mntent	1	/* #include <sys/mntent.h> ok */
78*b30d1939SAndy Fiddaman#define _sys_mnttab	1	/* #include <sys/mnttab.h> ok */
79*b30d1939SAndy Fiddaman#define _sys_param	1	/* #include <sys/param.h> ok */
80*b30d1939SAndy Fiddaman#define _sys_ucred	1	/* #include <sys/ucred.h> ok */
81*b30d1939SAndy Fiddaman#define _sys_mount	1	/* #include <sys/mount.h> ok */
82*b30d1939SAndy Fiddaman#define _sys_statfs	1	/* #include <sys/statfs.h> ok */
83*b30d1939SAndy Fiddaman#define _sys_statvfs	1	/* #include <sys/statvfs.h> ok */
84*b30d1939SAndy Fiddaman#define _sys_vfs	1	/* #include <sys/vfs.h> ok */
85*b30d1939SAndy Fiddaman#define _mem_st_blocks_stat	1	/* st_blocks is a member of struct stat */
86*b30d1939SAndy Fiddaman#define _mem_st_blksize_stat	1	/* st_blksize is a member of struct stat */
87*b30d1939SAndy Fiddaman#define _mem_st_rdev_stat	1	/* st_rdev is a member of struct stat */
88*b30d1939SAndy Fiddaman#define _mem_f_files_statfs	1	/* f_files is a member of struct statfs */
89*b30d1939SAndy Fiddaman#define _mem_f_basetype_statvfs	1	/* f_basetype is a member of struct statvfs */
90*b30d1939SAndy Fiddaman#define _mem_f_frsize_statvfs	1	/* f_frsize is a member of struct statvfs */
91*b30d1939SAndy Fiddaman#define _lib_getmntent	1	/* getmntent() in default lib(s) */
92*b30d1939SAndy Fiddaman#define _lib_statfs	1	/* statfs() in default lib(s) */
93*b30d1939SAndy Fiddaman#define _lib_statvfs	1	/* statvfs() in default lib(s) */
94*b30d1939SAndy Fiddaman#define _lib_statfs4	1	/* compile{\ passed */
95*b30d1939SAndy Fiddaman#if _sys_statvfs
96*b30d1939SAndy Fiddaman#include <sys/statvfs.h>
97*b30d1939SAndy Fiddaman#if !_mem_statvfs_f_basetype
98*b30d1939SAndy Fiddaman#if _ary_f_reserved7
99*b30d1939SAndy Fiddaman#define f_basetype	f_reserved7
100*b30d1939SAndy Fiddaman#endif
101*b30d1939SAndy Fiddaman#endif
102*b30d1939SAndy Fiddaman#else
103*b30d1939SAndy Fiddaman#define _mem_f_basetype_statvfs	1
104*b30d1939SAndy Fiddaman#define _mem_f_frsize_statvfs	1
105*b30d1939SAndy Fiddamanstruct statvfs
106*b30d1939SAndy Fiddaman{
107*b30d1939SAndy Fiddamanunsigned long	f_bsize;	/* fundamental file system block size */
108*b30d1939SAndy Fiddamanunsigned long	f_frsize;	/* fragment size */
109*b30d1939SAndy Fiddamanunsigned long	f_blocks;	/* total # of blocks of f_frsize on fs */
110*b30d1939SAndy Fiddamanunsigned long	f_bfree;	/* total # of free blocks of f_frsize */
111*b30d1939SAndy Fiddamanunsigned long	f_bavail;	/* # of free blocks avail to non-superuser */
112*b30d1939SAndy Fiddamanunsigned long	f_files;	/* total # of file nodes (inodes) */
113*b30d1939SAndy Fiddamanunsigned long	f_ffree;	/* total # of free file nodes */
114*b30d1939SAndy Fiddamanunsigned long	f_favail;	/* # of free nodes avail to non-superuser */
115*b30d1939SAndy Fiddamanunsigned long	f_fsid;		/* file system id (dev for now) */
116*b30d1939SAndy Fiddamanchar		f_basetype[16]; /* target fs type name, null-terminated */
117*b30d1939SAndy Fiddamanunsigned long	f_flag;		/* bit-mask of flags */
118*b30d1939SAndy Fiddamanunsigned long	f_namemax;	/* maximum file name length */
119*b30d1939SAndy Fiddamanchar		f_fstr[32];	/* filesystem-specific string */
120*b30d1939SAndy Fiddamanunsigned long	f_filler[16];	/* reserved for future expansion */
121*b30d1939SAndy Fiddaman};
122*b30d1939SAndy Fiddamanextern __MANGLE__ int	fstatvfs __PROTO__((int, struct statvfs*));
123*b30d1939SAndy Fiddamanextern __MANGLE__ int	statvfs __PROTO__((const char*, struct statvfs*));
124*b30d1939SAndy Fiddaman#endif
125*b30d1939SAndy Fiddaman#if _typ_off64_t
126*b30d1939SAndy Fiddaman#undef	off_t
127*b30d1939SAndy Fiddaman#define off_t	off64_t
128*b30d1939SAndy Fiddaman#endif
129*b30d1939SAndy Fiddaman#if _lib_statvfs64 && !defined(statvfs)
130*b30d1939SAndy Fiddaman#define statvfs		statvfs64
131*b30d1939SAndy Fiddaman#if !defined(__USE_LARGEFILE64)
132*b30d1939SAndy Fiddamanextern __MANGLE__ int		statvfs64 __PROTO__((const char*, struct statvfs64*));
133*b30d1939SAndy Fiddaman#endif
134*b30d1939SAndy Fiddaman#endif
135*b30d1939SAndy Fiddaman#if _lib_fstatvfs64 && !defined(fstatvfs)
136*b30d1939SAndy Fiddaman#define fstatvfs	fstatvfs64
137*b30d1939SAndy Fiddaman#if !defined(__USE_LARGEFILE64)
138*b30d1939SAndy Fiddamanextern __MANGLE__ int		fstatvfs64 __PROTO__((int, struct statvfs64*));
139*b30d1939SAndy Fiddaman#endif
140*b30d1939SAndy Fiddaman#endif
141*b30d1939SAndy Fiddaman
142*b30d1939SAndy Fiddaman#define _str_st_fstype	1	/* stat.st_fstype is a string */
143*b30d1939SAndy Fiddaman#endif
144