forked from Bananymous/banan-os
LibC: add device macros in sys/sysmacros.h
This commit is contained in:
parent
2ffee63889
commit
86d777e2eb
|
@ -0,0 +1,8 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#define makedev(maj, min) ((dev_t)(maj) << 32 | (dev_t)(min))
|
||||||
|
|
||||||
|
#define major(dev) (((dev) >> 32) & 0xFFFFFFFF)
|
||||||
|
#define minor(dev) ( (dev) & 0xFFFFFFFF)
|
Loading…
Reference in New Issue