diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-06-04 18:47:09 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-06-04 18:47:09 +0000 |
commit | c46806bf74c2618daa398cb7c3e4b1c47509a105 (patch) | |
tree | 0b429074ffc365e7eba2391cf00d7f4eecf372ab /mdk-stage1/dietlibc/libstdio/fputc.c | |
parent | 7b14ca284d598e7748f6f7a831389525c84890ba (diff) | |
download | drakx-backup-do-not-use-c46806bf74c2618daa398cb7c3e4b1c47509a105.tar drakx-backup-do-not-use-c46806bf74c2618daa398cb7c3e4b1c47509a105.tar.gz drakx-backup-do-not-use-c46806bf74c2618daa398cb7c3e4b1c47509a105.tar.bz2 drakx-backup-do-not-use-c46806bf74c2618daa398cb7c3e4b1c47509a105.tar.xz drakx-backup-do-not-use-c46806bf74c2618daa398cb7c3e4b1c47509a105.zip |
even more removals
Diffstat (limited to 'mdk-stage1/dietlibc/libstdio/fputc.c')
-rw-r--r-- | mdk-stage1/dietlibc/libstdio/fputc.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/mdk-stage1/dietlibc/libstdio/fputc.c b/mdk-stage1/dietlibc/libstdio/fputc.c deleted file mode 100644 index b816f7c4d..000000000 --- a/mdk-stage1/dietlibc/libstdio/fputc.c +++ /dev/null @@ -1,19 +0,0 @@ -#include <dietstdio.h> -#ifndef WANT_BUFFERED_STDIO -#include <unistd.h> -#endif - -int fputc(int c, FILE *stream) { -#ifdef WANT_BUFFERED_STDIO - if (__fflush4(stream,0)) return EOF; - if (stream->bm>=BUFSIZE-1) - if (fflush(stream)) return EOF; - stream->buf[stream->bm]=c; - ++stream->bm; - if ((stream->flags&BUFLINEWISE) && c=='\n') /* puke */ - if (fflush(stream)) return EOF; -#else - write(stream->fd,&c,1); -#endif - return 0; -} |