expose unix mode bits
This commit is contained in:
parent
0a22905232
commit
2acd6fa6ff
4 changed files with 28 additions and 10 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#include <sys/stat.h>
|
||||
|
||||
extern int _p9dir(struct stat*, char*, Dir*, char**, char*);
|
||||
extern int _p9dir(struct stat*, struct stat*, char*, Dir*, char**, char*);
|
||||
|
||||
Dir*
|
||||
dirfstat(int fd)
|
||||
|
|
@ -18,7 +18,7 @@ dirfstat(int fd)
|
|||
return nil;
|
||||
|
||||
snprint(tmp, sizeof tmp, "/dev/fd/%d", fd);
|
||||
nstr = _p9dir(&st, tmp, nil, nil, nil);
|
||||
nstr = _p9dir(&st, &st, tmp, nil, nil, nil);
|
||||
d = mallocz(sizeof(Dir)+nstr, 1);
|
||||
if(d == nil)
|
||||
return nil;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue