FreeBSD Bugzilla – Attachment 207198 Details for
Bug 210855
benchmarks/bonnie++ : use of volatile char messes up EOF comparison; more (armv6 with -mcpu=cortex-a7 for/on rpi2) - update to 1.98
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-getc_putc
patch-getc_putc (text/plain), 1.31 KB, created by
Walter Schwarzenfeld
on 2019-09-04 23:06:04 UTC
(
hide
)
Description:
patch-getc_putc
Filename:
MIME Type:
Creator:
Walter Schwarzenfeld
Created:
2019-09-04 23:06:04 UTC
Size:
1.31 KB
patch
obsolete
>--- getc_putc_helper.cpp.orig 2019-09-04 21:16:03 UTC >+++ getc_putc_helper.cpp >@@ -45,7 +45,13 @@ int main(int argc, char *argv[]) > return 1; > } > fflush(NULL); >- TEST_FUNC_READ("getc() no thread", if( (c = getc(fp)) == EOF), res[1]); >+ bool b = false; >+ int temp = getc(fp); >+ if (temp != EOF) >+ { c=(char)temp; >+ b=true; >+ } >+ TEST_FUNC_READ("getc() no thread", if (b == false), res[1]); > if(fseek(fp, 0, SEEK_SET) != 0) > { > fprintf(stderr, "Can't seek.\n"); >--- getc_putc.cpp.orig 2019-09-04 21:16:16 UTC >+++ getc_putc.cpp >@@ -206,7 +206,13 @@ int main(int argc, char *argv[]) > return 1; > } > fflush(NULL); >- TEST_FUNC_READ("getc()", if( (c = getc(fp)) == EOF), res[Getc]); >+ int temp = getc(fp); >+ bool b=false; >+ if (temp!=EOF) >+ { c=(char)temp; >+ b=true; >+ } >+ TEST_FUNC_READ("getc()", if (b == false), res[Getc]); > if(fseek(fp, 0, SEEK_SET) != 0) > { > fprintf(stderr, "Can't seek.\n"); >@@ -221,7 +227,13 @@ int main(int argc, char *argv[]) > return 1; > } > fflush(NULL); >- TEST_FUNC_READ("getc_unlocked()", if( (c = getc_unlocked(fp)) == EOF), res[GetcUnlocked]); >+ temp = getc_unlocked(fp); >+ b=false; >+ if (temp != EOF) >+ { c=(char)temp; >+ b=true; >+ } >+ TEST_FUNC_READ("getc_unlocked()", if (b == false), res[GetcUnlocked]); > > if(!quiet) > printf("done\n"); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 210855
:
207097
|
207131
|
207156
|
207172
|
207173
|
207198
|
207210