1199767fToomas Soome/*-
2199767fToomas Soome * Copyright (c) 2002 Marcel Moolenaar
3199767fToomas Soome * Copyright (c) 2002 Hiten Mahesh Pandya
4199767fToomas Soome * All rights reserved.
5199767fToomas Soome *
6199767fToomas Soome * Redistribution and use in source and binary forms, with or without
7199767fToomas Soome * modification, are permitted provided that the following conditions
8199767fToomas Soome * are met:
9199767fToomas Soome * 1. Redistributions of source code must retain the above copyright
10199767fToomas Soome *    notice, this list of conditions and the following disclaimer.
11199767fToomas Soome * 2. Redistributions in binary form must reproduce the above copyright
12199767fToomas Soome *    notice, this list of conditions and the following disclaimer in the
13199767fToomas Soome *    documentation and/or other materials provided with the distribution.
14199767fToomas Soome *
15199767fToomas Soome * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16199767fToomas Soome * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17199767fToomas Soome * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18199767fToomas Soome * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19199767fToomas Soome * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20199767fToomas Soome * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21199767fToomas Soome * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22199767fToomas Soome * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23199767fToomas Soome * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24199767fToomas Soome * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25199767fToomas Soome * SUCH DAMAGE.
26199767fToomas Soome *
27199767fToomas Soome * $FreeBSD$
28199767fToomas Soome */
29199767fToomas Soome
30199767fToomas Soome#include <strings.h>
31199767fToomas Soome#include <uuid.h>
32199767fToomas Soome
33199767fToomas Soome/*
34199767fToomas Soome * uuid_create_nil() - create a nil UUID.
35199767fToomas Soome * See also:
36199767fToomas Soome *	http://www.opengroup.org/onlinepubs/009629399/uuid_create_nil.htm
37199767fToomas Soome */
38199767fToomas Soomevoid
39199767fToomas Soomeuuid_create_nil(uuid_t *u, uint32_t *status)
40199767fToomas Soome{
41199767fToomas Soome
42199767fToomas Soome	if (status)
43199767fToomas Soome		*status = uuid_s_ok;
44199767fToomas Soome
45199767fToomas Soome	bzero(u, sizeof(*u));
46199767fToomas Soome}
47