 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
		
			
				
	
	
		
			31 lines
		
	
	
		
			770 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			770 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _MINLIB
 | |
| #define _MINLIB
 | |
| 
 | |
| #include <sys/mount.h>
 | |
| 
 | |
| /* Miscellaneous BSD. */
 | |
| char *itoa(int _n);
 | |
| 
 | |
| /* Miscellaneous MINIX. */
 | |
| void std_err(const char *_s);
 | |
| void prints(const char *_s, ...);
 | |
| int fsversion(char *_dev, char *_prog);
 | |
| int getprocessor(void);
 | |
| void _cpuid(u32_t *eax, u32_t *ebx, u32_t *ecx, u32_t *edx);
 | |
| int load_mtab(char *_prog_name);
 | |
| uint8_t fs_mode_to_type(mode_t mode);
 | |
| int get_mtab_entry(char dev[PATH_MAX], char mount_point[PATH_MAX],
 | |
| 			char type[MNTNAMELEN], char flags[MNTFLAGLEN]);
 | |
| 
 | |
| /* read_tsc() and friends */
 | |
| void read_tsc(u32_t *hi, u32_t *lo);
 | |
| void read_tsc_64(u64_t *t);
 | |
| 
 | |
| /* return values for fsversion */
 | |
| #define FSVERSION_MFS1	0x00001
 | |
| #define FSVERSION_MFS2	0x00002
 | |
| #define FSVERSION_MFS3	0x00003
 | |
| #define FSVERSION_EXT2	0x10002
 | |
| 
 | |
| #endif
 |