Index: branches/xZenu/src/modules/klibc/Makefile =================================================================== --- branches/xZenu/src/modules/klibc/Makefile (revision 1308) +++ branches/xZenu/src/modules/klibc/Makefile (revision 1309) @@ -25,6 +25,7 @@ qsort sha1hash onexit atexit exit \ snprintf vsnprintf sscanf vsscanf sprintf \ fwrite fprintf vfprintf printf\ - fread2 fputc fputs fopen fread + fread2 fputc fputs fopen fread ftell fseek fclose ferror \ + assert include ../MakeInc.dir Index: branches/xZenu/src/modules/klibc/assert.c =================================================================== --- branches/xZenu/src/modules/klibc/assert.c (revision 0) +++ branches/xZenu/src/modules/klibc/assert.c (revision 1309) @@ -0,0 +1,19 @@ +/* + * assert.c + */ + +#include +#include +#include + +void __assert_fail(const char *expr, const char *file, unsigned int line) +{ + printf("Assertion %s failed, file %s, line %u\n", expr, file, line); + while(1); +} + +void __assert_rtn(const char *func, const char *file, int line, const char* expr) +{ + printf("Assertion %s failed, file %s, line %u, function %s\n", expr, file, line, func); + while(1); +} Index: branches/xZenu/src/modules/klibc/fclose.c =================================================================== --- branches/xZenu/src/modules/klibc/fclose.c (revision 0) +++ branches/xZenu/src/modules/klibc/fclose.c (revision 1309) @@ -0,0 +1,11 @@ +/* + * fclose.c + */ + +#include + +int fclose ( FILE * stream ) +{ + printf("WARNING: fseek not implimented.\n"); + return 0; +} \ No newline at end of file Index: branches/xZenu/src/modules/klibc/ferror.c =================================================================== --- branches/xZenu/src/modules/klibc/ferror.c (revision 0) +++ branches/xZenu/src/modules/klibc/ferror.c (revision 1309) @@ -0,0 +1,11 @@ +/* + * ferror.c + */ + +#include + +int ferror ( FILE * stream ) +{ + printf("WARNING: ferror not implimented.\n"); + return 0; +} \ No newline at end of file Index: branches/xZenu/src/modules/klibc/fseek.c =================================================================== --- branches/xZenu/src/modules/klibc/fseek.c (revision 0) +++ branches/xZenu/src/modules/klibc/fseek.c (revision 1309) @@ -0,0 +1,11 @@ +/* + * fseek.c + */ + +#include + +int fseek(FILE * stream, long int offset, int origin) +{ + printf("WARNING: fseek not implimented.\n"); + return 0; +} \ No newline at end of file Index: branches/xZenu/src/modules/klibc/ftell.c =================================================================== --- branches/xZenu/src/modules/klibc/ftell.c (revision 0) +++ branches/xZenu/src/modules/klibc/ftell.c (revision 1309) @@ -0,0 +1,11 @@ +/* + * ftell.c + */ + +#include + +long ftell(FILE* file) +{ + printf("WARNING: ftell not implimented.\n"); + return 0; +} \ No newline at end of file