Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stat(4) — Amiga System V Release 4 Version 2.03

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(2)

types(5)



stat(4)          DEVICES AND NETWORK INTERFACES           stat(4)



NAME
     stat - data returned by stat system call

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

DESCRIPTION
     The system calls stat, lstat and fstat return data in a stat
     structure, which is defined in stat.h:
          struct   stat
          {
                   devt     stdev;
                   inot     stino;
                   modet    stmode;
                   nlinkt   stnlink;
                   uidt     stuid;
                   gidt     stgid;
                   devt     strdev;
                   offt     stsize;
                   timet    statime;
                   timet    stmtime;
                   timet    stctime;
          };

     The constants used in the stmode field are also defined  in
     this file:
          #define SIFMT    0xF000   /* type of file */
          #define SIAMB    0x1FF    /* access mode bits */
          #define SIFIFO   0x1000   /* fifo */
          #define SIFCHR   0x2000   /* character special */
          #define SIFDIR   0x4000   /* directory */
          #define SIFNAM   0x5000   /* XENIX special named file */
          #define SINSEM   0x1      /* XENIX semaphore subtype of IFNAM */
          #define SINSEM   0x2      /* XENIX shared data subtype of IFNAM */
          #define SIFBLK   0x6000   /* block special */
          #define SIFREG   0x8000   /* regular */
          #define SIFLNK   0xA000   /* symbolic link */
          #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 */
          #define SIEXEC   00100    /* execute/search permission, owner */
          #define SENFMT   SISGID  /* record locking enforcement flag */
          #define SIRWXU   00700    /* read, write, execute: owner */
          #define SIRUSR   00400    /* read permission: owner */
          #define SIWUSR   00200    /* write permission: owner */
          #define SIXUSR   00100    /* execute permission: owner */
          #define SIRWXG   00070    /* read, write, execute: group */
          #define SIRGRP   00040    /* read permission: group */
          #define SIWGRP   00020    /* write permission: group */



            Last change: XENIX Compatibility Package            1





stat(4)          DEVICES AND NETWORK INTERFACES           stat(4)



          #define SIXGRP   00010    /* execute permission: group */
          #define SIRWXO   00007    /* read, write, execute: other */
          #define SIROTH   00004    /* read permission: other */
          #define SIWOTH   00002    /* write permission: other */
          #define SIXOTH   00001    /* execute permission: other */

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















































            Last change: XENIX Compatibility Package            2



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