From 51efa06e29946f7dc354b7a8df2e295959de4465 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 20 Mar 2009 19:08:31 +0000 Subject: 20090320-1908 --- CHANGES | 2 ++ man/10/styxserver | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGES b/CHANGES index ee11db86..a11b551c 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,8 @@ (the big stack is needed because XCreateBitmapFromData and XPutImage pass control to theme-related code that uses lots of stack space) use uname not aname for user name in libstyx and set aname to "" by default make odbc's new file have mode 666 so others can open it + add styxsetowner function to styxserver.h to set default owner (eve) + move styxserver.h to inferno's include directory 20090222 appl/cmd/ndb/registry.b and dis/registry.dis - implement flush for event file (issue 162) 20090217 diff --git a/man/10/styxserver b/man/10/styxserver index 8cd10fce..3e8f5fcc 100644 --- a/man/10/styxserver +++ b/man/10/styxserver @@ -82,6 +82,7 @@ struct Styxfile void *u; }; +void styxsetowner(char *user); char *styxinit(Styxserver *server, Styxops *ops, char *port, int perm, int needfile); char *styxwait(Styxserver *server); char *styxprocess(Styxserver *server); @@ -125,6 +126,14 @@ is set to true, the styx library will check that each path number it deals with has a corresponding file associated with it and, if it hasn't, it will issue a "file does not exist" message automatically. In case of an error, the error message is returned, otherwise nil is returned to indicate success. +By default, files are owned by +.BR inferno ; +.I styxsetowner +can be called before +.I styxinit +to make +.I user +the default owner of files. .TP .BI styxwait(server ) Waits for communication from a client. Return value as above. -- cgit v1.2.3