Print this page
4118 libuuid should provide uuid_unparse_{upper,lower} functions
Reviewed by: Serghei Samsi <sscdvp@gmail.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/head/uuid/uuid.h
+++ new/usr/src/head/uuid/uuid.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License, Version 1.0 only
6 6 * (the "License"). You may not use this file except in compliance
7 7 * with the License.
8 8 *
9 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 * or http://www.opensolaris.org/os/licensing.
11 11 * See the License for the specific language governing permissions
12 12 * and limitations under the License.
13 13 *
14 14 * When distributing Covered Code, include this CDDL HEADER in each
15 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 * If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 * fields enclosed by brackets "[]" replaced with your own identifying
18 18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 19 *
20 20 * CDDL HEADER END
21 21 */
22 22 /*
23 23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 24 * Use is subject to license terms.
25 25 */
26 26
27 +/*
28 + * Copyright 2014 Andrew Stormont.
29 + */
30 +
27 31 #ifndef _UUID_H
28 32 #define _UUID_H
29 33
30 -#pragma ident "%Z%%M% %I% %E% SMI"
31 -
32 34 #ifdef __cplusplus
33 35 extern "C" {
34 36 #endif
35 37
36 38 /*
37 39 * The copyright in this file is taken from the original Leach & Salz
38 40 * UUID specification, from which this implementation is derived.
39 41 */
40 42
41 43 /*
42 44 * Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
43 45 * Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. &
44 46 * Digital Equipment Corporation, Maynard, Mass. Copyright (c) 1998
45 47 * Microsoft. To anyone who acknowledges that this file is provided
46 48 * "AS IS" without any express or implied warranty: permission to use,
47 49 * copy, modify, and distribute this file for any purpose is hereby
48 50 * granted without fee, provided that the above copyright notices and
49 51 * this notice appears in all source code copies, and that none of the
50 52 * names of Open Software Foundation, Inc., Hewlett-Packard Company,
51 53 * or Digital Equipment Corporation be used in advertising or
52 54 * publicity pertaining to distribution of the software without
53 55 * specific, written prior permission. Neither Open Software
54 56 * Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital
55 57 * Equipment Corporation makes any representations about the
56 58 * suitability of this software for any purpose.
57 59 */
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
58 60
59 61 #include <sys/types.h>
60 62 #include <sys/uuid.h>
61 63
62 64 extern void uuid_generate(uuid_t);
63 65 extern void uuid_generate_random(uuid_t);
64 66 extern void uuid_generate_time(uuid_t);
65 67 extern void uuid_copy(uuid_t, uuid_t);
66 68 extern void uuid_clear(uuid_t);
67 69 extern void uuid_unparse(uuid_t, char *);
70 +extern void uuid_unparse_lower(uuid_t, char *);
71 +extern void uuid_unparse_upper(uuid_t, char *);
68 72 extern int uuid_compare(uuid_t, uuid_t);
69 73 extern int uuid_is_null(uuid_t);
70 74 extern int uuid_parse(char *, uuid_t);
71 75 extern time_t uuid_time(uuid_t, struct timeval *);
72 76
73 77 #ifdef __cplusplus
74 78 }
75 79 #endif
76 80
77 81 #endif /* _UUID_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX