xref: /titanic_52/usr/src/cmd/ast/libast/amd64/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_lstat	1	/* lstat() in default lib(s) */
68*906afcb8SAndy Fiddaman#define _lib_mknod	1	/* mknod() in default lib(s) */
69*906afcb8SAndy Fiddaman#define _lib_sync	1	/* sync() in default lib(s) */
70*906afcb8SAndy Fiddaman#include <sys/stat.h>
71*906afcb8SAndy Fiddaman#include <sys/mkdev.h>
72*906afcb8SAndy Fiddaman#define FS_default	"ufs"
73*906afcb8SAndy Fiddaman#if defined(__STDPP__directive) && defined(__STDPP__initial)
74*906afcb8SAndy Fiddaman__STDPP__directive pragma pp:noinitial
75*906afcb8SAndy Fiddaman#endif
76*906afcb8SAndy Fiddaman#define _hdr_stdio	1	/* #include <stdio.h> ok */
77*906afcb8SAndy Fiddaman#define _sys_mntent	1	/* #include <sys/mntent.h> ok */
78*906afcb8SAndy Fiddaman#define _sys_mnttab	1	/* #include <sys/mnttab.h> ok */
79*906afcb8SAndy Fiddaman#define _sys_param	1	/* #include <sys/param.h> ok */
80*906afcb8SAndy Fiddaman#define _sys_ucred	1	/* #include <sys/ucred.h> ok */
81*906afcb8SAndy Fiddaman#define _sys_mount	1	/* #include <sys/mount.h> ok */
82*906afcb8SAndy Fiddaman#define _sys_statfs	1	/* #include <sys/statfs.h> ok */
83*906afcb8SAndy Fiddaman#define _sys_statvfs	1	/* #include <sys/statvfs.h> ok */
84*906afcb8SAndy Fiddaman#define _sys_vfs	1	/* #include <sys/vfs.h> ok */
85*906afcb8SAndy Fiddaman#define _mem_st_blocks_stat	1	/* st_blocks is a member of struct stat */
86*906afcb8SAndy Fiddaman#define _mem_st_blksize_stat	1	/* st_blksize is a member of struct stat */
87*906afcb8SAndy Fiddaman#define _mem_st_rdev_stat	1	/* st_rdev is a member of struct stat */
88*906afcb8SAndy Fiddaman#define _mem_f_files_statfs	1	/* f_files is a member of struct statfs */
89*906afcb8SAndy Fiddaman#define _mem_f_basetype_statvfs	1	/* f_basetype is a member of struct statvfs */
90*906afcb8SAndy Fiddaman#define _mem_f_frsize_statvfs	1	/* f_frsize is a member of struct statvfs */
91*906afcb8SAndy Fiddaman#define _lib_getmntent	1	/* getmntent() in default lib(s) */
92*906afcb8SAndy Fiddaman#define _lib_statfs	1	/* statfs() in default lib(s) */
93*906afcb8SAndy Fiddaman#define _lib_statvfs	1	/* statvfs() in default lib(s) */
94*906afcb8SAndy Fiddaman#define _lib_statfs4	1	/* compile{\ passed */
95*906afcb8SAndy Fiddaman#if _sys_statvfs
96*906afcb8SAndy Fiddaman#include <sys/statvfs.h>
97*906afcb8SAndy Fiddaman#if !_mem_statvfs_f_basetype
98*906afcb8SAndy Fiddaman#if _ary_f_reserved7
99*906afcb8SAndy Fiddaman#define f_basetype	f_reserved7
100*906afcb8SAndy Fiddaman#endif
101*906afcb8SAndy Fiddaman#endif
102*906afcb8SAndy Fiddaman#else
103*906afcb8SAndy Fiddaman#define _mem_f_basetype_statvfs	1
104*906afcb8SAndy Fiddaman#define _mem_f_frsize_statvfs	1
105*906afcb8SAndy Fiddamanstruct statvfs
106*906afcb8SAndy Fiddaman{
107*906afcb8SAndy Fiddamanunsigned long	f_bsize;	/* fundamental file system block size */
108*906afcb8SAndy Fiddamanunsigned long	f_frsize;	/* fragment size */
109*906afcb8SAndy Fiddamanunsigned long	f_blocks;	/* total # of blocks of f_frsize on fs */
110*906afcb8SAndy Fiddamanunsigned long	f_bfree;	/* total # of free blocks of f_frsize */
111*906afcb8SAndy Fiddamanunsigned long	f_bavail;	/* # of free blocks avail to non-superuser */
112*906afcb8SAndy Fiddamanunsigned long	f_files;	/* total # of file nodes (inodes) */
113*906afcb8SAndy Fiddamanunsigned long	f_ffree;	/* total # of free file nodes */
114*906afcb8SAndy Fiddamanunsigned long	f_favail;	/* # of free nodes avail to non-superuser */
115*906afcb8SAndy Fiddamanunsigned long	f_fsid;		/* file system id (dev for now) */
116*906afcb8SAndy Fiddamanchar		f_basetype[16]; /* target fs type name, null-terminated */
117*906afcb8SAndy Fiddamanunsigned long	f_flag;		/* bit-mask of flags */
118*906afcb8SAndy Fiddamanunsigned long	f_namemax;	/* maximum file name length */
119*906afcb8SAndy Fiddamanchar		f_fstr[32];	/* filesystem-specific string */
120*906afcb8SAndy Fiddamanunsigned long	f_filler[16];	/* reserved for future expansion */
121*906afcb8SAndy Fiddaman};
122*906afcb8SAndy Fiddamanextern __MANGLE__ int	fstatvfs __PROTO__((int, struct statvfs*));
123*906afcb8SAndy Fiddamanextern __MANGLE__ int	statvfs __PROTO__((const char*, struct statvfs*));
124*906afcb8SAndy Fiddaman#endif
125*906afcb8SAndy Fiddaman#if _typ_off64_t
126*906afcb8SAndy Fiddaman#undef	off_t
127*906afcb8SAndy Fiddaman#define off_t	off64_t
128*906afcb8SAndy Fiddaman#endif
129*906afcb8SAndy Fiddaman#if _lib_statvfs64 && !defined(statvfs)
130*906afcb8SAndy Fiddaman#define statvfs		statvfs64
131*906afcb8SAndy Fiddaman#if !defined(__USE_LARGEFILE64)
132*906afcb8SAndy Fiddamanextern __MANGLE__ int		statvfs64 __PROTO__((const char*, struct statvfs64*));
133*906afcb8SAndy Fiddaman#endif
134*906afcb8SAndy Fiddaman#endif
135*906afcb8SAndy Fiddaman#if _lib_fstatvfs64 && !defined(fstatvfs)
136*906afcb8SAndy Fiddaman#define fstatvfs	fstatvfs64
137*906afcb8SAndy Fiddaman#if !defined(__USE_LARGEFILE64)
138*906afcb8SAndy Fiddamanextern __MANGLE__ int		fstatvfs64 __PROTO__((int, struct statvfs64*));
139*906afcb8SAndy Fiddaman#endif
140*906afcb8SAndy Fiddaman#endif
141*906afcb8SAndy Fiddaman
142*906afcb8SAndy Fiddaman#define _str_st_fstype	1	/* stat.st_fstype is a string */
143*906afcb8SAndy Fiddaman#endif
144