Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stat(5) — DG/UX 5.4.2A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(2)

types(5)



stat(5)                          DG/UX 5.4.2                         stat(5)


NAME
       stat - data returned by stat system call

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

DESCRIPTION
       The system calls stat, fstat, lstat, and dgmstat return data whose
       structure is defined by this include file.  The encoding of the field
       stmode is also defined in this file.

       /*
        * Structure of the result of stat
        */

       struct  stat
       {
            devt           stdev;
            inot           stino;
            modet          stmode;
            nlinkt         stnlink;
            uidt           stuid;
            gidt           stgid;
            devt           strdev;
            offt           stsize;
            timet          statime;
            unsigned long   stausec;
            timet          stmtime;
            unsigned long   stmusec;
            timet          stctime;
            unsigned long   stcusec;
            timestruct     statim;
            timestruct     stmtim;
            timestruct     stctim;
            long            stblksize;
            long            stblocks;
            char            stfstype[16];
            char            stpad5[408];
       };

       #define SIFMT    0170000 /* type of file */
       #define SIFDIR   0040000 /* directory */
       #define SIFCHR   0020000 /* character special */
       #define SIFBLK   0060000 /* block special */
       #define SIFREG   0100000 /* regular */
       #define SIFLNK   0120000 /* symbolic link */
       #define SIFIFO   0010000 /* fifo */
       #define SIFSOCK  0140000 /* socket special file */
       #define SISUID   04000   /* set user id on execution */
       #define SISGID   02000   /* set group id on execution */
       #define SISVTX   01000   /* save swapped text even after use */
       #define SIREAD   00400   /* read permission, owner */
       #define SIWRITE  00200   /* write permission, owner */



Licensed material--property of copyright holder(s)                         1




stat(5)                          DG/UX 5.4.2                         stat(5)


       #define SIEXEC   00100   /* execute/search permission, owner */
       #define SENFMT   02000   /* record locking enforcement flag */
       #define SIRWXU   00700   /* read, write, execute search
                                    permission, owner */
       #define SIRUSR   00400   /* read permission, owner */
       #define SIWUSR   00200   /* write permission, owner */
       #define SIXUSR   00100   /* execute/search permission, owner */
       #define SIRWXG   00070   /* read, write, execute/search
                                    permission, group */
       #define SIRGRP   00040   /* read permission, group */
       #define SIWGRP   00020   /* write permission, group */
       #define SIXGRP   00010   /* execute/search permission, group */
       #define SIRWXO   00007   /* read, write, execute/search
                                    permission, other */
       #define SIROTH   00004   /* read permission, other */
       #define SIWOTH   00002   /* write permission, other */
       #define SIXOTH   00001   /* execute/search permission, other */

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

SEE ALSO
       stat(2), types(5).

































Licensed material--property of copyright holder(s)                         2


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