aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/chanprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/chanprint.c')
-rw-r--r--src/libthread/chanprint.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libthread/chanprint.c b/src/libthread/chanprint.c
deleted file mode 100644
index 781c6f6f..00000000
--- a/src/libthread/chanprint.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <u.h>
-#include <libc.h>
-#include <thread.h>
-
-int
-chanprint(Channel *c, char *fmt, ...)
-{
- va_list arg;
- char *p;
- int n;
-
- va_start(arg, fmt);
- p = vsmprint(fmt, arg);
- va_end(arg);
- if(p == nil)
- sysfatal("vsmprint failed: %r");
- n = sendp(c, p);
- yield(); /* let recipient handle message immediately */
- return n;
-}