search for: feb48ef

Displaying 2 results from an estimated 2 matches for "feb48ef".

Did you mean: fe4bdef
2016 Feb 01
0
[klibc:master] fwrite: flush before a large write to allow better bypass
...alls, since we will always need to do two system calls in this case. Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- usr/klibc/stdio/fwrite.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr/klibc/stdio/fwrite.c b/usr/klibc/stdio/fwrite.c index 71ee75c..feb48ef 100644 --- a/usr/klibc/stdio/fwrite.c +++ b/usr/klibc/stdio/fwrite.c @@ -14,14 +14,15 @@ static size_t fwrite_noflush(const void *buf, size_t count, ssize_t rv; while (count) { - if (f->ibytes || f->obytes >= f->bufsiz) + if (f->ibytes || f->obytes >= f->bufsiz || +...
2016 Feb 01
0
[klibc:master] fwrite: fix typo in comment
...ypo in comment, no code change. Reported-by: Gilles Espinasse <g.esp at free.fr> Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- usr/klibc/stdio/fwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/klibc/stdio/fwrite.c b/usr/klibc/stdio/fwrite.c index feb48ef..9f32ae4 100644 --- a/usr/klibc/stdio/fwrite.c +++ b/usr/klibc/stdio/fwrite.c @@ -21,7 +21,7 @@ static size_t fwrite_noflush(const void *buf, size_t count, if (count >= f->bufsiz) { /* - * The the write is large, so bypass + * The write is large, so bypass * buffering enti...