2005-04-21 16:53:53 +02:00
|
|
|
#ifndef _MINLIB
|
|
|
|
#define _MINLIB
|
|
|
|
|
2012-11-22 23:00:00 +01:00
|
|
|
#include <sys/mount.h>
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
/* Miscellaneous BSD. */
|
2012-03-24 16:16:34 +01:00
|
|
|
char *itoa(int _n);
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/* Miscellaneous MINIX. */
|
2012-03-24 16:16:34 +01:00
|
|
|
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);
|
2012-11-22 23:00:00 +01:00
|
|
|
int get_mtab_entry(char dev[PATH_MAX], char mount_point[PATH_MAX],
|
|
|
|
char type[MNTNAMELEN], char flags[MNTFLAGLEN]);
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-08-20 20:43:56 +02:00
|
|
|
/* read_tsc() and friends */
|
2012-03-24 16:16:34 +01:00
|
|
|
void read_tsc(u32_t *hi, u32_t *lo);
|
|
|
|
void read_tsc_64(u64_t *t);
|
2010-08-20 20:43:56 +02:00
|
|
|
|
2010-08-03 08:28:58 +02:00
|
|
|
/* return values for fsversion */
|
|
|
|
#define FSVERSION_MFS1 0x00001
|
|
|
|
#define FSVERSION_MFS2 0x00002
|
|
|
|
#define FSVERSION_MFS3 0x00003
|
|
|
|
#define FSVERSION_EXT2 0x10002
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
#endif
|