fp might be NULL.
[minix.git] / include / minix / minlib.h
blobdd3ca040cf6c24c70cb70051a6c05d3043a13885
1 #ifndef _MINLIB
2 #define _MINLIB
4 #ifndef _ANSI_H
5 #include <ansi.h>
6 #endif
8 /* Miscellaneous BSD. */
9 _PROTOTYPE(void swab, (char *_from, char *_to, int _count));
10 _PROTOTYPE(char *itoa, (int _n));
11 _PROTOTYPE(char *getpass, (const char *_prompt));
13 /* Miscellaneous MINIX. */
14 _PROTOTYPE(void std_err, (char *_s));
15 _PROTOTYPE(void prints, (const char *_s, ...));
16 _PROTOTYPE(int fsversion, (char *_dev, char *_prog));
17 _PROTOTYPE(int getprocessor, (void));
18 _PROTOTYPE(void _cpuid, (u32_t eax_in, u32_t *eax, u32_t *ebx, u32_t *ecx, u32_t *edx));
19 _PROTOTYPE(int load_mtab, (char *_prog_name));
20 _PROTOTYPE(int rewrite_mtab, (char *_prog_name));
21 _PROTOTYPE(int get_mtab_entry, (char *_s1, char *_s2, char *_s3, char *_s4));
22 _PROTOTYPE(int put_mtab_entry, (char *_s1, char *_s2, char *_s3, char *_s4));
24 #endif