31 void *rs_alloc(
size_t size,
char const *name);
32 void *rs_realloc(
void *ptr,
size_t size,
char const *name);
33 void *rs_alloc_struct0(
size_t size,
char const *name);
35 void rs_bzero(
void *buf,
size_t size);
37 int rs_long_ln2(rs_long_t v);
38 int rs_long_sqrt(rs_long_t v);
41 # define rs_alloc_struct(type) \ 42 ((type *) rs_alloc_struct0(sizeof(type), #type)) 45 # define UNUSED(x) x __attribute__((unused)) 46 # elif defined(__LCLINT__) || defined(S_SPLINT_S) Public header for librsync.