diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2008-05-02 15:25:07 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2008-05-02 15:25:07 +0000 |
| commit | c17bf9a9a5a3b59e03108b785f6b15070ff25651 (patch) | |
| tree | 5e0b10db872b1b2fe5276fd887529303487c71d3 /lib/libc/stdio/putchar.c | |
| parent | ab9306707af1cb42abff2e9f7bc1f23a17f60892 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/putchar.c')
| -rw-r--r-- | lib/libc/stdio/putchar.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/stdio/putchar.c b/lib/libc/stdio/putchar.c index 175f5ffd86bd..bb1e3f4976c0 100644 --- a/lib/libc/stdio/putchar.c +++ b/lib/libc/stdio/putchar.c @@ -42,8 +42,6 @@ __FBSDID("$FreeBSD$"); #include "local.h" #include "libc_private.h" -#undef putchar - /* * A subroutine version of the macro putchar */ @@ -61,3 +59,10 @@ putchar(c) FUNLOCKFILE(so); return (retval); } + +int +putchar_unlocked(int ch) +{ + + return (__sputc(ch, stdout)); +} |
