Generate UUIDs by reading from a pseudo-file under /proc. More...
#include <config.h>#include "proc_uuid.h"#include "xapian/error.h"#include <cstring>#include "stringutils.h"#include <sys/types.h>#include "safesysstat.h"#include "safeerrno.h"#include "safefcntl.h"#include "safeunistd.h"
Include dependency graph for proc_uuid.cc:Go to the source code of this file.
Functions | |
| void | uuid_generate (uuid_t uu) |
| int | uuid_parse (const char *in, uuid_t uu) |
| void | uuid_unparse_lower (const uuid_t uu, char *out) |
| void | uuid_clear (uuid_t uu) |
| int | uuid_is_null (const uuid_t uu) |
Variables | |
| const size_t | UUID_SIZE = 16 |
| The size of a UUID in bytes. More... | |
| const size_t | UUID_STRING_SIZE = 36 |
| The size of a UUID string in bytes (not including trailing '\0'). More... | |
Generate UUIDs by reading from a pseudo-file under /proc.
Especially useful when building for Android, as it avoids having to cross-build a UUID library.
Definition in file proc_uuid.cc.
| void uuid_clear | ( | uuid_t | uu | ) |
Definition at line 86 of file proc_uuid.cc.
Referenced by test_uuid1().
| void uuid_generate | ( | uuid_t | uu | ) |
Definition at line 49 of file proc_uuid.cc.
Referenced by ChertVersion::create(), GlassVersion::create(), and test_uuid1().
| int uuid_is_null | ( | const uuid_t | uu | ) |
Definition at line 91 of file proc_uuid.cc.
Referenced by test_uuid1().
| int uuid_parse | ( | const char * | in, |
| uuid_t | uu | ||
| ) |
Definition at line 65 of file proc_uuid.cc.
Referenced by ChertVersion::get_uuid_string(), GlassVersion::get_uuid_string(), test_uuid1(), and uuid_generate().
| void uuid_unparse_lower | ( | const uuid_t | uu, |
| char * | out | ||
| ) |
Definition at line 74 of file proc_uuid.cc.
Referenced by ChertVersion::get_uuid_string(), GlassVersion::get_uuid_string(), and test_uuid1().
| const size_t UUID_SIZE = 16 |
The size of a UUID in bytes.
Definition at line 43 of file proc_uuid.cc.
Referenced by uuid_clear(), uuid_is_null(), uuid_parse(), and uuid_unparse_lower().
| const size_t UUID_STRING_SIZE = 36 |
The size of a UUID string in bytes (not including trailing '\0').
Definition at line 46 of file proc_uuid.cc.
Referenced by uuid_generate().