Commit Diff


commit - 58fdc083addda3f95eb8895f474da5a52f145be0
commit + 6fd4e901ce48f2e056c505c81320f786175588ff
blob - 4fa86b22eed34947454148faac83905a28dea085
blob + 7b4c3813116e9a1121042cdb9094335c9703a80d
--- include/libc.h
+++ 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
blob - 44a4feeef76a545790b467ea350dfb2927807292
blob + 439106941cc6cb53b59db8c9733e02732e836580
--- src/lib9/open.c
+++ 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__)