diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-14 20:21:42 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-14 20:21:42 +0100 |
commit | 035aacf6f5c23f0513e240046818ef203e8d87cb (patch) | |
tree | 287c703bebdd3566486f8fb0535c5b1d21a5b639 /sys/man | |
parent | 4afb56f570b3d6943e39bda5c9a2992a3bd139d2 (diff) |
bio: add Bfdopen() from plan9port
Diffstat (limited to 'sys/man')
-rw-r--r-- | sys/man/2/bio | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/man/2/bio b/sys/man/2/bio index a059f1cf4..1aae56005 100644 --- a/sys/man/2/bio +++ b/sys/man/2/bio @@ -1,6 +1,6 @@ .TH BIO 2 .SH NAME -Bopen, Binit, Binits, Brdline, Brdstr, Bgetc, Bgetrune, Bgetd, Bungetc, Bungetrune, Bread, Bseek, Boffset, Bfildes, Blinelen, Bputc, Bputrune, Bprint, Bvprint, Bwrite, Bflush, Bterm, Bbuffered, Blethal \- buffered input/output +Bopen, Bfdopen, Binit, Binits, Brdline, Brdstr, Bgetc, Bgetrune, Bgetd, Bungetc, Bungetrune, Bread, Bseek, Boffset, Bfildes, Blinelen, Bputc, Bputrune, Bprint, Bvprint, Bwrite, Bflush, Bterm, Bbuffered, Blethal \- buffered input/output .SH SYNOPSIS .ta \w'Biobuf* 'u .B #include <u.h> @@ -13,6 +13,9 @@ Bopen, Binit, Binits, Brdline, Brdstr, Bgetc, Bgetrune, Bgetd, Bungetc, Bungetru Biobuf* Bopen(char *file, int mode) .PP .B +Biobuf* Bfdopen(int fd, int mode) +.PP +.B int Binit(Biobuf *bp, int fd, int mode) .PP .B @@ -96,6 +99,17 @@ It calls .IR malloc (2) to allocate a buffer. .PP +.I Bfdopen +allocates a buffer for the already-open file descriptor +.I fd +for mode +.B OREAD +or +.BR OWRITE . +It calls +.IR malloc (2) +to allocate a buffer. +.PP .I Binit initializes a standard size buffer, type .IR Biobuf , |