OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / e2fsprogs / draft / man3 / uuid_generate.3
1 .\" Copyright 1999 Andreas Dilger (adilger@enel.ucalgary.ca)
2 .\"
3 .\" %Begin-Header%
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, and the entire permission notice in its entirety,
9 .\"    including the disclaimer of warranties.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\" 3. The name of the author may not be used to endorse or promote
14 .\"    products derived from this software without specific prior
15 .\"    written permission.
16 .\" 
17 .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
18 .\" WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF
20 .\" WHICH ARE HEREBY DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE
21 .\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
23 .\" OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
24 .\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25 .\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
27 .\" USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH
28 .\" DAMAGE.
29 .\" %End-Header%
30 .\" 
31 .\" Created  Wed Mar 10 17:42:12 1999, Andreas Dilger
32 .\"
33 .\" Japanese Version Copyright 1999 by NAKANO Takeo. All Rights Reserved.
34 .\" Translated Sat 23 Oct 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
35 .\" Updated Tue 16 Nov 1999 by NAKANO Takeo
36 .\"
37 .TH UUID_GENERATE 3 "May 2006" "E2fsprogs version 1.39"
38 .\"O .SH NAME
39 .SH Ì¾Á°
40 .\"O uuid_generate, uuid_generate_random, uuid_generate_time \- create a new unique UUID value
41 uuid_generate, uuid_generate_random, uuid_generate_time \- Â¾¤È½Å¤Ê¤é¤Ê¤¤ UUID Ãͤò¿·¤·¤¯ºîÀ®¤¹¤ë
42 .\"O .SH SYNOPSIS
43 .SH ½ñ¼°
44 .nf
45 .B #include <uuid/uuid.h>
46 .sp
47 .BI "void uuid_generate(uuid_t " out );
48 .BI "void uuid_generate_random(uuid_t " out );
49 .BI "void uuid_generate_time(uuid_t " out );
50 .fi
51 .\"O .SH DESCRIPTION
52 .SH ÀâÌÀ
53 .\"O The
54 .\"O .B uuid_generate
55 .\"O function creates a new universally unique identifier (UUID).  The uuid will
56 .\"O be generated based on high-quality randomness from 
57 .\"O .IR /dev/urandom , 
58 .\"O if available.  If it is not available, then 
59 .\"O .B uuid_generate 
60 .\"O will use an alternative algorithm which uses the current time, the
61 .\"O local ethernet MAC address (if available), and random data generated
62 .\"O using a pseudo-random generator.
63 .B uuid_generate
64 ´Ø¿ô¤Ï¿·¤·¤¤ UUID (universally unique identifier:
65 ÀäÂФ˾¤È¤Ï½Å¤Ê¤é¤Ê¤¤¼±ÊÌ»Ò) ¤òÀ¸À®¤¹¤ë¡£
66 UUID ¤ÎÀ¸À®¤Ë¤Ï¡¢
67 .I /dev/urandom
68 ¤Î¤è¤¦¤Ê¼Á¤ÎÎɤ¤Íð¿ôȯÀ¸µ¡¹½¤¬ÍøÍѤǤ­¤ë¾ì¹ç¤Ï¤½¤ì¤òÍøÍѤ¹¤ë¡£
69 ¤Ç¤­¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
70 .B uuid_generate
71 ¤ÏÊ̤Υ¢¥ë¥´¥ê¥º¥à¤òÍѤ¤¤ë¡£¤³¤Î¾ì¹ç¤Ï¸½ºß»þ¹ï¡¢
72 ¥í¡¼¥«¥ë¤Ê¥¤¡¼¥µ¥Í¥Ã¥È¤Î MAC ¥¢¥É¥ì¥¹¤¬¼èÆÀ¤Ç¤­¤ì¤Ð¤½¤ÎÃÍ¡¢
73 ¤ª¤è¤Óµ¼»÷Íð¿ôȯÀ¸µ¡¹½¤«¤éÀ¸À®¤µ¤ì¤¿Íð¿ô¤¬ÍѤ¤¤é¤ì¤ë¡£
74 .sp
75 .\"O The 
76 .\"O .B uuid_generate_random
77 .\"O function forces the use of the all-random UUID format, even if
78 .\"O a high-quality random number generator (i.e., 
79 .\"O .IR /dev/urandom )
80 .\"O is not available, in which case a pseudo-random
81 .\"O generator will be subsituted.  Note that the use of a pseudo-random
82 .\"O generator may compromise the uniqueness of UUID's
83 .\"O generated in this fashion.
84 .B uuid_generate_random
85 ´Ø¿ô¤Ï¡¢¼Á¤ÎÎɤ¤Íð¿ôȯÀ¸µ¡¹½ (Î㤨¤Ð
86 .IR /dev/urandom )
87 ¤¬ÍøÍѤǤ­¤Ê¤¤¾ì¹ç¤Ç¤â¡¢´°Á´¤Ë¥é¥ó¥À¥à¥Ù¡¼¥¹¤Î (¤Ä¤Þ¤ê»þ¹ï¤ä
88 MAC ¥¢¥É¥ì¥¹¤ò»È¤ï¤Ê¤¤) UUID ¥Õ¥©¡¼¥Þ¥Ã¥È¤òºî¤ê¤¿¤¤¾ì¹ç¤ËÍѤ¤¤ë¡£
89 ¤³¤Î¾ì¹ç¤Ïµ¼»÷Íð¿ôȯÀ¸µ¡¹½¤¬Âå¤ï¤ê¤ËÍѤ¤¤é¤ì¤ë¡£
90 µ¼»÷Íð¿ôȯÀ¸µ¡¹½¤òÍøÍѤ¹¤ë¤È¡¢¤³¤Î¤è¤¦¤ËÀ¸À®¤µ¤ì¤¿ UUID ¤Î
91 °ì°ÕÀ­¤ÏÎô²½¤¹¤ë¤«¤â¤·¤ì¤Ê¤¤¤³¤È¤ËÃí°Õ¤¹¤ë¤³¤È¡£
92 .sp
93 .\"O The
94 .\"O .B uuid_generate_time 
95 .\"O function forces the use of the alternative algorithm which uses the
96 .\"O current time and the local ethernet MAC address (if available).
97 .\"O This algorithm used to be the default one used to generate UUID, but
98 .\"O because of the use of the ethernet MAC address, it can leak
99 .\"O information about when and where the UUID was generated.  This can cause
100 .\"O privacy problems in some applications, so the
101 .\"O .B uuid_generate
102 .\"O function only uses this algorithm if a high-quality source of
103 .\"O randomness is not available.  
104 .B uuid_generata_time
105 ´Ø¿ô¤Ï¡¢ÂåÂØ¥¢¥ë¥´¥ê¥º¥à¤ò»È¤¤¤¿¤¤¾ì¹ç¤ËÍѤ¤¤ë¡£
106 ¤³¤ì¤Ï¸½ºß»þ¹ï¤È (¤¢¤ì¤Ð) ¥¤¡¼¥µ¥Í¥Ã¥È¤Î MAC ¥¢¥É¥ì¥¹¤òÍѤ¤¤ë¡£
107 ¤³¤Î¥¢¥ë¥´¥ê¥º¥à¤Ï¤«¤Ä¤Æ UUID À¸À®ÊýË¡¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤Ã¤¿¤¬¡¢
108 ¥¤¡¼¥µ¥Í¥Ã¥È¤Î MAC ¥¢¥É¥ì¥¹¤òÍѤ¤¤ë¤Î¤Ç¡¢¤¤¤Ä¤É¤³¤Ç UUID ¤¬À¸À®
109 ¤µ¤ì¤¿¤«¤Î¾ðÊ󤬥꡼¥¯¤·¤Æ¤·¤Þ¤¦¡£¤³¤ì¤Ï¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë¤è¤Ã¤Æ¤Ï
110 ¥×¥é¥¤¥Ð¥·¡¼¤ÎÌäÂê¤òµ¯¤³¤¹¤³¤È¤¬¤¢¤ë¤Î¤Ç¡¢
111 .B uuid_generate
112 ´Ø¿ô¤Ï¼Á¤Î¹â¤¤Íð¿ôȯÀ¸µ¡¹½¤¬ÍøÍѤǤ­¤Ê¤¤¾ì¹ç¤Ë¸Â¤Ã¤Æ
113 ¤³¤Î¥¢¥ë¥´¥ê¥º¥à¤òÍѤ¤¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¡£
114 .sp
115 .\"O The UUID is 16 bytes (128 bits) long, which gives approximately 3.4x10^38
116 .\"O unique values (there are approximately 10^80 elemntary particles in
117 .\"O the universe according to Carl Sagan's
118 .\"O .IR Cosmos ).
119 .\"O The new UUID can reasonably be considered unique among all UUIDs created
120 .\"O on the local system, and among UUIDs created on other systems in the past
121 .\"O and in the future.
122 UUID ¤Ï 16 ¥Ð¥¤¥È (128 ¥Ó¥Ã¥È) Ä¹¤Ç¡¢¤ª¤è¤½ 3.4x10^38 ¤³¤Î
123 ¥æ¥Ë¡¼¥¯¤ÊÃͤòÍ¿¤¨¤ë (Carl Segan ¤Î
124 .I Cosmos
125 ¤Ë¤è¤ì¤Ð¡¢Á´±§Ãè¤Ë¤¢¤ëÁÇγ»Ò¤Î¸Ä¿ô¤Ï 10^80 ¤À¤½¤¦¤Ç¤¢¤ë)¡£
126 ¿·¤¿¤Ëºî¤é¤ì¤¿ UUID ¤Ï¡¢¥í¡¼¥«¥ë¤Ê¥·¥¹¥Æ¥à¤ä³°Éô¤Î¥·¥¹¥Æ¥à¤Ë¤è¤Ã¤Æ
127 ²áµî¤Þ¤¿¤Ï̤Íè¤ËÀ¸À®¤µ¤ì¤¿/¤µ¤ì¤ë UUID ¤Î¤¤¤º¤ì¤È¤â°Û¤Ê¤ë¤È
128 ¹Í¤¨¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
129 .\"O .SH RETURN VALUE
130 .SH ÊÖ¤êÃÍ
131 .\"O The newly created UUID is returned in the memory location pointed to by
132 .\"O .IR out .
133 ¿·¤¿¤ËÀ¸À®¤µ¤ì¤¿ UUID ¤¬¡¢
134 .I out
135 ¤Î»Ø¤¹¥á¥â¥ê°ÌÃÖ¤ËÊÖ¤µ¤ì¤ë¡£
136 .\"O .SH "CONFORMING TO"
137 .SH ½àµò
138 OSF DCE 1.1
139 .\"O .SH AUTHOR
140 .SH Ãø¼Ô
141 Theodore Y. Ts'o
142 .\"O .SH AVAILABILITY
143 .SH Æþ¼êÊýË¡
144 .UR http://e2fsprogs.sourceforge.net/
145 http://e2fsprogs.sourceforge.net/
146 .UE
147 .\"O .SH "SEE ALSO"
148 .SH ´ØÏ¢¹àÌÜ
149 .BR uuid (3),
150 .BR uuidgen (1),
151 .BR uuid_clear (3),
152 .BR uuid_compare (3),
153 .BR uuid_copy (3),
154 .BR uuid_is_null (3),
155 .BR uuid_parse (3),
156 .BR uuid_time (3),
157 .BR uuid_unparse (3)