libuuid(3) -- Linux man page



libuuid - DCE compatible Universally Unique Identifier library  


#include <uuid/uuid.h>

cc file.c -luuid  


The libuuid library is used to generate unique identifiers for objects that may be accessible beyond the local system. The Linux implementation was created to uniquely identify ext2 filesystems created by a machine. This library generates UUIDs compatible with those created by the Open Software Foundation (OSF) Distributed Computing Environment (DCE) utility uuidgen.

The UUIDs generated by this library can be reasonably expected to be unique within a system, and unique across all systems. They could be used, for instance, to generate unique HTTP cookies across multiple web servers without communication between the servers, and without fear of a name clash.  


OSF DCE 1.1  


libuuid was written by Theodore Y. Ts'o for the ext2 filesystem utilties.  


libuuid is part of the e2fsprogs package and is available from  


libuuid is available under the terms of the GNU Library General Public License (LGPL), version 2 (or at your discretion any later version). A copy of the LGPL should be included with this library in the file COPYING. If not, write to
Free Software Foundation, Inc.
59 Temple Place
Suite 330
Boston, MA 02111-1307 USA

or visit  


uuid_clear(3), uuid_compare(3), uuid_copy(3), uuid_generate(3), uuid_is_null(3), uuid_parse(3), uuid_time(3), uuid_unparse(3)