diff options
author | Jim Meyering <jim@meyering.net> | 2000-08-26 11:58:08 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-08-26 11:58:08 +0000 |
commit | f48d309e1fdd96e41556a2406a3fb42bd9875020 (patch) | |
tree | 348d5835009741a52b5fc292fa112ea84c9bdf5d | |
parent | 9f29c127ad9f5df59cdd0ac5b7897cb938da034f (diff) | |
download | coreutils-f48d309e1fdd96e41556a2406a3fb42bd9875020.tar.xz |
*** empty log message ***
-rw-r--r-- | lib/__fpending.c | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/lib/__fpending.c b/lib/__fpending.c index 5b6e3e381..00ca83b6a 100644 --- a/lib/__fpending.c +++ b/lib/__fpending.c @@ -1,43 +1,8 @@ +#include <stdio.h> +#include <sys/types.h> + size_t __fpending (FILE *fp) { -#if STREAM_FPENDING_GLIBC2 - return fp->_IO_write_ptr - fp->_IO_write_base; -#endif - -#if STREAM_FPENDING__PTR - /* Traditional Unix */ - return fp->_ptr - fp->_base; -#endif - -#if STREAM_FPENDING__P - /* BSD */ - return fp->_p - fp->_bf._base; -#endif - -#if STREAM_FPENDING__P - /* SCO, Unixware */ - return fp->__ptr - fp->__base; -#endif - -#if STREAM_FPENDING__BUFP - /* old glibc? */ - return fp->__bufp - fp->__buffer; -#endif - -#if STREAM_FPENDING__PPTR - /* old glibc iostream? */ - return fp->_pptr - fp->_pbase; -#endif - -#if STREAM_FPENDING__PTR_DEREF - /* VMS */ - return (*fp)->_ptr - (*fp)->_base; -#endif - -#if STREAM_FPENDING_NOT_AVAILABLE - /* e.g., DGUX R4.11 */ - return 1; /* i.e. the info is not available */ -#endif - + return PENDING_OUTPUT_N_BYTES; } |