Initial revision
This commit is contained in:
		
							parent
							
								
									3ea542769f
								
							
						
					
					
						commit
						846d9a0c2d
					
				
					 2 changed files with 56 additions and 0 deletions
				
			
		
							
								
								
									
										28
									
								
								include/_tail_cc/sys/types.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								include/_tail_cc/sys/types.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,28 @@ | |||
| /*
 | ||||
|  * Basic system types and major/minor device constructing/busting macros. | ||||
|  */ | ||||
| 
 | ||||
| /* 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))) | ||||
| 
 | ||||
| typedef	unsigned char	u_char; | ||||
| typedef	unsigned short	u_short; | ||||
| typedef	unsigned int	u_int; | ||||
| typedef	unsigned long	u_long; | ||||
| 
 | ||||
| typedef	struct	_physadr { int r[1]; } *physadr; | ||||
| typedef	long	daddr_t; | ||||
| typedef	char *	caddr_t; | ||||
| typedef	u_short ino_t; | ||||
| typedef	long	swblk_t; | ||||
| typedef	long	size_t; | ||||
| typedef	long	time_t; | ||||
| typedef	long	label_t[14]; | ||||
| typedef	short	dev_t; | ||||
| typedef	long	off_t; | ||||
							
								
								
									
										28
									
								
								include/_tail_mon/sys/types.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								include/_tail_mon/sys/types.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,28 @@ | |||
| /*
 | ||||
|  * Basic system types and major/minor device constructing/busting macros. | ||||
|  */ | ||||
| 
 | ||||
| /* 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))) | ||||
| 
 | ||||
| typedef	unsigned char	u_char; | ||||
| typedef	unsigned short	u_short; | ||||
| typedef	unsigned int	u_int; | ||||
| typedef	unsigned long	u_long; | ||||
| 
 | ||||
| typedef	struct	_physadr { int r[1]; } *physadr; | ||||
| typedef	long	daddr_t; | ||||
| typedef	char *	caddr_t; | ||||
| typedef	u_short ino_t; | ||||
| typedef	long	swblk_t; | ||||
| typedef	long	size_t; | ||||
| typedef	long	time_t; | ||||
| typedef	long	label_t[14]; | ||||
| typedef	short	dev_t; | ||||
| typedef	long	off_t; | ||||
		Loading…
	
	Add table
		
		Reference in a new issue