*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: makedev | Section: 3 | Source: OpenBSD | File: makedev.3
MAKEDEV(3) FreeBSD Library Functions Manual MAKEDEV(3) NAME makedev, major, minor - create or extract device numbers SYNOPSIS #include <sys/types.h> dev_t makedev(unsigned int maj, unsigned int min); unsigned int major(dev_t dev); unsigned int minor(dev_t dev); DESCRIPTION On OpenBSD, all devices on the system are assigned a unique number which consists of a major and minor component. Typically, the major number identifies the kind of device and the minor number identifies a specific instance of the device. The makedev() macro is used to combine a major and minor device number into a form suitable for use with the mknod(2) system call. The major() macro extracts the major number from the specified device number. The minor() macro extracts the minor number from the specified device number. RETURN VALUES The makedev() macro returns a combined device number from the specified major and minor numbers. The major() macro returns the major number corresponding to the specified device number. The minor() macro returns the minor number corresponding to the specified device number. SEE ALSO mknod(2), intro(4) STANDARDS The makedev(), major(), and minor() macros are not standardized by IEEE Std 1003.1 ("POSIX.1") but are available on most systems. HISTORY The makedev(), major(), and minor() macros first appeared in Version 7 AT&T UNIX. CAVEATS On some systems, makedev(), major(), and minor() are implemented as functions rather than macros. FreeBSD 14.1-RELEASE-p8 January 25, 2019 FreeBSD 14.1-RELEASE-p8

Navigation Options