13#if defined(__cplusplus)
27#include <cart/types.h>
29#include <daos_errno.h>
32#define DAOS_SYS_NAME_MAX 15
35#define DAOS_SYS_INFO_STRING_MAX 63
41typedef uint64_t daos_size_t;
42typedef uint64_t daos_off_t;
44#define crt_proc_daos_key_t crt_proc_d_iov_t
45#define crt_proc_daos_size_t crt_proc_uint64_t
46#define crt_proc_daos_epoch_t crt_proc_uint64_t
49#define DAOS_HKEY_MAX 32
52 DAOS_ANCHOR_TYPE_ZERO = 0,
53 DAOS_ANCHOR_TYPE_HKEY = 1,
54 DAOS_ANCHOR_TYPE_KEY = 2,
55 DAOS_ANCHOR_TYPE_EOF = 3,
58#define DAOS_ANCHOR_BUF_MAX 104
65 uint8_t da_buf[DAOS_ANCHOR_BUF_MAX];
68#define DAOS_ANCHOR_INIT { .da_type = DAOS_ANCHOR_TYPE_ZERO, \
71 .da_sub_anchors = 0, \
80#define DAOS_HDL_INVAL ((daos_handle_t){0})
81#define DAOS_TX_NONE DAOS_HDL_INVAL
92 return !daos_handle_is_inval(hdl);
104#define DAOS_PC_RO (1U << 0)
105#define DAOS_PC_RW (1U << 1)
106#define DAOS_PC_EX (1U << 2)
108#define DAOS_PC_NBITS 3
109#define DAOS_PC_MASK ((1U << DAOS_PC_NBITS) - 1)
114typedef uint64_t daos_epoch_t;
127#define DAOS_EPOCH_MAX (~0ULL)
146typedef d_iov_t daos_key_t;
149daos_key_is_null(daos_key_t key)
151 return key.iov_buf_len == 0 || key.iov_buf == NULL;
170#define DAOS_EQ_WAIT -1
172#define DAOS_EQ_NOWAIT 0
176 DAOS_EQR_COMPLETED = (1),
178 DAOS_EQR_WAITING = (1 << 1),
180 DAOS_EQR_ALL = (DAOS_EQR_COMPLETED | DAOS_EQR_WAITING),
216 DAOS_HTYPE_ARRAY = 9,
237#define DAOS_UUID_STR_SIZE 37
240daos_is_valid_uuid_string(
const char *uuid)
243 int len = DAOS_UUID_STR_SIZE - 1;
246 if (strnlen(uuid, len) != len)
249 for (i = 0, p = uuid; i < len; i++, p++) {
250 if (i == 8 || i == 13 || i == 18 || i == 23) {
253 }
else if (!isxdigit(*p)) {
291#define DAOS_ATTR_NAME_MAX 511
293#if defined(__cplusplus)
daos_epoch_t ci_lsnapshot
struct daos_event::@32 ev_private
struct daos_rank_uri * dsi_ranks
char dsi_system_name[DAOS_SYS_INFO_STRING_MAX+1]
char dsi_agent_path[PATH_MAX]
char dsi_fabric_provider[DAOS_SYS_INFO_STRING_MAX+1]