fs revision 1
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteset prototyped
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelib _fxstat,__fxstat,_lxstat,__lxstat,_xmknod,__xmknod,_xstat,__xstat,lstat,mknod,sync sys/types.h sys/stat.h
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelib _fxstat64,__fxstat64,_lxstat64,__lxstat64,_xstat64,__xstat64 -D_LARGEFILE64_SOURCE sys/types.h sys/stat.h
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelcl xstat -D_LARGEFILE64_SOURCE link{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte struct stat64 { int xxx; }; /* disable if stat64 available */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte extern int stat(const char* path, struct stat* st)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int stat(path, st)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte struct stat* st;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte #if _lib___xstat
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return __xstat(_STAT_VER, path, st);
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana return _xstat(_STAT_VER, path, st);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte struct stat st;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return stat(".",&st) < 0;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelcl xstat64 -D_LARGEFILE64_SOURCE link{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte extern int stat64(const char* path, struct stat64* st)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int stat64(path, st)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte #if _lib___xstat64
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return __xstat64(_STAT_VER, path, st);
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana return _xstat64(_STAT_VER, path, st);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte struct stat64 st;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return stat64(".",&st) < 0;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern chmod int (const char*, mode_t)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern fstat int (int, struct stat*)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern lstat int (const char*, struct stat*)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern mkdir int (const char*, mode_t)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern mkfifo int (const char*, mode_t)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern mknod int (const char*, mode_t, dev_t)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern stat int (const char*, struct stat*)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern mkfifo mode_t (mode_t)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortedefine FS_default "ufs"
#include <sys/stat.h>
#include <sys/param.h>
#include <sys/sysmacros.h>
hdr mntent,mnttab stdio.h
sys mntent,mnttab stdio.h
ary f_reserved7 sys/types.h sys/statvfs.h note{ statvfs.f_reserved7 can double for statvfs.f_basetype }end compile{
#include <sys/types.h>
#include <sys/mount.h>
lib getfsstat_statvfs note{ getfsstat uses statvfs -- just in case it is confused like getmntinfo }end compile{
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/statvfs.h>