|
|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 1456 (0x5b0)
Types: TextFile
Notes: UNIX file
Names: »stat.h«
└─⟦eafc30061⟧ Bits:30001199 Commodore 900 hard disk image
└─⟦8281d0872⟧ UNIX Filesystem
└─⟦294235107⟧ »vol3.fd« UNIX Filesystem
└─⟦this⟧ »usr/include/stat.h«
└─⟦this⟧ »usr/include/sys/stat.h«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
└─⟦2d53db1df⟧ UNIX Filesystem
└─⟦this⟧ »include/stat.h«
└─⟦this⟧ »include/sys/stat.h«
└─⟦eafc30061⟧ Bits:30001199 Commodore 900 hard disk image
└─⟦5ec4c54f2⟧ UNIX Filesystem
└─⟦this⟧ »usr/include/stat.h«
└─⟦this⟧ »usr/include/sys/stat.h«
/*
* Stat.
*/
#ifndef STAT_H
#define STAT_H
#include <types.h>
/*
* Structure returned by stat and fstat system calls.
*/
struct stat {
dev_t st_dev; /* Device */
ino_t st_ino; /* Inode number */
unsigned short st_mode; /* Mode */
short st_nlink; /* Link count */
short st_uid; /* User id */
short st_gid; /* Group id */
dev_t st_rdev; /* Real device */
size_t st_size; /* Size */
time_t st_atime; /* Access time */
time_t st_mtime; /* Modify time */
time_t st_ctime; /* Change time */
};
/*
* Modes.
*/
#define S_IFMT 0170000 /* Type */
#define S_IFDIR 0040000 /* Directory */
#define S_IFCHR 0020000 /* Character special */
#define S_IFBLK 0060000 /* Block special */
#define S_IFREG 0100000 /* Regular */
#define S_IFMPC 0030000 /* Multiplexed character special */
#define S_IFMPB 0070000 /* Multiplexed block special */
#define S_IFPIP 0010000 /* Pipe */
#define S_ISUID 0004000 /* Set user id on execution */
#define S_ISGID 0002000 /* Set group id on execution */
#define S_ISVTX 0001000 /* Save swapped text even after use */
#define S_IREAD 0000400 /* Read permission, owner */
#define S_IWRITE 000200 /* Write permission, owner */
#define S_IEXEC 0000100 /* Execute/search permission, owner */
/*
* Non existant device.
*/
#define NODEV (-1)
/*
* Functions.
*/
#define major(dev) ((dev>>8)&0377)
#define minor(dev) (dev&0377)
#define makedev(m1, m2) ((m1<<8)|m2)
#endif