From b418cc483f2c538a9dd6353a9d96390b80bb70cb Mon Sep 17 00:00:00 2001 From: marc Date: Thu, 21 Nov 2002 20:45:05 +0000 Subject: Add strerror_r and functions versions of getchar_unlocked and putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@ --- lib/libc/stdio/putchar.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'lib/libc/stdio/putchar.c') diff --git a/lib/libc/stdio/putchar.c b/lib/libc/stdio/putchar.c index 22aa47aaefb..47480d494f3 100644 --- a/lib/libc/stdio/putchar.c +++ b/lib/libc/stdio/putchar.c @@ -35,11 +35,24 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: putchar.c,v 1.3 2001/07/09 06:57:44 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: putchar.c,v 1.4 2002/11/21 20:45:05 marc Exp $"; #endif /* LIBC_SCCS and not lint */ #include +#undef putchar_unlocked +/* + * A subrouting version of the macro putchar_unlocked + */ +int +putchar_unlocked(c) + int c; +{ + FILE *so = stdout; + + return (putc_unlocked(c,so)); +} + #undef putchar /* @@ -49,7 +62,7 @@ int putchar(c) int c; { - register FILE *so = stdout; + FILE *so = stdout; - return (__sputc(c, so)); + return (putc(c, so)); } -- cgit v1.2.3-59-g8ed1b