diff options
author | Mystery Man <unknown@mandriva.org> | 2002-08-01 17:20:30 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2002-08-01 17:20:30 +0000 |
commit | 10e8a05be15a93ecb30d80420a7df79a41df0b6f (patch) | |
tree | 0fe3a8fe9665e857dcea7c8d35b539ab0295a6fa /mdk-stage1/dietlibc/libstdio/fputc.c | |
parent | 20bc98cdccfed607ee0c3050a3a3bd196c0a1d38 (diff) | |
download | drakx-backup-do-not-use-1_1_9_1mdk.tar drakx-backup-do-not-use-1_1_9_1mdk.tar.gz drakx-backup-do-not-use-1_1_9_1mdk.tar.bz2 drakx-backup-do-not-use-1_1_9_1mdk.tar.xz drakx-backup-do-not-use-1_1_9_1mdk.zip |
This commit was manufactured by cvs2svn to create tag 'V1_1_9_1mdk'.V1_1_9_1mdk
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; -} |