mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
Note that memory should be freed after uuid_to_string(3) call.
MFC after: 1 week
This commit is contained in:
parent
e4afd792df
commit
1d73388a07
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232339
@ -25,7 +25,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd August 13, 2008
|
||||
.Dd March 1, 2012
|
||||
.Dt UUID 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -84,6 +84,15 @@ A 16-bit hash value can be obtained by calling
|
||||
.Fn uuid_hash .
|
||||
.Pp
|
||||
The
|
||||
.Fn uuid_to_string
|
||||
function set
|
||||
.Fa *str
|
||||
to be a pointer to a buffer sufficiently large to hold the string.
|
||||
This pointer should be passed to
|
||||
.Xr free 3
|
||||
to release the allocated storage when it is no longer needed.
|
||||
.Pp
|
||||
The
|
||||
.Fn uuid_enc_le
|
||||
and
|
||||
.Fn uuid_enc_be
|
||||
@ -116,7 +125,7 @@ The UUID does not have a known version.
|
||||
.It Dv uuid_s_invalid_string_uuid
|
||||
The string representation of an UUID is not valid.
|
||||
.It Dv uuid_s_no_memory
|
||||
The meaning of the code escaped the writers mind.
|
||||
The function can not allocate memory to store an UUID representation.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr uuidgen 1 ,
|
||||
|
Loading…
Reference in New Issue
Block a user