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