TYPES(5) COMMAND REFERENCE TYPES(5) NAME types - primitive system data types SYNOPSIS #include <sys/types.h> DESCRIPTION The data types defined in the include file <sys/types.h> are used in UTek system code; some data of these types are accessible to user code, as follows: /* * Basic system types and major/minor device constructing/busting macros. */ /* major part of a device */ #define major(x) ((int)(((unsigned)(x)>>16)&0177777)) /* minor part of a device */ #define minor(x) ((int)((x)&0177777)) /* device to slot or controller number */ #define devslot(x) ((int)(((x)>>8)&0377)) /* device to unit number and device-dependent flags */ #define devunit(x) ((int)((x)&0377)) /* make a device number from major/minor pair */ #define makedev(x,y) ((dev_t)(((x)<<16) | (y))) /* make a device number from major/slot/unit triple */ #define devno(x,y,z) ((dev_t)(((x)<<16) | ((y)<<8) | (z))) typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; typedef unsigned short ushort;/* sys III compat */ typedef struct _physadr { int r[1]; } *physadr; typedef struct label_t { int val[8]; } label_t; typedef char * gaddr_t; /* global address */ typedef struct _quad { long val[2]; } quad; typedef long daddr_t; typedef char * caddr_t; typedef u_long ino_t; typedef long swblk_t; typedef int size_t; typedef int time_t; Printed 5/12/88 1
TYPES(5) COMMAND REFERENCE TYPES(5) typedef long dev_t; typedef int off_t; typedef struct fd_set { int fds_bits[1]; } fd_set; #endif The form daddr_t is used for disk addresses except in an inode 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 adb(1), lseek(2), time(3c), time(3f), and fs(5). Printed 5/12/88 2
%%index%% na:264,87; sy:351,328; de:679,1962;2977,649; se:3626,218; %%index%%000000000091