 6c8f7fc3ba
			
		
	
	
		6c8f7fc3ba
		
	
	
	
	
		
			
			. add all sys/sys headers not already present to help compiling . take netbsd dirent.h and struct dirent; main result is introducing d_type and d_namlen that have to be set by getdents() in all FS code implementing it . d_off is gone . alignment of the struct has become 8 bytes instead of 4 . remove _MAX_BLOCK_SIZE, _MIN_BLOCK_SIZE, _STATIC_BLOCK_SIZE . libminlib: cleanup unused yet duplicate code . mfs: throw out the long-broken v1, v2 support . new test for dirent contents filled by getdents() Change-Id: I1459755c7ba5e5d1c9396d3a587ce6e63ddc283e
		
			
				
	
	
		
			24 lines
		
	
	
		
			691 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			691 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*	$NetBSD: joystick.h,v 1.2 2005/12/03 17:10:46 christos Exp $	*/
 | |
| 
 | |
| #ifndef _SYS_JOYSTICK_H_
 | |
| #define _SYS_JOYSTICK_H_
 | |
| 
 | |
| #include <sys/types.h>
 | |
| #include <sys/ioctl.h>
 | |
| 
 | |
| struct joystick {
 | |
|     int x;
 | |
|     int y;
 | |
|     int b1;
 | |
|     int b2;
 | |
| };
 | |
| 
 | |
| #define JOY_SETTIMEOUT    _IOW('J', 1, int)    /* set timeout */
 | |
| #define JOY_GETTIMEOUT    _IOR('J', 2, int)    /* get timeout */
 | |
| #define JOY_SET_X_OFFSET  _IOW('J', 3, int)    /* set offset on X-axis */
 | |
| #define JOY_SET_Y_OFFSET  _IOW('J', 4, int)    /* set offset on X-axis */
 | |
| #define JOY_GET_X_OFFSET  _IOR('J', 5, int)    /* get offset on X-axis */
 | |
| #define JOY_GET_Y_OFFSET  _IOR('J', 6, int)    /* get offset on Y-axis */
 | |
| 
 | |
| #endif /* _SYS_JOYSTICK_H_ */
 |