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