From 7ceff03db37d98e1dc634198fcee4206d8318499 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 25 Dec 2012 02:45:28 +0100 Subject: 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. --- sys/man/2/bio | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'sys/man/2') 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 @@ -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) -- cgit v1.2.3