/* KLEENIX_ID: @(#)mknod.h 26.1 */ /* This file defines the major and minor device fields */ /* This version is for the Series 200 */ /* device type: officially declared in types.h */ /* typedef short dev_t; */ /* major part of a device */ #define major(x) (int)((unsigned)(x)>>8) /* minor part of a device */ #define minor(x) (int)((x)&0xff) /* make a device number */ #define makedev(x,y) (dev_t)(((x)<<8) | (y)) /* the standard print format for a minor device */ #define MINOR_FORMAT "%3.3d"