Digital UNIX Diffs - stat(5) Digital UNIX Diffs - stat(5)NAME
stat, fstat - Provides information about a file
SYNOPSIS
#include <sys/types.h> #include <sys/stat.h>
int stat(
const char *path,
struct stat *buffer );
int fstat(
int filedes,
struct stat *buffer );
PARAMETERS
Specifies the pathname identifying the file. Specifies the file
descriptor identifying the open file. Points to the stat structure in
which information is returned. The stat structure is described in the
sys/stat.h header file.
DIFFERENCESvms-files(5): OpenVMS File System Differences
The syntax of filename path are different on UNIX and OpenVMS.
Information kept on a file varies between OpenVMS and UNIX. By looking
at the struct stat you can see the differences. The OpenVMS variant
includes RMS data structures which have no meaning on UNIX. The UNIX
version has inode and link information that is meanless on OpenVMS.
Note that lstat(2) is not available on OpenVMS since the operating sys‐
tem does not support file links.
RELATED INFORMATION
Functions: fstat(2), stat(2), lstat(2)CATEGORY INDEXvms-files(5)
delim off
Digital UNIX Diffs - stat(5)