mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
Everywhere: Add serenity_dev_{makedev,major,minor}
Add them in `<Kernel/API/Device.h>` and use these to provides `{makedev,major,minor}` in `<sys/sysmacros.h>`. It aims to be more in line with other Unix implementations and avoid code duplication in user land.
This commit is contained in:
parent
d4484f4de3
commit
69cabb3ead
7 changed files with 43 additions and 17 deletions
|
@ -5,3 +5,9 @@
|
|||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/API/Device.h>
|
||||
|
||||
#define makedev(major, minor) serenity_dev_makedev((major), (minor))
|
||||
#define major(dev) serenity_dev_major(dev)
|
||||
#define minor(dev) serenity_dev_minor(dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue