TYPES(5) — UNIX Programmer’s Manual
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:
/\(**
static char types_h_SCCS_ID[] = "@(#)types.h 4.1 10/26/82";
/\(**
/\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(** \(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**
Copyright 1982
VALID LOGIC SYSTEMS INCORPORATED
This listing contains confidential proprietary information which is not to
be disclosed to unauthorized persons without written consent of an officer
of Valid Logic Systems Incorporated.
The copyright notice appearing above is included to provide statutory
protection in the event of unauthorized or unintentional public disclosure.
\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(** \(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**\(**/
typedeflongdaddr_t;
typedef char \(**caddr_t;
typedeflongmem_t;
typedefunsigned shortino_t;
typedeflongtime_t;
typedeflonglabel_t[13]; /\(** regs d2-d7, a2-a7, pc \(**/
typedefshortdev_t;
typedeflongoff_t;
/\(** selectors and constructor for device code \(**/
#definemajor(x) (int)(((unsigned)x>>8))
#defineminor(x) (int)(x&0377)
#definemakedev(x,y)(dev_t)((x)<<8|(y))
The form daddr_t is used for disk addresses except in an i-node on disk, see filsys(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
filsys(5), time(2), lseek(2), adb(1)
4th Berkeley Distribution — %W% %Q% %Y%