projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: Add Solaris string compat
[lttng-tools.git]
/
src
/
common
/
compat
/
uuid.h
diff --git
a/src/common/compat/uuid.h
b/src/common/compat/uuid.h
index 5bf8beb406f0b018dd40bb25959c7b8018f610c6..35faf538875053ccc240ceb2253230d39cdf695e 100644
(file)
--- a/
src/common/compat/uuid.h
+++ b/
src/common/compat/uuid.h
@@
-28,10
+28,14
@@
* Includes final \0.
*/
#define UUID_STR_LEN 37
* Includes final \0.
*/
#define UUID_STR_LEN 37
+#define UUID_LEN 16
#ifdef LTTNG_HAVE_LIBUUID
#include <uuid/uuid.h>
#ifdef LTTNG_HAVE_LIBUUID
#include <uuid/uuid.h>
+/*
+ * uuid_out is of len UUID_LEN.
+ */
static inline
int lttng_uuid_generate(unsigned char *uuid_out)
{
static inline
int lttng_uuid_generate(unsigned char *uuid_out)
{
@@
-43,6
+47,9
@@
int lttng_uuid_generate(unsigned char *uuid_out)
#include <uuid.h>
#include <stdint.h>
#include <uuid.h>
#include <stdint.h>
+/*
+ * uuid_out is of len UUID_LEN.
+ */
static inline
int lttng_uuid_generate(unsigned char *uuid_out)
{
static inline
int lttng_uuid_generate(unsigned char *uuid_out)
{
This page took
0.026444 seconds
and
4
git commands to generate.