mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:02:45 +00:00 
			
		
		
		
	 69cabb3ead
			
		
	
	
		69cabb3ead
		
	
	
	
	
		
			
			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.
		
	
			
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			318 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			318 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #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)
 |