Files
Arquivotheca.Solaris-2.5/lib/libbc/inc/include/sys/sysmacros.h
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

20 lines
399 B
C
Executable File

/* @(#)sysmacros.h 1.5 90/03/30 SMI */
/*
* Major/minor device constructing/busting macros.
*/
#ifndef _sys_sysmacros_h
#define _sys_sysmacros_h
/* major part of a device */
#define major(x) ((int)(((unsigned)(x)>>8)&0377))
/* minor part of a device */
#define minor(x) ((int)((x)&0377))
/* make a device number */
#define makedev(x,y) ((dev_t)(((x)<<8) | (y)))
#endif /*!_sys_sysmacros_h*/