00001 /* 00002 * uuid.h -- private header file for uuids 00003 * 00004 * Copyright (C) 1996, 1997 Theodore Ts'o. 00005 * 00006 * %Begin-Header% 00007 * This file may be redistributed under the terms of the GNU 00008 * Library General Public License. 00009 * %End-Header% 00010 */ 00011 00012 #include <sys/types.h> 00013 #include "uuid_types.h" 00014 00015 #include "uuid.h" 00016 00017 /* 00018 * Offset between 15-Oct-1582 and 1-Jan-70 00019 */ 00020 #define TIME_OFFSET_HIGH 0x01B21DD2 00021 #define TIME_OFFSET_LOW 0x13814000 00022 00023 struct uuid { 00024 __u32 time_low; 00025 __u16 time_mid; 00026 __u16 time_hi_and_version; 00027 __u16 clock_seq; 00028 __u8 node[6]; 00029 }; 00030 00031 00032 /* 00033 * prototypes 00034 */ 00035 void uuid_pack2(const struct uuid *uu, uuid_t ptr); 00036 void uuid_unpack2(const uuid_t in, struct uuid *uu);
1.6.1