summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/include/9p.h1
-rw-r--r--sys/src/lib9p/thread.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/include/9p.h b/sys/include/9p.h
index 377ebc437..fb2862438 100644
--- a/sys/include/9p.h
+++ b/sys/include/9p.h
@@ -226,6 +226,7 @@ int chatty9p;
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);
/*
diff --git a/sys/src/lib9p/thread.c b/sys/src/lib9p/thread.c
index e345d0886..e3912ea03 100644
--- a/sys/src/lib9p/thread.c
+++ b/sys/src/lib9p/thread.c
@@ -23,3 +23,10 @@ threadpostmountsrv(Srv *s, char *name, char *mtpt, int flag)
_forker = tforker;
_postmountsrv(s, name, mtpt, flag);
}
+
+void
+threadpostsharesrv(Srv *s, char *name, char *mtpt, int flag)
+{
+ _forker = tforker;
+ _postmountsrv(s, name, mtpt, flag);
+}