Project

General

Profile

Statistics
| Revision:

root / lab4 / .minix-src / include / minix / minlib.h @ 14

History | View | Annotate | Download (911 Bytes)

1
#ifndef _MINLIB
2
#define _MINLIB
3

    
4
#include <sys/mount.h>
5

    
6
/* Miscellaneous BSD. */
7
char *itoa(int _n);
8

    
9
/* Miscellaneous MINIX. */
10
void std_err(const char *_s);
11
void prints(const char *_s, ...);
12
int fsversion(char *_dev, char *_prog);
13
int getprocessor(void);
14
void _cpuid(u32_t *eax, u32_t *ebx, u32_t *ecx, u32_t *edx);
15
int load_mtab(char *_prog_name);
16
int get_mtab_entry(char dev[PATH_MAX], char mount_point[PATH_MAX],
17
                        char type[MNTNAMELEN], char flags[MNTFLAGLEN]);
18
int servxcheck(unsigned long peer, const char *service,
19
        void (*logf)(int pass, const char *name));
20
const char *servxfile(const char *file);
21

    
22
/* read_tsc() and friends */
23
void read_tsc(u32_t *hi, u32_t *lo);
24
void read_tsc_64(u64_t *t);
25

    
26
/* return values for fsversion */
27
#define FSVERSION_MFS1                0x00001
28
#define FSVERSION_MFS2                0x00002
29
#define FSVERSION_MFS3                0x00003
30
#define FSVERSION_EXT2                0x10002
31
#define FSVERSION_ISO9660        0x20001
32

    
33
#endif