2023-05-26 22:21:07 +03:00
|
|
|
#ifndef _SYS_SYSMACROS_H
|
|
|
|
#define _SYS_SYSMACROS_H 1
|
2023-04-03 10:57:47 +03:00
|
|
|
|
2023-05-26 22:21:07 +03:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
#define __need_pid_t
|
2023-04-03 10:57:47 +03:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
2024-06-18 20:32:43 +03:00
|
|
|
#define makedev(maj, min) ((dev_t)(maj) << 16 | (dev_t)(min))
|
2023-04-03 10:57:47 +03:00
|
|
|
|
2024-06-18 20:32:43 +03:00
|
|
|
#define major(dev) (((dev) >> 16) & 0xFFFF)
|
|
|
|
#define minor(dev) ( (dev) & 0xFFFF)
|
2023-05-26 22:21:07 +03:00
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
2024-01-24 14:43:46 +02:00
|
|
|
#endif
|