summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/putchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/putchar.c')
-rw-r--r--lib/libc/stdio/putchar.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/libc/stdio/putchar.c b/lib/libc/stdio/putchar.c
index 99439ac..57400d3 100644
--- a/lib/libc/stdio/putchar.c
+++ b/lib/libc/stdio/putchar.c
@@ -39,14 +39,11 @@
static char sccsid[] = "@(#)putchar.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: putchar.c,v 1.5 1997/02/22 15:02:19 peter Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
-#ifdef _THREAD_SAFE
-#include <pthread.h>
-#include "pthread_private.h"
-#endif
+#include "libc_private.h"
#undef putchar
@@ -60,12 +57,8 @@ putchar(c)
int retval;
register FILE *so = stdout;
-#ifdef _THREAD_SAFE
- _thread_flockfile(so,__FILE__,__LINE__);
-#endif
+ FLOCKFILE(so);
retval = __sputc(c, so);
-#ifdef _THREAD_SAFE
- _thread_funlockfile(so);
-#endif
+ FUNLOCKFILE(so);
return (retval);
}
OpenPOWER on IntegriCloud