Lines Matching full:uuid
2 implementation of UUID generation from RFC 4122. */
65 100ns ticks since UUID epoch, but resolution may be less than
138 /* Offset between UUID formatted times and Unix formatted times.
139 UUID UTC base time is October 15, 1582.
195 /* puid -- print a UUID */
208 /* snpuid -- print a UUID in the supplied buffer */
214 snprintf(tmp,size,"%s","uuid string too small");
235 /* get-current_time -- get time as 60-bit 100ns ticks since UUID epoch.
254 /* if clock reading changed since last UUID generated, */
292 /* format_uuid_v1 -- make a UUID from the timestamp, clockseq,
294 static void format_uuid_v1(uuid_t* uuid, uint16_t clock_seq,
297 /* Construct a version 1 uuid with the information we've gathered
299 uuid->time_low = (unsigned long)(timestamp & 0xFFFFFFFF);
300 uuid->time_mid = (unsigned short)((timestamp >> 32) & 0xFFFF);
301 uuid->time_hi_and_version =
303 uuid->time_hi_and_version |= (1 << 12);
304 uuid->clock_seq_low = clock_seq & 0xFF;
305 uuid->clock_seq_hi_and_reserved = (clock_seq & 0x3F00) >> 8;
306 uuid->clock_seq_hi_and_reserved |= 0x80;
307 memcpy(&uuid->node, &node, sizeof uuid->node);
310 /* uuid_create -- generator a UUID */
311 int uuid_create(uuid_t *uuid)
324 /* stuff fields into the UUID */
325 format_uuid_v1(uuid, clockseq, timestamp, node);