36 return (
bool)(bits & (1 <<
index));
42 static int d0[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
43 static char *d1 =
"1234567890";
44 static char *d2 =
"123";
57 [3] = { (1 << 6) | (1 << 7),
M0_BUF_INIT(
sizeof(d0), d0) },
67 #ifdef ENABLE_FAULT_INJECTION 110 const char *strs[] = {
"",
"1",
"two",
NULL };
111 const char **strs_new =
NULL;
123 strs[
i] != strs_new[
i]));
static void buf_cmp_test(void)
M0_INTERNAL bool m0_buf_eq(const struct m0_buf *x, const struct m0_buf *y)
M0_INTERNAL bool m0_buf_streq(const struct m0_buf *buf, const char *str)
static void bufs_test(void)
void m0_ut_lib_buf_test(void)
static struct m0t1fs_fsync_interactions copy
M0_INTERNAL void m0_buf_init(struct m0_buf *buf, void *data, uint32_t nob)
M0_INTERNAL int m0_buf_cmp(const struct m0_buf *x, const struct m0_buf *y)
M0_INTERNAL bool m0_bufs_streq(const struct m0_bufs *bufs, const char **strs)
M0_INTERNAL void m0_bufs_free(struct m0_bufs *bufs)
#define M0_BUF_INITS(str)
M0_INTERNAL void m0_buf_free(struct m0_buf *buf)
M0_INTERNAL int m0_buf_copy(struct m0_buf *dest, const struct m0_buf *src)
#define m0_forall(var, nr,...)
M0_INTERNAL char * m0_buf_strdup(const struct m0_buf *buf)
M0_INTERNAL void m0_strings_free(const char **arr)
M0_INTERNAL int m0_bufs_to_strings(const char ***dest, const struct m0_bufs *src)
static bool bit_is_set(int bits, int index)
static void m0_fi_enable_once(const char *func, const char *tag)
static struct m0_addb2_source * s
#define M0_BUF_INIT(size, data)
M0_INTERNAL int m0_bufs_from_strings(struct m0_bufs *dest, const char **src)