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/putc.c | |
| parent | ab9306707af1cb42abff2e9f7bc1f23a17f60892 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/putc.c')
| -rw-r--r-- | lib/libc/stdio/putc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/stdio/putc.c b/lib/libc/stdio/putc.c index f15dbc1713e5..966bf959aa72 100644 --- a/lib/libc/stdio/putc.c +++ b/lib/libc/stdio/putc.c @@ -42,8 +42,6 @@ __FBSDID("$FreeBSD$"); #include "local.h" #include "libc_private.h" -#undef putc - int putc(c, fp) int c; @@ -57,3 +55,10 @@ putc(c, fp) FUNLOCKFILE(fp); return (retval); } + +int +putc_unlocked(int ch, FILE *fp) +{ + + return (__sputc(ch, fp)); +} |
