Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stat(7) — UNIX System III

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(2)

STAT(7)  —  UNIX 3.0

NAME

stat − data returned by stat system call

SYNOPSIS

#include <sys/types.h>
#include <sys/stat.h>

DESCRIPTION

The system calls stat and fstat(2) return data whose structure is defined by this include file. The encoding of the field st_mode is defined in this file also. 

/*
 * Structure of the result of stat
 */
 structstat
{
dev_tst_dev;
ino_tst_ino;
ushort st_mode;
short  st_nlink;
ushort st_uid;
ushort st_gid;
dev_tst_rdev;
off_tst_size;
time_tst_atime;
time_tst_mtime;
time_tst_ctime;
};
 #defineS_IFMT0170000/* type of file */
#defineS_IFDIR0040000/* directory */
#defineS_IFCHR0020000 /* character special */
#defineS_IFBLK0060000 /* block special */
#defineS_IFREG0100000 /* regular */
#defineS_IFIFO0010000/* fifo */
#defineS_ISUID04000/* set user id on execution */
#defineS_ISGID02000/* set group id on execution */
#defineS_ISVTX01000/* save swapped text even after use */
#defineS_IREAD00400/* read permission, owner */
#defineS_IWRITE00200/* write permission, owner */
#defineS_IEXEC00100/* execute/search permission, owner */

FILES

/usr/include/sys/types.h
/usr/include/sys/stat.h

SEE ALSO

stat(2). 

May 16, 1980

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026