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