diff options
author | Mike Makonnen <mtm@FreeBSD.org> | 2003-06-09 17:58:15 +0000 |
---|---|---|
committer | Mike Makonnen <mtm@FreeBSD.org> | 2003-06-09 17:58:15 +0000 |
commit | 05e948d9969843aba78c717dad84a68e351439a2 (patch) | |
tree | 03da2338eb53f3e19f919b5b41e5c21ecdeca139 /lib | |
parent | 8d2536a05866543f0fc63b4277036f05fb791014 (diff) | |
download | src-05e948d9969843aba78c717dad84a68e351439a2.tar.gz src-05e948d9969843aba78c717dad84a68e351439a2.zip |
_thread_printf() is only used for debugging or in cases where something's
screwed beyond all help, so it can just skip the pthreads wrapper
for write(2) and call directly into it.
Notes
Notes:
svn path=/head/; revision=116103
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libthr/thread/thr_printf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_printf.c b/lib/libthr/thread/thr_printf.c index 3a120e87eb40..db861a7b3298 100644 --- a/lib/libthr/thread/thr_printf.c +++ b/lib/libthr/thread/thr_printf.c @@ -110,7 +110,7 @@ static void pchar(int fd, char c) { - write(fd, &c, 1); + __sys_write(fd, &c, 1); } /* @@ -120,6 +120,6 @@ static void pstr(int fd, const char *s) { - write(fd, s, strlen(s)); + __sys_write(fd, s, strlen(s)); } |