Lines Matching defs:uu

319 struct_to_string(uuid_t ptr, struct uuid *uu)
324 tmp = uu->time_low;
333 tmp = uu->time_mid;
338 tmp = uu->time_hi_and_version;
343 tmp = uu->clock_seq_hi_and_reserved;
345 tmp = uu->clock_seq_low;
348 (void) memcpy(out+10, uu->node_addr, 6);
391 uuid_generate_random(uuid_t uu)
395 if (uu == NULL)
398 (void) memset(uu, 0, sizeof (uuid_t));
401 arc4random_buf(uu, sizeof (uuid_t));
402 string_to_struct(&uuid, uu);
423 struct_to_string(uu, &uuid);
430 uuid_generate_time(uuid_t uu)
434 if (uu == NULL)
438 uuid_generate_random(uu);
442 struct_to_string(uu, &uuid);
450 uuid_generate(uuid_t uu)
452 uuid_generate_random(uu);
465 * Sets the value of the supplied uuid variable uu, to the NULL value.
468 uuid_clear(uuid_t uu)
470 (void) memset(uu, 0, UUID_LEN);
474 * This function converts the supplied UUID uu from the internal
479 uuid_unparse_common(uuid_t uu, char *out, boolean_t upper)
487 if (uu == NULL) {
491 string_to_struct(&uuid, uu);
508 uuid_unparse_upper(uuid_t uu, char *out)
510 uuid_unparse_common(uu, out, B_TRUE);
514 uuid_unparse_lower(uuid_t uu, char *out)
516 uuid_unparse_common(uu, out, B_FALSE);
520 uuid_unparse(uuid_t uu, char *out)
526 uuid_unparse_common(uu, out, B_FALSE);
531 * UUID variable uu to the NULL value. If the value is equal
535 uuid_is_null(uuid_t uu)
541 i = memcmp(uu, null_uu, sizeof (uuid_t));
543 /* uu is NULL uuid */
555 * in the location pointed to by uu
558 uuid_parse(char *in, uuid_t uu)
567 if ((strlen(in) != 36) || (uu == NULL) || (in[36] != '\0')) {
598 struct_to_string(uu, &uuid);
603 * uuid_time extracts the time at which the supplied UUID uu
611 uuid_time(uuid_t uu, struct timeval *ret_tv)
620 string_to_struct(&uuid, uu);
624 /* check if uu is NULL, Version = 1 of DCE and Variant = 0b10x */
625 if ((uu == NULL) || ((tmp & 0x01) != 0x01) || ((clk & 0x80) != 0x80)) {