"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-eventfd.c" between
stress-ng-0.12.09.tar.xz and stress-ng-0.12.10.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

stress-eventfd.c  (stress-ng-0.12.09.tar.xz):stress-eventfd.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 151 skipping to change at line 151
break; break;
} }
/* /*
* Periodically exercise with invalid writes * Periodically exercise with invalid writes
*/ */
if (n++ >= 64) { if (n++ >= 64) {
n = 0; n = 0;
/* Exercise write using small buffer */ /* Exercise write using small buffer */
(void)memset(re, 0, sizeof(re));
ret = write(fd1, re, sizeof(re)); ret = write(fd1, re, sizeof(re));
(void)ret; (void)ret;
/* Exercise write on buffer out of range */ /* Exercise write on buffer out of range */
val = ~0UL; val = ~0UL;
ret = write(fd1, &val, sizeof(val)); ret = write(fd1, &val, sizeof(val));
(void)ret; (void)ret;
} }
val = 1; val = 1;
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)