Lines Matching defs:uu

362 struct_to_string(uuid_t ptr, struct uuid *uu)
367 tmp = uu->time_low;
376 tmp = uu->time_mid;
381 tmp = uu->time_hi_and_version;
386 tmp = uu->clock_seq_hi_and_reserved;
388 tmp = uu->clock_seq_low;
391 (void) memcpy(out+10, uu->node_addr, 6);
434 uuid_generate_random(uuid_t uu)
438 if (uu == NULL)
441 (void) memset(uu, 0, sizeof (uuid_t));
444 fill_random_bytes(uu, sizeof (uuid_t));
445 string_to_struct(&uuid, uu);
466 struct_to_string(uu, &uuid);
473 uuid_generate_time(uuid_t uu)
477 if (uu == NULL)
481 uuid_generate_random(uu);
485 struct_to_string(uu, &uuid);
495 uuid_generate(uuid_t uu)
499 if (uu == NULL) {
505 uuid_generate_random(uu);
507 (void) uuid_generate_time(uu);
521 * Sets the value of the supplied uuid variable uu, to the NULL value.
524 uuid_clear(uuid_t uu)
526 (void) memset(uu, 0, UUID_LEN);
530 * This function converts the supplied UUID uu from the internal
535 uuid_unparse(uuid_t uu, char *out)
543 if (uu == NULL) {
553 string_to_struct(&uuid, uu);
569 * UUID variable uu to the NULL value. If the value is equal
573 uuid_is_null(uuid_t uu)
579 i = memcmp(uu, null_uu, sizeof (uuid_t));
581 /* uu is NULL uuid */
593 * in the location pointed to by uu
596 uuid_parse(char *in, uuid_t uu)
605 if ((strlen(in) != 36) || (uu == NULL) || (in[36] != '\0')) {
636 struct_to_string(uu, &uuid);
641 * uuid_time extracts the time at which the supplied UUID uu
649 uuid_time(uuid_t uu, struct timeval *ret_tv)
658 string_to_struct(&uuid, uu);
662 /* check if uu is NULL, Version = 1 of DCE and Variant = 0b10x */
663 if ((uu == NULL) || ((tmp & 0x01) != 0x01) || ((clk & 0x80) != 0x80)) {