Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stat(7) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(2)

types(5)

STAT(7)

NAME

stat − data returned by stat/fstat system call

SYNOPSIS

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

HP-UX COMPATIBILITY

Level: HP-UX/RUN ONLY

Origin: System III

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;
ushortst_mode;
shortst_nlink;
ushortst_uid;
ushortst_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_IFNWK0110000/∗ network special ∗/
#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), types(5). 

HARDWARE DEPENDENCIES

Integral PC:
The S_IFNWK i-node type is not supported.

Hewlett-Packard  —  last mod. May 11, 2021

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