Home | History | Annotate | Download | only in uuid

Lines Matching refs: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.
40 #define UUID MYUUID
59 struct uuid uuid;
63 uuid_unpack(uu, &uuid);
65 high = uuid.time_mid | ((uuid.time_hi_and_version & 0xFFF) << 16);
66 clock_reg = uuid.time_low | ((uint64_t) high << 32);
80 struct uuid uuid;
82 uuid_unpack(uu, &uuid);
83 return ((uuid.time_hi_and_version >> 12) & 0xF);
88 struct uuid uuid;
91 uuid_unpack(uu, &uuid);
92 var = uuid.clock_seq;
128 fprintf(stderr, "Usage: %s uuid\n", argv[0]);
132 fprintf(stderr, "Invalid UUID: %s\n", argv[1]);
139 printf("UUID variant is %d (%s)\n", variant, variant_string(variant));
145 printf("UUID type is %d", type);
163 printf("Warning: not a time-based UUID, so UUID time "
166 printf("UUID time is: (%ld, %ld): %s\n", tv.tv_sec, tv.tv_usec,