From 4e506c9aefe5b89970ae6894d05ad53c81af0d83 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 6 May 2005 02:43:04 +0000 Subject: use installed dietlibc, not our forked cvs version --- mdk-stage1/dietlibc/libstdio/fclose.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 mdk-stage1/dietlibc/libstdio/fclose.c (limited to 'mdk-stage1/dietlibc/libstdio/fclose.c') diff --git a/mdk-stage1/dietlibc/libstdio/fclose.c b/mdk-stage1/dietlibc/libstdio/fclose.c deleted file mode 100644 index 491ed2522..000000000 --- a/mdk-stage1/dietlibc/libstdio/fclose.c +++ /dev/null @@ -1,22 +0,0 @@ -#include "dietstdio.h" -#include -#include - -int fclose(FILE *stream) { - int res; - FILE *f,*fl; - fflush(stream); - res=close(stream->fd); - for (fl=0,f=__stdio_root; f; fl=f,f=f->next) - if (f==stream) { - if (fl) - fl->next=f->next; - else - __stdio_root=f->next; - break; - } - if ((!(stream->flags&STATICBUF))&&(stream->buf)) - free(stream->buf); - free(stream); - return res; -} -- cgit v1.2.1