From owner-svn-src-head@FreeBSD.ORG Fri Mar 2 06:26:44 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B9A31065672; Fri, 2 Mar 2012 06:26:44 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1D0588FC1D; Fri, 2 Mar 2012 06:26:42 +0000 (UTC) Received: by lagv3 with SMTP id v3so2283015lag.13 for ; Thu, 01 Mar 2012 22:26:41 -0800 (PST) Received-SPF: pass (google.com: domain of pluknet@gmail.com designates 10.112.29.6 as permitted sender) client-ip=10.112.29.6; Authentication-Results: mr.google.com; spf=pass (google.com: domain of pluknet@gmail.com designates 10.112.29.6 as permitted sender) smtp.mail=pluknet@gmail.com; dkim=pass header.i=pluknet@gmail.com Received: from mr.google.com ([10.112.29.6]) by 10.112.29.6 with SMTP id f6mr3824830lbh.69.1330669601788 (num_hops = 1); Thu, 01 Mar 2012 22:26:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rKJft/YQTOZh13QgG4Kr3PICnxF41QFd5CTf1TjwDHk=; b=SVXoYq0eYeRJ6aDXeezUiROxd4ODNTiSGG4LqPWTCFQ2u3YDbLSdR7DNL7XUhSTxVB 4GEAx7adhresrc6g0E8n8c7naoCoVt9C0baz4Uxao/qAklSzFaOBXES7Unr9xiBaehKt Z0wGWRG9B8flBrXyIwFtVJzI61NRn+Sqz9L/wfjIhS+TTKgdGQiTf2YsI73szfCJ5Ts6 Qz8h8sHxRHMA5OsDuWRKMa9WXpZ9XAkP+dELWuMD9bw954pM+ausYuDdDbg/9G9wVNrQ 57mst3rPXcxxvRm+RjCfFGJ6abeAoTjpVWBsEaB9C9Au7M+zf0EmKW3BSHwYHNfvvJ3J j3ZQ== MIME-Version: 1.0 Received: by 10.112.29.6 with SMTP id f6mr3138184lbh.69.1330669601693; Thu, 01 Mar 2012 22:26:41 -0800 (PST) Sender: pluknet@gmail.com Received: by 10.152.108.204 with HTTP; Thu, 1 Mar 2012 22:26:41 -0800 (PST) In-Reply-To: <201203011439.q21Ed1oa083125@svn.freebsd.org> References: <201203011439.q21Ed1oa083125@svn.freebsd.org> Date: Fri, 2 Mar 2012 09:26:41 +0300 X-Google-Sender-Auth: kdFEE04G-xOoAF65I4pwiYmXnYw Message-ID: From: Sergey Kandaurov To: "Andrey V. Elsukov" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r232339 - head/lib/libc/uuid X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 06:26:44 -0000 On 1 March 2012 18:39, Andrey V. Elsukov wrote: > Author: ae > Date: Thu Mar =A01 14:39:01 2012 > New Revision: 232339 > URL: http://svn.freebsd.org/changeset/base/232339 > > Log: > =A0Note that memory should be freed after uuid_to_string(3) call. > > =A0MFC after: =A0 =A01 week PR: docs/161808 > > Modified: > =A0head/lib/libc/uuid/uuid.3 > > Modified: head/lib/libc/uuid/uuid.3 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/lib/libc/uuid/uuid.3 =A0 Thu Mar =A01 14:01:16 2012 =A0 =A0 =A0 = =A0(r232338) > +++ head/lib/libc/uuid/uuid.3 =A0 Thu Mar =A01 14:39:01 2012 =A0 =A0 =A0 = =A0(r232339) > @@ -25,7 +25,7 @@ > =A0.\" > =A0.\" $FreeBSD$ > =A0.\" > -.Dd August 13, 2008 > +.Dd March 1, 2012 > =A0.Dt UUID 3 > =A0.Os > =A0.Sh NAME > @@ -84,6 +84,15 @@ A 16-bit hash value can be obtained by c > =A0.Fn uuid_hash . > =A0.Pp > =A0The > +.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 > =A0.Fn uuid_enc_le > =A0and > =A0.Fn uuid_enc_be > @@ -116,7 +125,7 @@ The UUID does not have a known version. > =A0.It Dv uuid_s_invalid_string_uuid > =A0The string representation of an UUID is not valid. > =A0.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. > =A0.El > =A0.Sh SEE ALSO > =A0.Xr uuidgen 1 , --=20 wbr, pluknet