Commit | Line | Data |
---|---|---|
31cef89c BJ |
1 | /* sccs id @(#)types.h 34.1 10/3/80 */ |
2 | ||
18d1c3cd JF |
3 | typedef struct { int rrr[1]; } * physadr; |
4 | typedef long daddr_t; | |
5 | typedef char * caddr_t; | |
6 | typedef unsigned short ino_t; | |
7 | typedef long time_t; | |
8 | typedef int label_t[10]; | |
9 | typedef short dev_t; | |
10 | typedef long off_t; | |
31cef89c BJ |
11 | # ifdef UNIXTS |
12 | typedef unisgned short ushort; | |
13 | # endif | |
18d1c3cd JF |
14 | /* major part of a device */ |
15 | #define major(x) (int)(((unsigned)x>>8)&0377) | |
16 | ||
17 | /* minor part of a device */ | |
18 | #define minor(x) (int)(x&0377) | |
19 | ||
20 | /* make a device number */ | |
21 | #define makedev(x,y) (dev_t)(((x)<<8) | (y)) |