Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/usermode/usermode Use write(1, ..) and not putchar()



details:   https://anonhg.NetBSD.org/src/rev/3d963bb3ac07
branches:  trunk
changeset: 768651:3d963bb3ac07
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Tue Aug 23 18:36:08 2011 +0000

description:
Use write(1,..) and not putchar()

diffstat:

 sys/arch/usermode/usermode/thunk.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 45bebf556400 -r 3d963bb3ac07 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c        Tue Aug 23 17:28:34 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c        Tue Aug 23 18:36:08 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.15 2011/08/23 17:12:32 jmcneill Exp $ */
+/* $NetBSD: thunk.c,v 1.16 2011/08/23 18:36:08 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: thunk.c,v 1.15 2011/08/23 17:12:32 jmcneill Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.16 2011/08/23 18:36:08 reinoud Exp $");
 
 #include <sys/types.h>
 #include <sys/ansi.h>
@@ -188,8 +188,8 @@
 void
 thunk_putchar(int c)
 {
-       putchar(c);
-       fflush(stdout);
+       char wc = (char) c;
+       write(1, &wc, 1);
 }
 
 int



Home | Main Index | Thread Index | Old Index