Back to index

glibc  2.9
Defines
sysmacros.h File Reference

Go to the source code of this file.

Defines

#define major(dev)   ((int)(((unsigned int) (dev) >> 8) & 0xff))
#define minor(dev)   ((int)((dev) & 0xff))
#define makedev(major, minor)   (((major) << 8) | (minor))

Define Documentation

#define major (   dev)    ((int)(((unsigned int) (dev) >> 8) & 0xff))

Definition at line 27 of file sysmacros.h.

#define makedev (   major,
  minor 
)    (((major) << 8) | (minor))

Definition at line 29 of file sysmacros.h.

#define minor (   dev)    ((int)((dev) & 0xff))

Definition at line 28 of file sysmacros.h.