diff options
author | rsc <devnull@localhost> | 2005-01-02 19:46:12 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-02 19:46:12 +0000 |
commit | 2600337aa704efbeba8201e88147a764b4fd2b90 (patch) | |
tree | 48d526d00a515aabde861659380cf0f393e16401 /src/libfs/openfd.c | |
parent | acc021b8f8c727c0f04f33615354170fd7bccd0c (diff) | |
download | plan9port-2600337aa704efbeba8201e88147a764b4fd2b90.tar.gz plan9port-2600337aa704efbeba8201e88147a764b4fd2b90.tar.bz2 plan9port-2600337aa704efbeba8201e88147a764b4fd2b90.zip |
remove libfs. now lib9pclient
Diffstat (limited to 'src/libfs/openfd.c')
-rw-r--r-- | src/libfs/openfd.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/libfs/openfd.c b/src/libfs/openfd.c deleted file mode 100644 index 9e48c791..00000000 --- a/src/libfs/openfd.c +++ /dev/null @@ -1,26 +0,0 @@ -#include <u.h> -#include <libc.h> -#include <fcall.h> -#include <fs.h> -#include "fsimpl.h" - -int -fsopenfd(Fsys *fs, char *name, int mode) -{ - Fid *fid; - Fcall tx, rx; - - if((fid = fswalk(fs->root, name)) == nil) - return -1; - tx.type = Topenfd; - tx.fid = fid->fid; - tx.mode = mode&~OCEXEC; - if(fsrpc(fs, &tx, &rx, 0) < 0){ - fsclose(fid); - return -1; - } - _fsputfid(fid); - if(mode&OCEXEC && rx.unixfd>=0) - fcntl(rx.unixfd, F_SETFL, FD_CLOEXEC); - return rx.unixfd; -} |