Index of Section 3 Manual Pages

Interix / SUAminor.3Interix / SUA

minor(3)                                                       minor(3)

  mkdev()

  NAME

    mkdev(), major(), minor() - create a special device number

  SYNOPSIS

    #include 
    #include 

    dev_t mkdev (dev_t maj, dev_t min)
    dev_t major (dev_t device)
    dev_t minor (dev_t device)

  DESCRIPTION

    The mkdev(3) macro returns a formatted device number using the major and
    minor device number components specified by the maj and min arguments,
    respectively. These values are obtained by calling major(3) and minor(3)
    for the device specified by the device argument.

  RETURN VALUES

    The mkdev(3) macro returns a formatted device number.

    The major(3) macro returns a major device number component for a device.

    The minor(3) macro returns a minor device number component for a device.

  ERRORS

    None.

  USAGE NOTES

    All of these functions are thread safe.

    None of these functions are async-signal safe.


Interix / SUAHosted at SUA Community for Interix, SUA and SFUInterix / SUA