diff --git a/src/lib/libc_old/stdio/fclose.c b/src/lib/libc_old/stdio/fclose.c index a0684da..a9493e6 100644 --- a/src/lib/libc_old/stdio/fclose.c +++ b/src/lib/libc_old/stdio/fclose.c @@ -32,7 +32,7 @@ int fclose(FILE *fp) { int status = 0x0; - asm( + asm volatile( "int %0\n" : : "i" (0x80),"a" (10),"b" (fp),"c" (&status) ); @@ -42,5 +42,8 @@ /*** $Log$ + Revision 1.2 2004/06/16 19:31:10 reddawg + Fixed a memory leak we now free(fp); + END ***/ diff --git a/src/lib/libc_old/stdio/fgetc.c b/src/lib/libc_old/stdio/fgetc.c index a3acd3d..bbb8a29 100644 --- a/src/lib/libc_old/stdio/fgetc.c +++ b/src/lib/libc_old/stdio/fgetc.c @@ -31,7 +31,7 @@ int fgetc(FILE *fd) { volatile int ch = 0x0; - asm( + asm volatile( "int %0" : : "i" (0x80),"a" (5),"b" (&ch),"c" (fd) @@ -41,6 +41,9 @@ /*** $Log$ + Revision 1.3 2004/06/17 15:13:35 reddawg + Fixed an initializer + Revision 1.2 2004/06/16 19:38:26 reddawg Updated CW Cleaned Out Dead Code diff --git a/src/lib/libc_old/stdio/fopen.c b/src/lib/libc_old/stdio/fopen.c index 4c41b94..e45efe0 100644 --- a/src/lib/libc_old/stdio/fopen.c +++ b/src/lib/libc_old/stdio/fopen.c @@ -33,7 +33,7 @@ FILE *fopen(const char *file,const char *mode) { FILE *fp = malloc(sizeof(FILE)); fp->fd = -1; - asm( + asm volatile( "int %0\n" : : "i" (0x80),"a" (8),"b" (file),"c" (mode),"d" (fp) ); @@ -42,5 +42,8 @@ /*** $Log$ + Revision 1.2 2004/06/16 19:38:26 reddawg + Updated CW Cleaned Out Dead Code + END ***/ diff --git a/src/lib/libc_old/stdio/fread.c b/src/lib/libc_old/stdio/fread.c index 95cedd4..e57f13b 100644 --- a/src/lib/libc_old/stdio/fread.c +++ b/src/lib/libc_old/stdio/fread.c @@ -30,7 +30,7 @@ #include size_t fread(void *pointer,size_t size,size_t count, FILE *stream) { - asm( + asm volatile( "int %0\n" : : "i" (0x80),"a" (22),"b" (pointer),"c" (size * count),"d" (stream) ); @@ -39,5 +39,8 @@ /*** $Log$ + Revision 1.2 2004/06/16 19:38:26 reddawg + Updated CW Cleaned Out Dead Code + END ***/ diff --git a/src/lib/libc_old/stdio/freopen.c b/src/lib/libc_old/stdio/freopen.c index aed9e26..6cd2239 100644 --- a/src/lib/libc_old/stdio/freopen.c +++ b/src/lib/libc_old/stdio/freopen.c @@ -48,7 +48,7 @@ - asm( + asm volatile( "int %0\n" @@ -61,7 +61,7 @@ fp->fd = -1; - asm( + asm volatile( "int %0\n" @@ -76,5 +76,8 @@ /*** $Log$ + Revision 1.1 2004/06/16 20:28:42 reddawg + New Code + END ***/ diff --git a/src/lib/libc_old/stdio/fseek.c b/src/lib/libc_old/stdio/fseek.c index 60ecc6a..dd5a9ed 100644 --- a/src/lib/libc_old/stdio/fseek.c +++ b/src/lib/libc_old/stdio/fseek.c @@ -30,7 +30,7 @@ #include int fseek(FILE *fd,long offset,int whence) { - asm( + asm volatile( "int %0\n" : : "i" (0x80),"a" (27),"b" (fd),"c" (offset),"d" (whence) ); @@ -39,5 +39,8 @@ /*** $Log$ + Revision 1.2 2004/06/16 19:38:26 reddawg + Updated CW Cleaned Out Dead Code + END ***/ diff --git a/src/lib/libc_old/stdio/fwrite.c b/src/lib/libc_old/stdio/fwrite.c index 8aa7988..3cab2cd 100644 --- a/src/lib/libc_old/stdio/fwrite.c +++ b/src/lib/libc_old/stdio/fwrite.c @@ -31,7 +31,7 @@ int fwrite(const void *ptr,int size,int nmemb,FILE *fd) { int retVal = size; - asm( + asm volatile( "int %0" : : "i" (0x80),"a" (23),"b" (ptr),"c" (size*nmemb),"d" (fd) @@ -41,5 +41,8 @@ /*** $Log$ + Revision 1.2 2004/06/16 19:38:26 reddawg + Updated CW Cleaned Out Dead Code + END ***/