added a sys/sysmacros.h header (as on R5)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14554 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a6786b1d3a
commit
9744e7bb63
14
headers/posix/sys/sysmacros.h
Normal file
14
headers/posix/sys/sysmacros.h
Normal file
@ -0,0 +1,14 @@
|
||||
/*
|
||||
** Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
#ifndef _SYSMACROS_H_
|
||||
#define _SYSMACROS_H_
|
||||
|
||||
/* from FreeBSD */
|
||||
|
||||
#define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */
|
||||
#define minor(x) ((int)((x)&0xffff00ff)) /* minor number */
|
||||
|
||||
#define makedev(x,y) ((dev_t)(((x) << 8) | (y))) /* create dev_t */
|
||||
|
||||
#endif // _SYSMACROS_H_
|
Loading…
Reference in New Issue
Block a user