Lines Matching full:uuid
2 * uuid_time.c --- Interpret the time field from a uuid. This program
3 * violates the UUID abstraction barrier by reaching into the guts
4 * of a UUID and interpreting it.
42 #define UUID MYUUID macro
61 struct uuid uuid; in uuid_time() local
65 uuid_unpack(uu, &uuid); in uuid_time()
67 high = uuid.time_mid | ((uuid.time_hi_and_version & 0xFFF) << 16); in uuid_time()
68 clock_reg = uuid.time_low | ((uint64_t) high << 32); in uuid_time()
82 struct uuid uuid; in uuid_type() local
84 uuid_unpack(uu, &uuid); in uuid_type()
85 return ((uuid.time_hi_and_version >> 12) & 0xF); in uuid_type()
90 struct uuid uuid; in uuid_variant() local
93 uuid_unpack(uu, &uuid); in uuid_variant()
94 var = uuid.clock_seq; in uuid_variant()
130 fprintf(stderr, "Usage: %s uuid\n", argv[0]); in main()
134 fprintf(stderr, "Invalid UUID: %s\n", argv[1]); in main()
141 printf("UUID variant is %d (%s)\n", variant, variant_string(variant)); in main()
147 printf("UUID type is %d", type); in main()
165 printf("Warning: not a time-based UUID, so UUID time " in main()
168 printf("UUID time is: (%ld, %ld): %s\n", tv.tv_sec, (long)tv.tv_usec, in main()