]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r357284, r357419: stdio unlocked
authorKyle Evans <kevans@FreeBSD.org>
Thu, 13 Feb 2020 03:13:29 +0000 (03:13 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 13 Feb 2020 03:13:29 +0000 (03:13 +0000)
commitd8f29d06801c63021156670cc8738b1370bd6b60
tree2654c42c04e108a5ec58719777a6fb99d3aeb240
parentf2e29de6976a0abd7d85f40520f55a9133f92c24
MFC r357284, r357419: stdio unlocked

r357284:
stdio: provide _unlocked variants of fflush, fputc, fputs, fread, fwrite

fflush_unlocked is currently desired in ports by sysutils/metalog, and
redefined as the locked fflush.

fputc_unlocked, fputs_unlocked, fread_unlocked, and fwrite_unlocked are
currently desired in ports by devel/elfutils, and redefined as the locked
fputs, fread, and fwrite respectively.

r357419:
libc: provide fputc_unlocked

Among the same justification as the other stdio _unlocked; in addition to an
inline version in <stdio.h>, we must provide a function in libc as well for
the functionality. This fixes the lang/gcc* builds, which want to use the
symbol from libc.
12 files changed:
include/stdio.h
lib/libc/stdio/Makefile.inc
lib/libc/stdio/Symbol.map
lib/libc/stdio/fflush.3
lib/libc/stdio/fflush.c
lib/libc/stdio/fputc.c
lib/libc/stdio/fputs.3
lib/libc/stdio/fputs.c
lib/libc/stdio/fread.3
lib/libc/stdio/fread.c
lib/libc/stdio/fwrite.c
lib/libc/stdio/putc.3