Xv6 with picoc & Linkage editor
v1.0
The project delineate mutual cohesion between c library, linkage editor ( linker), interpreter and operating system by porting the same on xv6 kernel
|
00001 #include "../fcntl.h" 00002 00003 extern FILE *stdout,*stdin,*stderr; 00004 #define size_t int 00005 00006 /*definations for stdout,stdin */ 00007 int checkmode( char *mode, int *seek); 00008 FILE *fopen(char *path, char* mode); 00009 int fread( void *ptr, size_t size, size_t nmemb, FILE *stream); 00010 int fwrite( void *ptr, size_t size , size_t nmemb, FILE *stream); 00011 int fclose(FILE *fp); 00012 int fputs(char *s,FILE *stream); 00013 int fprintf(FILE *,char*, ...);