| 1 |
.\" SPDX-License-Identifier: 0BSD |
| 2 |
.\" |
| 3 |
.Dd @UUID_VERSION_MDOC_DATE@ |
| 4 |
.ds doc-volume-operating-system OSSP |
| 5 |
.Dt UUID++ 3 |
| 6 |
.Os ossp-uuid @UUID_VERSION_RAW@ |
| 7 |
. |
| 8 |
.Sh NAME |
| 9 |
.Nm uuid++ |
| 10 |
.Nd deprecated unusable API to the C++ OSSP Universally Unique Identifier library |
| 11 |
.Sh SYNOPSIS |
| 12 |
.Bd -literal -compact |
| 13 |
.if t .in -10n |
| 14 |
#include <uuid++.hh> |
| 15 |
|
| 16 |
class [[deprecated("the OSSP uuid++ library is broken, unsalvageable, and strictly worse than the C library (cf. uuid(3)). use that one")]] uuid { |
| 17 |
public: |
| 18 |
uuid(); |
| 19 |
uuid(const uuid &obj); |
| 20 |
uuid(const uuid_t *obj); // copy from C library uuid_t |
| 21 |
uuid(const void *bin); // import from UUID_FMT_BIN |
| 22 |
uuid(const char *str); // import from UUID_LEN_STR (or UUID_LEN_SIV if that fails) |
| 23 |
~uuid(); |
| 24 |
|
| 25 |
uuid& operator=(const uuid &obj); |
| 26 |
uuid& operator=(const uuid_t *obj); // copy from C library uuid_t |
| 27 |
uuid& operator=(const void *bin); // import from UUID_FMT_BIN |
| 28 |
uuid& operator=(const char *str); // import from UUID_LEN_STR (or UUID_LEN_SIV if that fails) |
| 29 |
uuid clone(); // crash (or produce a broken UUID if it doesn't) |
| 30 |
|
| 31 |
void load(const char *name); // replace with uuid_load() |
| 32 |
void make(unsigned int mode, ...); // replace with uuid_make() |
| 33 |
|
| 34 |
int isnil(); // replace with uuid_isnil() |
| 35 |
int compare(const uuid &obj); // replace with uuid_compare() |
| 36 |
// == != < <= > >= operators |
| 37 |
|
| 38 |
void import(const void *bin); // replace with uuid_import(UUID_FMT_BIN) |
| 39 |
void import(const char *str); // replace with uuid_import(UUID_FMT_STR), uuid_import(UUID_FMT_SIV) |
| 40 |
|
| 41 |
void* binary(); // replace with uuid_export(UUID_FMT_BIN); always malloc()s |
| 42 |
char* string(); // replace with uuid_export(UUID_FMT_STR); always malloc()s |
| 43 |
char* integer(); // replace with uuid_export(UUID_FMT_SIV); always malloc()s |
| 44 |
char* summary(); // replace with uuid_export(UUID_FMT_TXT); always malloc()s |
| 45 |
|
| 46 |
unsigned long version(); // replace with uuid_version() |
| 47 |
}; |
| 48 |
|
| 49 |
class [[deprecated("the OSSP uuid++ library is broken, unsalvageable, and strictly worse than the C library (cf. uuid(3)). use that one")]] uuid_error_t { |
| 50 |
public: |
| 51 |
uuid_error_t() : uuid_error_t(UUID_RC_OK) {} |
| 52 |
uuid_error_t(uuid_rc_t code); |
| 53 |
~uuid_error_t(); |
| 54 |
|
| 55 |
void code(uuid_rc_t code); // setter |
| 56 |
uuid_rc_t code(); // getter |
| 57 |
|
| 58 |
char * string(); // replace with uuid_error() |
| 59 |
}; |
| 60 |
.if t .in +10n |
| 61 |
.Ed |
| 62 |
. |
| 63 |
.Sh DESCRIPTION |
| 64 |
Replace with |
| 65 |
.Xr uuid 3 . |