xref: /original-bsd/sys/sys/types.h (revision 6c57d260)
1 /*	types.h	4.2	81/04/28	*/
2 
3 /*
4  * Basic system types and major/minor device constructing/busting macros.
5  */
6 
7 /* major part of a device */
8 #define	major(x)	((int)(((unsigned)(x)>>8)&0377))
9 
10 /* minor part of a device */
11 #define	minor(x)	((int)((x)&0377))
12 
13 /* make a device number */
14 #define	makedev(x,y)	((dev_t)(((x)<<8) | (y)))
15 
16 typedef	unsigned char	u_char;
17 typedef	unsigned short	u_short;
18 typedef	unsigned int	u_int;
19 typedef	unsigned long	u_long;
20 
21 /* SHOULD USE long RATHER THAN int HERE BUT IT WOULD GIVE LINT ON THE KERNEL */
22 /* GASTRIC DISTRESS AND DON'T HAVE TIME TO FIX THAT JUST NOW */
23 typedef	struct	_physadr { int r[1]; } *physadr;
24 typedef	int	daddr_t;
25 typedef	char *	caddr_t;
26 typedef	u_short ino_t;
27 typedef	int	swblk_t;
28 typedef	int	size_t;
29 typedef	int	time_t;
30 typedef	int	label_t[14];
31 typedef	short	dev_t;
32 typedef	int	off_t;
33 typedef	long	portid_t;
34