aboutsummaryrefslogtreecommitdiff
path: root/include/libc.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-05-17 12:37:11 -0400
committerRuss Cox <rsc@swtch.com>2020-05-17 20:15:41 -0400
commit6fd4e901ce48f2e056c505c81320f786175588ff (patch)
treedcccb84bd2f37a06b349b5555f41727898041b7b /include/libc.h
parent58fdc083addda3f95eb8895f474da5a52f145be0 (diff)
downloadplan9port-6fd4e901ce48f2e056c505c81320f786175588ff.tar.gz
plan9port-6fd4e901ce48f2e056c505c81320f786175588ff.tar.bz2
plan9port-6fd4e901ce48f2e056c505c81320f786175588ff.zip
lib9: add close
More preparation for opendir.
Diffstat (limited to 'include/libc.h')
-rw-r--r--include/libc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libc.h b/include/libc.h
index 4fa86b22..7b4c3813 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -747,7 +747,7 @@ extern int awaitnohang(char*, int);
/* extern int bind(char*, char*, int); give up */
/* extern int brk(void*); <unistd.h> */
extern int p9chdir(char*);
-extern int close(int);
+extern int p9close(int);
extern int p9create(char*, int, ulong);
extern int p9dup(int, int);
extern int errstr(char*, uint);
@@ -822,6 +822,8 @@ extern ulong rendezvous(ulong, ulong);
#define create p9create
#undef open
#define open p9open
+#undef close
+#define close p9close
#define pipe p9pipe
#define waitfor p9waitfor
#define write p9write