FUNCTION: int stat ( c-string pathname, stat* buf ) ;
FUNCTION: int lstat ( c-string pathname, stat* buf ) ;
+FUNCTION: int fstat ( int fd, stat* buf ) ;
FUNCTION: int __xstat64 ( int ver, c-string pathname, stat* buf ) ;
FUNCTION: int __lxstat64 ( int ver, c-string pathname, stat* buf ) ;
+FUNCTION: int __fxstat64 ( int ver, int fd, stat* buf ) ;
: stat ( pathname buf -- int ) [ 1 ] 2dip __xstat64 ;
: lstat ( pathname buf -- int ) [ 1 ] 2dip __lxstat64 ;
+: fstat ( fd buf -- int ) [ 1 ] 2dip __fxstat64 ;
FUNCTION: int __xstat64 ( int ver, c-string pathname, stat* buf ) ;
FUNCTION: int __lxstat64 ( int ver, c-string pathname, stat* buf ) ;
+FUNCTION: int __fxstat64 ( int ver, int fd, stat* buf ) ;
: stat ( pathname buf -- int ) [ 1 ] 2dip __xstat64 ;
: lstat ( pathname buf -- int ) [ 1 ] 2dip __lxstat64 ;
+: fstat ( fd buf -- int ) [ 1 ] 2dip __fxstat64 ;
FUNCTION: int stat64 ( c-string pathname, stat* buf ) ;
FUNCTION: int lstat64 ( c-string pathname, stat* buf ) ;
+FUNCTION: int fstat64 ( int fd, stat* buf ) ;
: stat ( path buf -- n ) stat64 ;
: lstat ( path buf -- n ) lstat64 ;
+: fstat ( fd buf -- n ) fstat64 ;
FUNCTION: int __stat30 ( c-string pathname, stat* buf ) ;
FUNCTION: int __lstat30 ( c-string pathname, stat* buf ) ;
+FUNCTION: int __fstat30 ( int fd, stat* buf ) ;
: stat ( pathname buf -- n ) __stat30 ;
: lstat ( pathname buf -- n ) __lstat30 ;
+: fstat ( fd buf -- n ) __fstat30 ;
FUNCTION: int __stat13 ( c-string pathname, stat* buf ) ;
FUNCTION: int __lstat13 ( c-string pathname, stat* buf ) ;
+FUNCTION: int __fstat13 ( int fd, stat* buf ) ;
: stat ( pathname buf -- n ) __stat13 ;
: lstat ( pathname buf -- n ) __lstat13 ;
+: fstat ( fd buf -- n ) __fstat13 ;
FUNCTION: int stat ( c-string pathname, stat* buf ) ;
FUNCTION: int lstat ( c-string pathname, stat* buf ) ;
+FUNCTION: int fstat ( int fd, stat* buf ) ;