Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

types(5)

NAME

types − primitive system data types

SYNOPSIS

#include <sys/types.h>

DESCRIPTION

The data types defined in types.h are used in UNIX System code.  Some data of these types are accessible to user code:

typedefstruct { int r[1]; } ∗physadr;
typedeflongclock_t;
typedeflongdaddr_t;
typedefchar ∗caddr_t;
typedefunsigned charunchar;
typedefunsigned shortushort;
typedefunsigned intuint;
typedefunsigned longulong;
typedefunsigned longino_t;
typedeflonguid_t;
typedeflonggid_t;
typedefulongnlink_t;
typedefulongmode_t;
typedefshortcnt_t;
typedeflongtime_t;
typedefintlabel_t[10];
typedefulongdev_t;
typedeflongoff_t;
typedeflongpid_t;
typedeflongpaddr_t;
typedefintkey_t;
typedefunsigned charuse_t;
typedefshortsysid_t;
typedefshortindex_t;
typedefshortlock_t;
typedefunsigned intsize_t;
typedeflongclock_t;
typedeflongpid_t;

The form daddr_t is used for disk addresses except in an inode on disk.  Times are encoded in seconds since 00:00:00 UTC, January 1, 1970.  The major and minor parts of a device code specify kind and unit number of a device and are installation-dependent.  Offsets are measured in bytes from the beginning of a file.  The label_t variables are used to save the processor state while another process is running. 

SunOS 5.6  —  Last change: 3 Jul 1990

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