diff options
Diffstat (limited to 'lib/libc/stdio/getchar.c')
-rw-r--r-- | lib/libc/stdio/getchar.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/stdio/getchar.c b/lib/libc/stdio/getchar.c index d10daed..2ac13f5 100644 --- a/lib/libc/stdio/getchar.c +++ b/lib/libc/stdio/getchar.c @@ -45,8 +45,6 @@ __FBSDID("$FreeBSD$"); #include "local.h" #include "libc_private.h" -#undef getchar - int getchar() { @@ -58,3 +56,10 @@ getchar() FUNLOCKFILE(stdin); return (retval); } + +int +getchar_unlocked(void) +{ + + return (__sgetc(stdin)); +} |