Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ types(7) — AUX SR8.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fs(5)

TYPES(7)

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:

/*  TYPES.H, /usr/include/sys, 09/07/83
    Unix type decls.
     Apollo Changes:
        09/07/83 rees Added v7 (and Berkeley) style u_long ... u_char
        06/30/82 jrw  made ino_t’s long, dev_t’s long.
 */
 typedef unsigned longu_long;
typedef unsigned intu_int;
typedef unsigned shortu_short;
typedef unsigned charu_char;
 typedef struct { int r[1]; } *  physadr;
typedef long            daddr_t;
typedef char *          caddr_t;
typedef unsigned short  ushort;
typedef unsigned long   ino_t;
typedef short           cnt_t;
typedef long            time_t;
typedef int             label_t[10];
typedef long            dev_t;
typedef long            off_t;
typedef long            paddr_t;

The form daddr_t is used for disk addresses except in an i-node on disk, see fs(5). 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(5). 

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