aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-04 22:21:33 +0000
committerrsc <devnull@localhost>2005-01-04 22:21:33 +0000
commitc66e8adfa3c56b87b8deb38cc8e0a0f997a9eded (patch)
tree6db4550ed187a2fbf6e682c02696427a7873b15a /src
parentb4e8c4b6d621e64e4fb418a631af94f163fcf890 (diff)
downloadplan9port-c66e8adfa3c56b87b8deb38cc8e0a0f997a9eded.tar.gz
plan9port-c66e8adfa3c56b87b8deb38cc8e0a0f997a9eded.tar.bz2
plan9port-c66e8adfa3c56b87b8deb38cc8e0a0f997a9eded.zip
remove thread.c
Diffstat (limited to 'src')
-rwxr-xr-xsrc/libplumb/mkfile1
-rw-r--r--src/libplumb/thread.c34
2 files changed, 0 insertions, 35 deletions
diff --git a/src/libplumb/mkfile b/src/libplumb/mkfile
index 62e419ce..ccbe11b7 100755
--- a/src/libplumb/mkfile
+++ b/src/libplumb/mkfile
@@ -5,7 +5,6 @@ OFILES=\
event.$O\
fid.$O\
mesg.$O\
- thread.$O\
HFILES=$PLAN9/include/plumb.h
diff --git a/src/libplumb/thread.c b/src/libplumb/thread.c
deleted file mode 100644
index 4698899e..00000000
--- a/src/libplumb/thread.c
+++ /dev/null
@@ -1,34 +0,0 @@
-#include <u.h>
-#include <libc.h>
-#include <thread.h>
-#include <fcall.h>
-#include <fs.h>
-#include "plumb.h"
-
-Plumbmsg*
-ioplumbrecv(Ioproc *io, int fd)
-{
- char *buf;
- Plumbmsg *m;
- int n, more;
-
- buf = malloc(8192);
- if(buf == nil)
- return nil;
- n = ioread(io, fd, buf, 8192);
- m = nil;
- if(n > 0){
- m = plumbunpackpartial(buf, n, &more);
- if(m==nil && more>0){
- /* we now know how many more bytes to read for complete message */
- buf = realloc(buf, n+more);
- if(buf == nil)
- return nil;
- if(ioreadn(io, fd, buf+n, more) == more)
- m = plumbunpackpartial(buf, n+more, nil);
- }
- }
- free(buf);
- return m;
-}
-