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); +}