Today's changes.
More changes.
This commit is contained in:
parent
cb27443abf
commit
8ad517944e
73 changed files with 2865 additions and 1293 deletions
|
|
@ -2,12 +2,9 @@
|
|||
#define NOPLAN9DEFINES
|
||||
#include <libc.h>
|
||||
|
||||
extern char* _p9translate(char*);
|
||||
|
||||
int
|
||||
p9open(char *xname, int mode)
|
||||
p9open(char *name, int mode)
|
||||
{
|
||||
char *name;
|
||||
int cexec, rclose;
|
||||
int fd, umode;
|
||||
|
||||
|
|
@ -23,8 +20,6 @@ p9open(char *xname, int mode)
|
|||
werrstr("mode not supported");
|
||||
return -1;
|
||||
}
|
||||
if((name = _p9translate(xname)) == nil)
|
||||
return -1;
|
||||
fd = open(name, umode);
|
||||
if(fd >= 0){
|
||||
if(cexec)
|
||||
|
|
@ -32,7 +27,5 @@ p9open(char *xname, int mode)
|
|||
if(rclose)
|
||||
remove(name);
|
||||
}
|
||||
if(name != xname)
|
||||
free(name);
|
||||
return fd;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue