Lines Matching refs:uu

371 struct_to_string(uuid_t ptr, struct uuid *uu)
376 tmp = uu->time_low;
385 tmp = uu->time_mid;
390 tmp = uu->time_hi_and_version;
395 tmp = uu->clock_seq_hi_and_reserved;
397 tmp = uu->clock_seq_low;
400 (void) memcpy(out+10, uu->node_addr, 6);
443 uuid_generate_random(uuid_t uu)
447 if (uu == NULL)
450 (void) memset(uu, 0, sizeof (uuid_t));
453 fill_random_bytes(uu, sizeof (uuid_t));
454 string_to_struct(&uuid, uu);
475 struct_to_string(uu, &uuid);
482 uuid_generate_time(uuid_t uu)
486 if (uu == NULL)
490 uuid_generate_random(uu);
494 struct_to_string(uu, &uuid);
504 uuid_generate(uuid_t uu)
508 if (uu == NULL) {
514 uuid_generate_random(uu);
516 (void) uuid_generate_time(uu);
530 * Sets the value of the supplied uuid variable uu, to the NULL value.
533 uuid_clear(uuid_t uu)
535 (void) memset(uu, 0, UUID_LEN);
539 * This function converts the supplied UUID uu from the internal
544 uuid_unparse(uuid_t uu, char *out)
552 if (uu == NULL) {
562 string_to_struct(&uuid, uu);
578 * UUID variable uu to the NULL value. If the value is equal
582 uuid_is_null(uuid_t uu)
588 i = memcmp(uu, null_uu, sizeof (uuid_t));
590 /* uu is NULL uuid */
602 * in the location pointed to by uu
605 uuid_parse(char *in, uuid_t uu)
614 if ((strlen(in) != 36) || (uu == NULL) || (in[36] != '\0')) {
645 struct_to_string(uu, &uuid);
650 * uuid_time extracts the time at which the supplied UUID uu
658 uuid_time(uuid_t uu, struct timeval *ret_tv)
667 string_to_struct(&uuid, uu);
671 /* check if uu is NULL, Version = 1 of DCE and Variant = 0b10x */
672 if ((uu == NULL) || ((tmp & 0x01) != 0x01) || ((clk & 0x80) != 0x80)) {