Lines Matching refs:mchunkptr
864 typedef struct malloc_chunk* mchunkptr; typedef
1010 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - 2*SIZE_SZ))
1046 #define next_chunk(p) ((mchunkptr)( ((char*)(p)) + ((p)->size & ~PREV_INUSE) ))
1051 ((mchunkptr)( ((char*)(p)) - ((p)->prev_size) ))
1056 #define chunk_at_offset(p, s) ((mchunkptr)(((char*)(p)) + (s)))
1068 ((((mchunkptr)(((char*)(p))+((p)->size & ~PREV_INUSE)))->size) & PREV_INUSE)
1081 ((mchunkptr)(((char*)(p)) + ((p)->size & ~PREV_INUSE)))->size |= PREV_INUSE
1084 ((mchunkptr)(((char*)(p)) + ((p)->size & ~PREV_INUSE)))->size &= ~(PREV_INUSE)
1089 (((mchunkptr)(((char*)(p)) + (s)))->size & PREV_INUSE)
1092 (((mchunkptr)(((char*)(p)) + (s)))->size |= PREV_INUSE)
1095 (((mchunkptr)(((char*)(p)) + (s)))->size &= ~(PREV_INUSE))
1118 #define set_foot(p, s) (((mchunkptr)((char*)(p) + (s)))->prev_size = (s))
1189 #define initial_top ((mchunkptr)(bin_at(0)))
1374 static void do_check_chunk(mchunkptr p) in do_check_chunk()
1391 static void do_check_free_chunk(mchunkptr p) in do_check_free_chunk()
1394 mchunkptr next = chunk_at_offset(p, sz); in do_check_free_chunk()
1420 static void do_check_inuse_chunk(mchunkptr p) in do_check_inuse_chunk()
1422 mchunkptr next = next_chunk(p); in do_check_inuse_chunk()
1434 mchunkptr prv = prev_chunk(p); in do_check_inuse_chunk()
1448 static void do_check_malloced_chunk(mchunkptr p, INTERNAL_SIZE_T s) in do_check_malloced_chunk()
1564 static mchunkptr mmap_chunk(size_t size) in mmap_chunk()
1567 mchunkptr p; in mmap_chunk()
1581 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE, in mmap_chunk()
1589 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); in mmap_chunk()
1592 if(p == (mchunkptr)-1) return 0; in mmap_chunk()
1623 STATIC void munmap_chunk(mchunkptr p) in munmap_chunk()
1644 extern void munmap_chunk(mchunkptr);
1652 static mchunkptr mremap_chunk(mchunkptr p, size_t new_size) in mremap_chunk()
1671 p = (mchunkptr)(cp + offset); in mremap_chunk()
1712 mchunkptr old_top = top; /* Record state of old top */ in malloc_extend_top()
1780 top = (mchunkptr)brk; in malloc_extend_top()
1900 mchunkptr victim; /* inspected/selected chunk */ in mALLOc()
1904 mchunkptr remainder; /* remainder from a split */ in mALLOc()
1909 mchunkptr fwd; /* misc temp for linking */ in mALLOc()
1910 mchunkptr bck; /* misc temp for linking */ in mALLOc()
2194 mchunkptr p; /* chunk corresponding to mem */ in fREe()
2198 mchunkptr next; /* next contiguous chunk */ in fREe()
2201 mchunkptr bck; /* misc temp for linking */ in fREe()
2202 mchunkptr fwd; /* misc temp for linking */ in fREe()
2345 mchunkptr oldp; /* chunk corresponding to oldmem */ in rEALLOc()
2348 mchunkptr newp; /* chunk to return */ in rEALLOc()
2352 mchunkptr next; /* next contiguous chunk after oldp */ in rEALLOc()
2355 mchunkptr prev; /* previous contiguous chunk before oldp */ in rEALLOc()
2358 mchunkptr remainder; /* holds split off extra space from newp */ in rEALLOc()
2361 mchunkptr bck; /* misc temp for linking */ in rEALLOc()
2362 mchunkptr fwd; /* misc temp for linking */ in rEALLOc()
2592 mchunkptr p; /* corresponding chunk */ in mEMALIGn()
2594 mchunkptr newp; /* chunk to return */ in mEMALIGn()
2597 mchunkptr remainder; /* spare room at end to split off */ in mEMALIGn()
2651 newp = (mchunkptr)brk; in mEMALIGn()
2745 mchunkptr p; in cALLOc()
2751 mchunkptr oldtop; in cALLOc()
2937 mchunkptr p; in malloc_usable_size()
2970 mchunkptr p; in malloc_update_mallinfo()
2972 mchunkptr q; in malloc_update_mallinfo()