summaryrefslogtreecommitdiff
path: root/sys/man/2
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-10-06 00:39:05 +0200
committercinap_lenrek <cinap_lenrek@centraldogma>2011-10-06 00:39:05 +0200
commitc0c9a9927f413e70f59158a10c460b1927985f44 (patch)
tree8455dbc351cf7c3536f21027a1ab56c407d585cc /sys/man/2
parent7e744bda2bfe0c664890b0f844591793fb08c976 (diff)
libbio: add Breadn
Diffstat (limited to 'sys/man/2')
-rw-r--r--sys/man/2/bio12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/man/2/bio b/sys/man/2/bio
index a059f1cf4..ebb17c840 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, Binit, Binits, Brdline, Brdstr, Bgetc, Bgetrune, Bgetd, Bungetc, Bungetrune, Bread, Breadn, 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>
@@ -70,6 +70,9 @@ int Bputrune(Biobufhdr *bp, long c)
long Bread(Biobufhdr *bp, void *addr, long nbytes)
.PP
.B
+long Breadn(Biobufhdr *bp, void *addr, long nbytes)
+.PP
+.B
long Bwrite(Biobufhdr *bp, void *addr, long nbytes)
.PP
.B
@@ -236,6 +239,13 @@ into memory starting at
The number of bytes read is returned on success
and a negative value is returned if a read error occurred.
.PP
+.I Breadn
+is like
+.I Bread
+but continues reading until
+.I nbytes
+have been read into the buffer.
+.PP
.I Bseek
applies
.IR seek (2)