Branch Coverage

inc/matrixssl-3-9-3-open/core/POSIX/osdep.c
Criterion Covered Total %
branch 24 94 25.5


line true false branch
195 0 3352 if (t == NULL)
205 411 1765 if (now.tv_nsec < then.tv_nsec)
216 0 0 if (now.tv_nsec < then.tv_nsec)
228 0 0 if (a.tv_sec < b.tv_sec)
232 0 0 if (a.tv_sec == b.tv_sec && a.tv_nsec <= b.tv_nsec)
0 0 if (a.tv_sec == b.tv_sec && a.tv_nsec <= b.tv_nsec)
339 0 17 if ((urandfd = open("/dev/urandom", O_RDONLY)) < 0)
347 0 17 if ((randfd = open("/dev/random", O_RDONLY | O_NONBLOCK)) < 0)
356 14 0 if (randfd != urandfd)
377 15664 0 while (size)
379 2 15662 if ((rc = read(randfd, where, size)) < 0 || sanity > MAX_RAND_READS)
0 2 if ((rc = read(randfd, where, size)) < 0 || sanity > MAX_RAND_READS)
381 0 15662 if (errno == EINTR)
383 0 0 if (sanity > MAX_RAND_READS)
391 15662 0 else if (errno == EAGAIN)
395 0 0 else if (errno == EBADF && retry == 0)
0 0 else if (errno == EBADF && retry == 0)
398 0 0 if ((randfd = open("/dev/random", O_RDONLY | O_NONBLOCK)) < 0)
416 15662 15662 while (size)
418 15662 0 if ((rc = read(urandfd, where, size)) < 0 || sanity > MAX_RAND_READS)
0 15662 if ((rc = read(urandfd, where, size)) < 0 || sanity > MAX_RAND_READS)
420 0 0 if (errno == EINTR)
422 0 0 if (sanity > MAX_RAND_READS)
430 0 0 else if (errno == EBADF && retry == 0)
0 0 else if (errno == EBADF && retry == 0)
433 0 0 if ((urandfd =
479 0 0 if (tracefile == NULL)
487 0 0 if (tracefile == NULL)
490 0 0 if (str != NULL)
493 0 0 if (!tracefile)
509 0 0 if (tracefile == NULL && str != NULL)
0 0 if (tracefile == NULL && str != NULL)
512 0 0 if (!tracefile)
524 0 0 if (tracefile == NULL)
531 0 0 if (tracefile)
547 0 0 if (tracefile)
557 0 0 if (value)
559 0 0 if (tracefile)
566 0 0 if (tracefile)
578 0 0 if (tracefile)
589 0 0 if (tracefile)
628 0 934 if (fstat(fileno(fp), &f_stat) != 0)
635 0 934 if (*buf == NULL)
642 5954 934 while (((tmp = fread(*buf + *bufLen, sizeof(char), 512, fp)) > 0) &&
5954 0 while (((tmp = fread(*buf + *bufLen, sizeof(char), 512, fp)) > 0) &&
659 0 936 if (fileName == NULL)
663 2 934 if ((fp = fopen(fileName, "r")) == NULL)