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. in get_system_time()
139 UUID UTC base time is October 15, 1582. in get_system_time()
195 /* puid -- print a UUID */
208 /* snpuid -- print a UUID in the supplied buffer */
214 snprintf(tmp,size,"%s","uuid string too small"); in snpuid()
235 /* get-current_time -- get time as 60-bit 100ns ticks since UUID epoch.
254 /* if clock reading changed since last UUID generated, */ in get_current_time()
292 /* format_uuid_v1 -- make a UUID from the timestamp, clockseq,
294 static void format_uuid_v1(uuid_t* uuid, uint16_t clock_seq, in format_uuid_v1() argument
297 /* Construct a version 1 uuid with the information we've gathered in format_uuid_v1()
299 uuid->time_low = (unsigned long)(timestamp & 0xFFFFFFFF); in format_uuid_v1()
300 uuid->time_mid = (unsigned short)((timestamp >> 32) & 0xFFFF); in format_uuid_v1()
301 uuid->time_hi_and_version = in format_uuid_v1()
303 uuid->time_hi_and_version |= (1 << 12); in format_uuid_v1()
304 uuid->clock_seq_low = clock_seq & 0xFF; in format_uuid_v1()
305 uuid->clock_seq_hi_and_reserved = (clock_seq & 0x3F00) >> 8; in format_uuid_v1()
306 uuid->clock_seq_hi_and_reserved |= 0x80; in format_uuid_v1()
307 memcpy(&uuid->node, &node, sizeof uuid->node); in format_uuid_v1()
310 /* uuid_create -- generator a UUID */
311 int uuid_create(uuid_t *uuid) in uuid_create() argument
324 /* stuff fields into the UUID */ in uuid_create()
325 format_uuid_v1(uuid, clockseq, timestamp, node); in uuid_create()