| line |
true |
false |
branch |
|
93
|
3 |
15 |
if (!inited) { |
|
101
|
18 |
24 |
if (time_last != time_now) { |
|
106
|
0 |
24 |
if (uuids_this_tick < UUIDS_PER_TICK) { |
|
118
|
1 |
0 |
if (!inited) { |
|
230
|
6006 |
1001 |
for(i = 0; i < 6; i++ ) |
|
237
|
6 |
1 |
for(i = 0; i < 6; i++ ) |
|
242
|
102 |
17 |
for(from = (const unsigned char*)&u, to = (unsigned char*)buf, i = sizeof(u); i > 0; i -= 3, from += 3) { |
|
278
|
0 |
1002 |
PUSHMARK(SP); |
|
279
|
0 |
1002 |
XPUSHs(sv_2mortal(newSVpv("Digest::MD5", 0))); |
|
285
|
0 |
1002 |
if ( rcount != 1 ) |
|
291
|
1002 |
0 |
FREETMPS; |
|
301
|
0 |
2003 |
PUSHMARK(SP); |
|
302
|
0 |
2003 |
XPUSHs(ctx); |
|
303
|
0 |
2003 |
XPUSHs(data); |
|
310
|
2003 |
0 |
FREETMPS; |
|
323
|
0 |
1002 |
PUSHMARK(SP); |
|
324
|
0 |
1002 |
XPUSHs(sv_2mortal(ctx)); |
|
330
|
0 |
1002 |
if ( rcount != 1 ) |
|
334
|
1002 |
0 |
tmp = SvPV(retval, len); |
|
335
|
0 |
1002 |
if ( len != 16 ) |
|
341
|
1002 |
0 |
FREETMPS; |
|
359
|
2 |
1 |
if ((fd = fopen(UUID_STATE_NV_STORE, "rb"))) { |
|
365
|
2 |
1 |
if ((fd = fopen(UUID_NODEID_NV_STORE, "rb"))) { |
|
376
|
1 |
0 |
if ((fd = fopen(UUID_NODEID_NV_STORE, "wb"))) { |
|
408
|
16 |
0 |
if ( self->state.ts == I64(0) || |
|
|
1 |
15 |
if ( self->state.ts == I64(0) || |
|
411
|
0 |
15 |
else if (timestamp <= self->state.ts) |
|
418
|
1 |
15 |
if (timestamp > self->next_save ) { |
|
420
|
1 |
0 |
if((fd = fopen(UUID_STATE_NV_STORE, "wb"))) { |
|
471
|
0 |
2 |
CHECK(u1->time_low, u2->time_low); |
|
|
0 |
0 |
CHECK(u1->time_low, u2->time_low); |
|
472
|
0 |
2 |
CHECK(u1->time_mid, u2->time_mid); |
|
|
0 |
0 |
CHECK(u1->time_mid, u2->time_mid); |
|
473
|
0 |
2 |
CHECK(u1->time_hi_and_version, u2->time_hi_and_version); |
|
|
0 |
0 |
CHECK(u1->time_hi_and_version, u2->time_hi_and_version); |
|
474
|
0 |
2 |
CHECK(u1->clock_seq_hi_and_reserved, u2->clock_seq_hi_and_reserved); |
|
|
0 |
0 |
CHECK(u1->clock_seq_hi_and_reserved, u2->clock_seq_hi_and_reserved); |
|
475
|
0 |
2 |
CHECK(u1->clock_seq_low, u2->clock_seq_low); |
|
|
0 |
0 |
CHECK(u1->clock_seq_low, u2->clock_seq_low); |
|
476
|
12 |
2 |
for (i = 0; i < 6; i++) { |
|
477
|
0 |
12 |
if (u1->node[i] < u2->node[i]) |
|
479
|
0 |
12 |
if (u1->node[i] > u2->node[i]) |
|
493
|
18 |
0 |
ST(0) = make_ret(*uuid, ix ? ix : F_STR); |
|
516
|
1 |
0 |
if ( from[0] == '0' && from[1] == 'x' ) |
|
|
1 |
0 |
if ( from[0] == '0' && from[1] == 'x' ) |
|
518
|
16 |
1 |
for (i = 0; i < sizeof(perl_uuid_t); i++) { |
|
519
|
0 |
16 |
if (*from == '-') |
|
521
|
0 |
16 |
if (sscanf(from, "%2x", &c) != 1) |
|
532
|
6 |
0 |
while(from < (str + strlen(str))) { |
|
536
|
24 |
0 |
if (c != 255) buf[i++] = (unsigned char)c; |
|
537
|
1 |
23 |
if (from == (str + strlen(str))) |
|
539
|
18 |
5 |
} while (i < 4); |
|
541
|
6 |
0 |
if (buf[0] == 254 || buf[1] == 254) |
|
|
6 |
0 |
if (buf[0] == 254 || buf[1] == 254) |
|
545
|
1 |
5 |
if (buf[2] == 254) break; |
|
548
|
0 |
5 |
if (buf[3] == 254) break; |
|
587
|
3 |
0 |
if ((fd = fopen(UUID_STATE_NV_STORE, "wb"))) { |