stdio_ext(3) Library Functions Manual stdio_ext(3) __fbufsize, __flbf, __fpending, __fpurge, __freadable, __freading, __fsetlocking, __fwritable, __fwriting, _flushlbf - stdio FILE C (libc, -lc) #include #include size_t __fbufsize(FILE *stream); size_t __fpending(FILE *stream); int __flbf(FILE *stream); int __freadable(FILE *stream); int __fwritable(FILE *stream); int __freading(FILE *stream); int __fwriting(FILE *stream); int __fsetlocking(FILE *stream, int type); void _flushlbf(void); void __fpurge(FILE *stream); Solaris , FILE, glibc . __fbufsize() , . The __fpending() function returns the number of characters in the output buffer. For wide-oriented streams the unit is wide characters. This function is undefined on buffers in reading mode, or opened read-only. __flbf() , , . __freadable() , , . __fwritable() , , . __freading() , , , . __fwriting() , ( ), , . __fsetlocking() . . type : FSETLOCKING_INTERNAL ( *_unlocked). . FSETLOCKING_BYCALLER (, flockfile(3), ), stdio , FSETLOCKING_INTERNAL. FSETLOCKING_QUERY ( ). _flushlbf() (flushes) ( , ). __fpurge() . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |__fbufsize(), __fpending(), | | MT-Safe race:stream | |__fpurge(), __fsetlocking() | | | +----------------------------+----------------------------------------------------------+--------------------------+ |__flbf(), __freadable(), | | MT-Safe | |__freading(), | | | |__fwritable(), | | | |__fwriting(), _flushlbf() | | | +----------------------------+----------------------------------------------------------+--------------------------+ flockfile(3), fpurge(3) () Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.15 17 2025 . stdio_ext(3)