summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-12-25 02:45:28 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2012-12-25 02:45:28 +0100
commit7ceff03db37d98e1dc634198fcee4206d8318499 (patch)
treef6cbd49954c203b70ce6f5bfefa5201c1d238167 /sys/man
parente7348f8ed26c8cc66cebfc3e59ff237b95db2a7b (diff)
bio: remove useless Breadn() as it does the same as Bread()
Bread() always reads exactly nbytes of data if it can. only when it reaches end of file or an error it will return less. so the Breadn() function that was introduced has been removed. sorry for the confusion.
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/2/bio12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/man/2/bio b/sys/man/2/bio
index ebb17c840..a059f1cf4 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, Breadn, 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, 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,9 +70,6 @@ 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
@@ -239,13 +236,6 @@ 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)