"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-mq.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-mq.c  (stress-ng-0.12.09.tar.xz):stress-mq.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 186 skipping to change at line 186
stress_parent_died_alarm(); stress_parent_died_alarm();
(void)sched_settings_apply(true); (void)sched_settings_apply(true);
(void)memset(&values, 0, sizeof(values)); (void)memset(&values, 0, sizeof(values));
while (keep_stressing_flag()) { while (keep_stressing_flag()) {
uint64_t i; uint64_t i;
for (i = 0; ; i++) { for (i = 0; ; i++) {
stress_msg_t ALIGN64 msg; stress_msg_t ALIGN64 msg;
int ret;
ssize_t sret; ssize_t sret;
const uint64_t timed = (i & 1); const uint64_t timed = (i & 1);
unsigned int prio; unsigned int prio;
if (!(i & 1023)) { if (!(i & 1023)) {
#if defined(__linux__) #if defined(__linux__)
char buffer[1024]; char buffer[1024];
off_t off; off_t off;
struct stat statbuf; struct stat statbuf;
void *ptr; void *ptr;
int ret;
#if defined(HAVE_POLL_H) #if defined(HAVE_POLL_H)
struct pollfd fds[1]; struct pollfd fds[1];
#endif #endif
/* On Linux, one can seek on a mq descrip tor */ /* On Linux, one can seek on a mq descrip tor */
off = lseek(mq, 0, SEEK_SET); off = lseek(mq, 0, SEEK_SET);
(void)off; (void)off;
/* Attempt a fstat too */ /* Attempt a fstat too */
ret = fstat(mq, &statbuf); ret = fstat(mq, &statbuf);
(void)ret; (void)ret;
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

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