1
2/* : : generated by proto : : */
3/* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_sparc_64bit/src/lib/libast/features/fs by iffe version 2009-12-04 : : */
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_mount	1	/* #include <sys/mount.h> ok */
80#define _sys_statfs	1	/* #include <sys/statfs.h> ok */
81#define _sys_statvfs	1	/* #include <sys/statvfs.h> ok */
82#define _sys_vfs	1	/* #include <sys/vfs.h> ok */
83#define _mem_st_blocks_stat	1	/* st_blocks is a member of struct stat */
84#define _mem_st_blksize_stat	1	/* st_blksize is a member of struct stat */
85#define _mem_st_rdev_stat	1	/* st_rdev is a member of struct stat */
86#define _mem_f_files_statfs	1	/* f_files is a member of struct statfs */
87#define _sys_param	1	/* #include <sys/param.h> ok */
88#define _mem_f_basetype_statvfs	1	/* f_basetype is a member of struct statvfs */
89#define _mem_f_frsize_statvfs	1	/* f_frsize is a member of struct statvfs */
90#define _lib_getmntent	1	/* getmntent() in default lib(s) */
91#define _lib_statfs	1	/* statfs() in default lib(s) */
92#define _lib_statvfs	1	/* statvfs() in default lib(s) */
93#define _lib_statfs4	1	/* compile{\ passed */
94#if _sys_statvfs
95#include <sys/statvfs.h>
96#if !_mem_statvfs_f_basetype
97#if _ary_f_reserved7
98#define f_basetype	f_reserved7
99#endif
100#endif
101#else
102#define _mem_f_basetype_statvfs	1
103#define _mem_f_frsize_statvfs	1
104struct statvfs
105{
106unsigned long	f_bsize;	/* fundamental file system block size */
107unsigned long	f_frsize;	/* fragment size */
108unsigned long	f_blocks;	/* total # of blocks of f_frsize on fs */
109unsigned long	f_bfree;	/* total # of free blocks of f_frsize */
110unsigned long	f_bavail;	/* # of free blocks avail to non-superuser */
111unsigned long	f_files;	/* total # of file nodes (inodes) */
112unsigned long	f_ffree;	/* total # of free file nodes */
113unsigned long	f_favail;	/* # of free nodes avail to non-superuser */
114unsigned long	f_fsid;		/* file system id (dev for now) */
115char		f_basetype[16]; /* target fs type name, null-terminated */
116unsigned long	f_flag;		/* bit-mask of flags */
117unsigned long	f_namemax;	/* maximum file name length */
118char		f_fstr[32];	/* filesystem-specific string */
119unsigned long	f_filler[16];	/* reserved for future expansion */
120};
121extern __MANGLE__ int	fstatvfs __PROTO__((int, struct statvfs*));
122extern __MANGLE__ int	statvfs __PROTO__((const char*, struct statvfs*));
123#endif
124#if _typ_off64_t
125#undef	off_t
126#define off_t	off64_t
127#endif
128#if _lib_statvfs64 && !defined(statvfs)
129#define statvfs		statvfs64
130#if !defined(__USE_LARGEFILE64)
131extern __MANGLE__ int		statvfs64 __PROTO__((const char*, struct statvfs64*));
132#endif
133#endif
134#if _lib_fstatvfs64 && !defined(fstatvfs)
135#define fstatvfs	fstatvfs64
136#if !defined(__USE_LARGEFILE64)
137extern __MANGLE__ int		fstatvfs64 __PROTO__((int, struct statvfs64*));
138#endif
139#endif
140
141#define _str_st_fstype	1	/* stat.st_fstype is a string */
142#endif
143