| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 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 |
| 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 |
|