diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2012-03-01 14:39:01 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2012-03-01 14:39:01 +0000 |
commit | 1d73388a077dedb1cf28c6211da3cb00a2adaeeb (patch) | |
tree | 3ecf15dd60c89d800f3c53a746a468b12d2fce7c /lib/libc/uuid | |
parent | e4afd792df6b67fa6e1d8abbbc0d26032261e6d1 (diff) | |
download | src-1d73388a077dedb1cf28c6211da3cb00a2adaeeb.tar.gz src-1d73388a077dedb1cf28c6211da3cb00a2adaeeb.zip |
Note that memory should be freed after uuid_to_string(3) call.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=232339
Diffstat (limited to 'lib/libc/uuid')
-rw-r--r-- | lib/libc/uuid/uuid.3 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libc/uuid/uuid.3 b/lib/libc/uuid/uuid.3 index 4d1020471eab..4fa41dec98bd 100644 --- a/lib/libc/uuid/uuid.3 +++ b/lib/libc/uuid/uuid.3 @@ -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 , |