#include <sys/types.h>

sys/types.h Kernel.framework

includes: sys/appleapiopts.h, sys/cdefs.h, machine/types.h, sys/_types.h, machine/endian.h, Kernel/sys/_types/_u_char.h, Kernel/sys/_types/_u_short.h, Kernel/sys/_types/_u_int.h, sys/_types/_caddr_t.h, Kernel/sys/_types/_dev_t.h, Kernel/sys/_types/_blkcnt_t.h, Kernel/sys/_types/_blksize_t.h, Kernel/sys/_types/_gid_t.h, Kernel/sys/_types/_in_addr_t.h, Kernel/sys/_types/_in_port_t.h, Kernel/sys/_types/_ino_t.h, Kernel/sys/_types/_ino64_t.h, Kernel/sys/_types/_key_t.h, Kernel/sys/_types/_mode_t.h, Kernel/sys/_types/_nlink_t.h, Kernel/sys/_types/_id_t.h, Kernel/sys/_types/_pid_t.h, Kernel/sys/_types/_off_t.h, Kernel/sys/_types/_uid_t.h, Kernel/sys/_types/_clock_t.h, sys/_types/_size_t.h, Kernel/sys/_types/_ssize_t.h, Kernel/sys/_types/_time_t.h, Kernel/sys/_types/_useconds_t.h, Kernel/sys/_types/_suseconds_t.h, sys/_types/_rsize_t.h, Kernel/sys/_types/_errno_t.h, sys/_types/_fd_def.h, Kernel/sys/_types/_fd_setsize.h, Kernel/sys/_types/_fd_set.h, Kernel/sys/_types/_fd_clr.h, Kernel/sys/_types/_fd_zero.h, Kernel/sys/_types/_fd_isset.h, Kernel/sys/_types/_fd_copy.h, Kernel/sys/_types/_fsblkcnt_t.h, Kernel/sys/_types/_fsfilcnt_t.h
3 functions

functionmajor

static inline __int32_t major(__uint32_t _x)
claude-fable-5, 2026-08-23 · not from Apple sources · verified against xnu bsd/sys/types.h
Returns the major device number encoded in a dev_t: the top 8 bits (bits 24-31). Inline function form of the traditional major() macro, used for C++ where the lowercase macro would collide with member functions.

functionminor

static inline __int32_t minor(__uint32_t _x)
claude-fable-5, 2026-08-23 · not from Apple sources · verified against xnu bsd/sys/types.h
Returns the minor device number encoded in a dev_t: the low 24 bits. Inline function form of the traditional minor() macro.

functionmakedev

static inline dev_t makedev(__uint32_t _major, __uint32_t _minor)
claude-fable-5, 2026-08-23 · not from Apple sources · verified against xnu bsd/sys/types.h
Constructs a dev_t from a major and minor device number: the major number in the top 8 bits, the minor number in the low 24 bits. Inline function form of the traditional makedev() macro.