Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fs(4)

TYPES(5)  —  Kubota Pacfic Computer Inc.

NAME

types − primitive system data types

SYNOPSIS

#include <sys/types.h>

DESCRIPTION

The data types defined in the include file are used in UNIX system code; some data of these types are accessible to user code:

typedefstruct { int r[1]; } ∗physadr;
typedeflongdaddr_t;/∗ <disk address> type ∗/
typedefchar ∗caddr_t;/∗ ?<core address> type ∗/
typedef unsigned char ∗ ucaddr_t;/∗ Unsigned char addr∗/
typedefunsigned charunchar;
typedefunsigned charu_char;
typedefunsigned shortushort;
typedefunsigned shortu_short;
typedefunsigned intuint;
typedefunsigned intu_int;
typedefunsigned longulong;
typedefunsigned longu_long;
typedefushortino_t;/∗ <inode> type ∗/
typedefshortcnt_t;/∗ ?<count> type ∗/
typedeflongtime_t;/∗ <time> type ∗/
typedefintlabel_t[12];
typedefshortdev_t;/∗ <old device number> type ∗/
typedeflongoff_t;/∗ ?<offset> type ∗/
typedefunsigned longpaddr_t;/∗ <physical address> type ∗/
typedefintkey_t;/∗ IPC key type ∗/
typedefunsigned charuse_t;/∗ use count for swap.  ∗/
typedefshortsysid_t;
typedefshortindex_t;
typedefshortlock_t;/∗ lock work for busy wait ∗/
typedefunsigned intsize_t;/∗ len param for string funcs ∗/

The form daddr_t is used for disk addresses except in an i-node on disk, see fs(4). Times are encoded in seconds since 00:00:00 GMT, 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. 

SEE ALSO

fs(4). 

September 02, 1992

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