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>
|
|
|
|
|
|
|
|
#define makedev(maj, min) ((dev_t)(maj) << 32 | (dev_t)(min))
|
|
|
|
|
|
|
|
#define major(dev) (((dev) >> 32) & 0xFFFFFFFF)
|
|
|
|
#define minor(dev) ( (dev) & 0xFFFFFFFF)
|
2023-05-26 22:21:07 +03:00
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
2024-01-24 14:43:46 +02:00
|
|
|
#endif
|