diff options
author | Russ Cox <rsc@swtch.com> | 2020-05-17 12:37:11 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-05-17 20:15:41 -0400 |
commit | 6fd4e901ce48f2e056c505c81320f786175588ff (patch) | |
tree | dcccb84bd2f37a06b349b5555f41727898041b7b /src/lib9 | |
parent | 58fdc083addda3f95eb8895f474da5a52f145be0 (diff) | |
download | plan9port-6fd4e901ce48f2e056c505c81320f786175588ff.tar.gz plan9port-6fd4e901ce48f2e056c505c81320f786175588ff.tar.bz2 plan9port-6fd4e901ce48f2e056c505c81320f786175588ff.zip |
lib9: add close
More preparation for opendir.
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/open.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib9/open.c b/src/lib9/open.c index 44a4feee..43910694 100644 --- a/src/lib9/open.c +++ b/src/lib9/open.c @@ -129,6 +129,13 @@ p9open(char *name, int mode) return fd; } +int +p9close(int fd) +{ + return close(fd); +} + + extern int _p9dir(struct stat*, struct stat*, char*, Dir*, char**, char*); #if defined(__linux__) |