diff options
Diffstat (limited to 'lib/sysmacros.h')
-rw-r--r-- | lib/sysmacros.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sysmacros.h b/lib/sysmacros.h new file mode 100644 index 00000000..171b33d4 --- /dev/null +++ b/lib/sysmacros.h @@ -0,0 +1,9 @@ +/* versions to be used with > 16-bit dev_t - leave unused for now */ + +#ifndef major +#define major(dev) ((dev) >> 8) +#endif + +#ifndef minor +#define minor(dev) ((dev) & 0xff) +#endif |