#include <sys/types.h>

sys/types.h

11 typedefs · 7 macros

typedefu_long

typedef unsigned long u_long

macro_U_LONG

#define _U_LONG 

typedefushort

typedef unsigned short ushort
Sys V compatibility

typedefuint

typedef unsigned int uint
Sys V compatibility

typedefu_quad_t

typedef u_int64_t u_quad_t
quads

typedefquad_t

typedef int64_t quad_t

typedefqaddr_t

typedef quad_t * qaddr_t

typedefdaddr_t

typedef int32_t daddr_t
disk address

typedeffixpt_t

typedef u_int32_t fixpt_t
fixed point number

typedefsegsz_t

typedef int32_t segsz_t
segment size

typedefswblk_t

typedef int32_t swblk_t
swap offset

macromajor

#define major(x) ((int32_t)(((u_int32_t)(x) >> 24) & 0xff))

macrominor

#define minor(x) ((int32_t)((x) & 0xffffff))

macromakedev

#define makedev(x, y) ((dev_t)(((x) << 24) | (y)))

macroNBBY

#define NBBY __DARWIN_NBBY
bits in a byte

macroNFDBITS

#define NFDBITS __DARWIN_NFDBITS
bits per mask

macrohowmany

#define howmany(x, y) __DARWIN_howmany(x, y)
# y's == x bits?

typedeffd_mask

typedef __int32_t fd_mask