aboutsummaryrefslogtreecommitdiff
path: root/include/libc.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-07-04 12:38:26 -0400
committerRuss Cox <rsc@swtch.com>2008-07-04 12:38:26 -0400
commitcab935a0ba34797d8b75fe1cfb7624a33d25e671 (patch)
tree3dd76e00d49cc4375d015f6f730059a3fa3f11c2 /include/libc.h
parentfc9fc9c83154ff0fa5a56854ee1f023c78f66fd8 (diff)
downloadplan9port-cab935a0ba34797d8b75fe1cfb7624a33d25e671.tar.gz
plan9port-cab935a0ba34797d8b75fe1cfb7624a33d25e671.tar.bz2
plan9port-cab935a0ba34797d8b75fe1cfb7624a33d25e671.zip
lib9: add write function that withstands interrupts
Diffstat (limited to 'include/libc.h')
-rw-r--r--include/libc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libc.h b/include/libc.h
index 7611dde1..aa23d306 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -793,6 +793,7 @@ extern int p9waitpid(void);
extern long write(int, void*, long);
extern long writev(int, IOchunk*, int);
*/
+extern long p9write(int, void*, long);
/* extern int wstat(char*, uchar*, int); give up */
extern ulong rendezvous(ulong, ulong);
@@ -813,6 +814,7 @@ extern ulong rendezvous(ulong, ulong);
#define open p9open
#define pipe p9pipe
#define waitfor p9waitfor
+#define write p9write
#endif
extern Dir* dirstat(char*);