Debian Codegraph @

libuuid/psm_uuid.c

raw symbols SCIP
1 /*
2 * Copyright (c) 2006-2012. QLogic Corporation. All rights reserved.
3 * Copyright (c) 2003-2006, PathScale, Inc. All rights reserved.
4 *
5 * This software is available to you under a choice of one of two
6 * licenses. You may choose to be licensed under the terms of the GNU
7 * General Public License (GPL) Version 2, available from the file
8 * COPYING in the main directory of this source tree, or the
9 * OpenIB.org BSD license below:
10 *
11 * Redistribution and use in source and binary forms, with or
12 * without modification, are permitted provided that the following
13 * conditions are met:
14 *
15 * - Redistributions of source code must retain the above
16 * copyright notice, this list of conditions and the following
17 * disclaimer.
18 *
19 * - Redistributions in binary form must reproduce the above
20 * copyright notice, this list of conditions and the following
21 * disclaimer in the documentation and/or other materials
22 * provided with the distribution.
23 *
24 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
28 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
29 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
30 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31 * SOFTWARE.
32 */
33
34 #if !defined(PSM_USE_SYS_UUID)
35
36 #define STDC_HEADERS 1
37 #define HAVE_SYS_TYPES_H 1
38 #define HAVE_SYS_STAT_H 1
39 #define HAVE_STDLIB_H 1
40 #define HAVE_STRING_H 1
41 #define HAVE_MEMORY_H 1
42 #define HAVE_STRINGS_H 1
43 #define HAVE_INTTYPES_H 1
44 #define HAVE_STDINT_H 1
45 #define HAVE_UNISTD_H 1
46 #define ENABLE_HTREE 1
47 #define ENABLE_SWAPFS 1
48 #define HAVE_LONG_LONG 1
49 #define HAVE_LONG_DOUBLE 1
50 #define HAVE_WCHAR_T 1
51 #define HAVE_WINT_T 1
52 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
53 #define HAVE_STDINT_H_WITH_UINTMAX 1
54 #define HAVE_INTMAX_T 1
55 #define HAVE_POSIX_PRINTF 1
56 #define HAVE_ALLOCA_H 1
57 #define HAVE_ALLOCA 1
58 #define HAVE_STDLIB_H 1
59 #define HAVE_UNISTD_H 1
60 #define HAVE_GETPAGESIZE 1
61 #define HAVE_MMAP 1
62 #define INTDIV0_RAISES_SIGFPE 1
63 #define HAVE_UNSIGNED_LONG_LONG 1
64 #define HAVE_UINTMAX_T 1
65 #define HAVE_INTTYPES_H 1
66 #define HAVE_STDINT_H 1
67 #define HAVE_STDINT_H 1
68 #define HAVE_ARGZ_H 1
69 #define HAVE_LIMITS_H 1
70 #define HAVE_LOCALE_H 1
71 #define HAVE_NL_TYPES_H 1
72 #define HAVE_MALLOC_H 1
73 #define HAVE_STDDEF_H 1
74 #define HAVE_STDLIB_H 1
75 #define HAVE_STRING_H 1
76 #define HAVE_UNISTD_H 1
77 #define HAVE_SYS_PARAM_H 1
78 #define HAVE_ASPRINTF 1
79 #define HAVE_FWPRINTF 1
80 #define HAVE_GETCWD 1
81 #define HAVE_GETEGID 1
82 #define HAVE_GETEUID 1
83 #define HAVE_GETGID 1
84 #define HAVE_GETUID 1
85 #define HAVE_MEMPCPY 1
86 #define HAVE_MUNMAP 1
87 #define HAVE_PUTENV 1
88 #define HAVE_SETENV 1
89 #define HAVE_SETLOCALE 1
90 #define HAVE_SNPRINTF 1
91 #define HAVE_STPCPY 1
92 #define HAVE_STRCASECMP 1
93 #define HAVE_STRDUP 1
94 #define HAVE_STRTOUL 1
95 #define HAVE_TSEARCH 1
96 #define HAVE_WCSLEN 1
97 #define HAVE___ARGZ_COUNT 1
98 #define HAVE___ARGZ_STRINGIFY 1
99 #define HAVE___ARGZ_NEXT 1
100 #define HAVE___FSETLOCKING 1
101 #define HAVE_DECL__SNPRINTF 0
102 #define HAVE_DECL__SNWPRINTF 0
103 #define HAVE_DECL_FEOF_UNLOCKED 1
104 #define HAVE_DECL_FGETS_UNLOCKED 0
105 #define HAVE_DECL_GETC_UNLOCKED 1
106 #define HAVE_ICONV 1
107 #define ICONV_CONST
108 #define HAVE_LANGINFO_CODESET 1
109 #define HAVE_LC_MESSAGES 1
110 #define ENABLE_NLS 1
111 #define HAVE_GETTEXT 1
112 #define HAVE_DCGETTEXT 1
113 #define HAVE_STDLIB_H 1
114 #define HAVE_UNISTD_H 1
115 #define HAVE_STDARG_H 1
116 #define HAVE_STDINT_H 1
117 #define HAVE_ERRNO_H 1
118 #define HAVE_MALLOC_H 1
119 #define HAVE_MNTENT_H 1
120 #define HAVE_PATHS_H 1
121 #define HAVE_DIRENT_H 1
122 #define HAVE_GETOPT_H 1
123 #define HAVE_SETJMP_H 1
124 #define HAVE_SIGNAL_H 1
125 #define HAVE_TERMIOS_H 1
126 #define HAVE_LINUX_FD_H 1
127 #define HAVE_LINUX_MAJOR_H 1
128 #define HAVE_SYS_IOCTL_H 1
129 #define HAVE_SYS_PRCTL_H 1
130 #define HAVE_SYS_QUEUE_H 1
131 #define HAVE_SYS_SOCKET_H 1
132 #define HAVE_SYS_SYSMACROS_H 1
133 #define HAVE_SYS_TIME_H 1
134 #define HAVE_SYS_STAT_H 1
135 #define HAVE_SYS_TYPES_H 1
136 #define HAVE_SYS_WAIT_H 1
137 #define HAVE_SYS_RESOURCE_H 1
138 #define HAVE_NETINET_IN_H 1
139 #define HAVE_SYS_MOUNT_H 1
140 #define HAVE_NET_IF_H 1
141 #define HAVE_VPRINTF 1
142 #define HAVE_RECLEN_DIRENT 1
143 #define HAVE_TYPE_SSIZE_T 1
144 #define HAVE_LSEEK64_PROTOTYPE 1
145 #define SIZEOF_SHORT 2
146 #define SIZEOF_INT 4
147 #define SIZEOF_LONG 8
148 #define SIZEOF_LONG_LONG 8
149 #define HAVE_INTTYPES_H 1
150 #define HAVE_INTPTR_T 1
151 #define HAVE_GETRUSAGE 1
152 #define HAVE_LLSEEK 1
153 #define HAVE_LSEEK64 1
154 #define HAVE_OPEN64 1
155 #define HAVE_STRTOULL 1
156 #define HAVE_STRCASECMP 1
157 #define HAVE_SRANDOM 1
158 #define HAVE_FCHOWN 1
159 #define HAVE_MALLINFO 1
160 #define HAVE_FDATASYNC 1
161 #define HAVE_STRNLEN 1
162 #define HAVE_STRPTIME 1
163 #define HAVE_SYSCONF 1
164 #define HAVE_PATHCONF 1
165 #define HAVE_POSIX_MEMALIGN 1
166 #define HAVE_MEMALIGN 1
167 #define HAVE_VALLOC 1
168 #define HAVE___SECURE_GETENV 1
169 #define HAVE_PRCTL 1
170 #define HAVE_DLOPEN 1
171 #define HAVE_EXT2_IOCTLS 1
172
173 #include "pack.c"
174 #include "unpack.c"
175 #include "clear.c"
176 #include "compare.c"
177 #include "copy.c"
178 #include "gen_uuid.c"
179 #include "isnull.c"
180 #include "parse.c"
181 #include "unparse.c"
182 #include "psm_help.h"
183
184 #else /* PSM_USE_SYS_UUID */
185 #include <uuid/uuid.h>
186 #include "psm_user.h"
187 #endif
188
189 void
190 __psm_uuid_generate(psm_uuid_t uuid_out)
191 {
192 uuid_generate(uuid_out);
193 return;
194 }
195 PSMI_API_DECL(psm_uuid_generate)
196
197 int
198 psmi_uuid_compare(const psm_uuid_t uuA, const psm_uuid_t uuB)
199 {
200 return uuid_compare(uuA, uuB);
201 }
202
203 void
204 psmi_uuid_unparse(const uuid_t uu, char *out)
205 {
206 uuid_unparse_lower(uu, out);
207 }
208
209 int
210 psmi_uuid_parse(const char *in, uuid_t uu)
211 {
212 return uuid_parse(in, uu);
213 }
214