Home
last modified time | relevance | path

Searched refs:ber_mem_hdr (Results 1 – 1 of 1) sorted by relevance

/netbsd-src/external/bsd/openldap/dist/libraries/liblber/
H A Dmemory.c46 struct ber_mem_hdr { struct
72 static const struct ber_mem_hdr ber_int_mem_hdr = { LBER_MEM_JUNK }; argument
141 struct ber_mem_hdr *mh = (struct ber_mem_hdr *) in ber_memfree_x()
142 ((char *)p - sizeof(struct ber_mem_hdr)); in ber_memfree_x()
154 memset( mh, 0xff, mh->bm_length + sizeof(struct ber_mem_hdr) + sizeof(ber_int_t)); in ber_memfree_x()
209 new = malloc(s + sizeof(struct ber_mem_hdr) + sizeof( ber_int_t)); in ber_memalloc_x()
212 struct ber_mem_hdr *mh = new; in ber_memalloc_x()
264 new = n < (-sizeof(struct ber_mem_hdr) - sizeof(ber_int_t)) / s in ber_memcalloc_x()
265 ? calloc(1, n*s + sizeof(struct ber_mem_hdr) + sizeof(ber_int_t)) in ber_memcalloc_x()
269 struct ber_mem_hdr *mh = new; in ber_memcalloc_x()
[all …]