Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(2)

fs(5)

types(7)

INODE(5)  —  UNIX 3.0

NAME

inode − format of an inode

SYNOPSIS

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

DESCRIPTION

An i-node for a plain file or directory in a file system has the following structure defined by <sys/ino.h>. 

/* Inode structure as it appears on a disk block. */
struct dinode
{
ushort di_mode;/* mode and type of file */
shortdi_nlink;    /* number of links to file */
ushortdi_uid;      /* owner’s user id */
ushortdi_gid;      /* owner’s group id */
off_tdi_size;     /* number of bytes in file */
char  di_addr[40];/* disk block addresses */
time_tdi_atime;   /* time last accessed */
time_tdi_mtime;   /* time last modified */
time_tdi_ctime;   /* time created */
};
/*
 * the 40 address bytes:
 *39 used; 13 addresses
 *of 3 bytes each.
 */

For the meaning of the defined types off_t and time_t see types(7).

FILES

/usr/include/sys/ino.h

SEE ALSO

stat(2), fs(5), types(7). 

May 16, 1980

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