- The primary reason is that mkfs and installboot need to run natively during the cross compilation (host and target versions are compiled). There is a collision of include files though. E.g. a.out.h is very minix-specific. Therefore some files we moved and replaced by stubs that include the original file if compiling on or for Minix : include/a.out.h -> include/minix/a.out.h include/sys/dir.h -> include/minix/dir.h include/dirent.h -> include/minix/dirent.h include/sys/types.h -> include/minix/types.h - This does not break any native compilation on Minix. Other headers that were including the original files are changed according to include directly the new, minix specific location not to pick up the host system includes while cross-compiling. - role of this patch is to make rebasing of the build branch simpler until the new build system is merged
34 lines
935 B
C
Executable File
34 lines
935 B
C
Executable File
/* minix/u64.h Author: Kees J. Bot
|
|
* 7 Dec 1995
|
|
* Functions to manipulate 64 bit disk addresses.
|
|
*/
|
|
#ifndef _MINIX__U64_H
|
|
#define _MINIX__U64_H
|
|
|
|
#ifndef _TYPES_H
|
|
#include <minix/types.h>
|
|
#endif
|
|
|
|
u64_t add64(u64_t i, u64_t j);
|
|
u64_t add64u(u64_t i, unsigned j);
|
|
u64_t add64ul(u64_t i, unsigned long j);
|
|
u64_t sub64(u64_t i, u64_t j);
|
|
u64_t sub64u(u64_t i, unsigned j);
|
|
u64_t sub64ul(u64_t i, unsigned long j);
|
|
unsigned diff64(u64_t i, u64_t j);
|
|
u64_t cvu64(unsigned i);
|
|
u64_t cvul64(unsigned long i);
|
|
unsigned cv64u(u64_t i);
|
|
unsigned long cv64ul(u64_t i);
|
|
unsigned long div64u(u64_t i, unsigned j);
|
|
unsigned rem64u(u64_t i, unsigned j);
|
|
u64_t mul64u(unsigned long i, unsigned j);
|
|
int cmp64(u64_t i, u64_t j);
|
|
int cmp64u(u64_t i, unsigned j);
|
|
int cmp64ul(u64_t i, unsigned long j);
|
|
unsigned long ex64lo(u64_t i);
|
|
unsigned long ex64hi(u64_t i);
|
|
u64_t make64(unsigned long lo, unsigned long hi);
|
|
|
|
#endif /* _MINIX__U64_H */
|