Branch Coverage

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


line true false branch
195 0 3352 if (t == NULL)
205 307 1869 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 16853 2 while (size)
379 3 16850 if ((rc = read(randfd, where, size)) < 0 || sanity > MAX_RAND_READS)
0 3 if ((rc = read(randfd, where, size)) < 0 || sanity > MAX_RAND_READS)
381 0 16850 if (errno == EINTR)
383 0 0 if (sanity > MAX_RAND_READS)
391 16850 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 16850 16852 while (size)
418 16850 0 if ((rc = read(urandfd, where, size)) < 0 || sanity > MAX_RAND_READS)
0 16850 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)