X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ffreadahead.h;h=d87460243d828423aa7cea5808a74638b2f19005;hb=8aa4d66e12c2b2cec1ed9792868f14724af2828c;hp=430dcf870a3d4bd6f2b8c4a6ecf58cf6a1b40619;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/freadahead.h b/lib/freadahead.h index 430dcf870..d87460243 100644 --- a/lib/freadahead.h +++ b/lib/freadahead.h @@ -1,5 +1,5 @@ /* Retrieve information about a FILE stream. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,13 +23,15 @@ extern "C" { /* Assuming the stream STREAM is open for reading: Return the number of bytes waiting in the input buffer of STREAM. + This includes both the bytes that have been read from the underlying input + source and the bytes that have been pushed back through 'ungetc'. If this number is 0 and the stream is not currently writing, fflush (STREAM) is known to be a no-op. STREAM must not be wide-character oriented. */ -extern size_t freadahead (FILE *stream); +extern size_t freadahead (FILE *stream) _GL_ATTRIBUTE_PURE; #ifdef __cplusplus }