shithub: riscv

Download patch

ref: 7d0ce95567fdd93176cf45ebba50d9c27e40b45b
parent: 1a2afe988b3075452b7f45d63b3d8d30e4358d0c
author: aiju <aiju@phicode.de>
date: Wed Jul 27 12:36:32 EDT 2011

lib9p: added threadpostsharesrv

--- a/sys/include/9p.h
+++ b/sys/include/9p.h
@@ -226,6 +226,7 @@
 void		respond(Req*, char*);
 void		responderror(Req*);
 void		threadpostmountsrv(Srv*, char*, char*, int);
+void		threadpostsharesrv(Srv*, char*, char*, char*, char*);
 void		threadlistensrv(Srv *s, char *addr);
 
 /*
--- a/sys/src/lib9p/thread.c
+++ b/sys/src/lib9p/thread.c
@@ -23,3 +23,10 @@
 	_forker = tforker;
 	_postmountsrv(s, name, mtpt, flag);
 }
+
+void
+threadpostsharesrv(Srv *s, char *name, char *mtpt, int flag)
+{
+	_forker = tforker;
+	_postmountsrv(s, name, mtpt, flag);
+}
--