diff options
author | marcel <marcel@FreeBSD.org> | 2008-05-03 23:36:00 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-05-03 23:36:00 +0000 |
commit | 0e04be019638f430a0a5aebb9f28cd5a7d615c12 (patch) | |
tree | 36ddc40fe37ff76d54d07608dec92a89188c180c /lib/libc | |
parent | 2352203e2bb3e35113a04a2eecd62e185148adfe (diff) | |
download | FreeBSD-src-0e04be019638f430a0a5aebb9f28cd5a7d615c12.zip FreeBSD-src-0e04be019638f430a0a5aebb9f28cd5a7d615c12.tar.gz |
Unbreak build: gnu sort has been configured to grope inside struct
__sFILE. It's opaque now, so add a function that returns the pending
output bytes.
Pointy hat: jhb
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/stdio.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/stdio/stdio.c b/lib/libc/stdio/stdio.c index 3da2957..b6d01e3 100644 --- a/lib/libc/stdio/stdio.c +++ b/lib/libc/stdio/stdio.c @@ -53,6 +53,13 @@ __fgetcookie(FILE *fp) return (fp->_cookie); } +size_t +__fgetpendout(FILE *fp) +{ + + return (fp->_p - fp->_bf._base); +} + void __fsetfileno(FILE *fp, int fd) { |