Lines Matching refs:mchunkptr

1142 typedef struct malloc_chunk* mchunkptr;
1282 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - 2*SIZE_SZ))
1318 #define next_chunk(p) ((mchunkptr)( ((char*)(p)) + ((p)->size & ~PREV_INUSE) ))
1323 ((mchunkptr)( ((char*)(p)) - ((p)->prev_size) ))
1328 #define chunk_at_offset(p, s) ((mchunkptr)(((char*)(p)) + (s)))
1340 ((((mchunkptr)(((char*)(p))+((p)->size & ~PREV_INUSE)))->size) & PREV_INUSE)
1353 ((mchunkptr)(((char*)(p)) + ((p)->size & ~PREV_INUSE)))->size |= PREV_INUSE
1356 ((mchunkptr)(((char*)(p)) + ((p)->size & ~PREV_INUSE)))->size &= ~(PREV_INUSE)
1361 (((mchunkptr)(((char*)(p)) + (s)))->size & PREV_INUSE)
1364 (((mchunkptr)(((char*)(p)) + (s)))->size |= PREV_INUSE)
1367 (((mchunkptr)(((char*)(p)) + (s)))->size &= ~(PREV_INUSE))
1390 #define set_foot(p, s) (((mchunkptr)((char*)(p) + (s)))->prev_size = (s))
1457 #define initial_top ((mchunkptr)(bin_at(0)))
1594 static void do_check_chunk(mchunkptr p)
1596 static void do_check_chunk(p) mchunkptr p;
1615 static void do_check_free_chunk(mchunkptr p)
1617 static void do_check_free_chunk(p) mchunkptr p;
1621 mchunkptr next = chunk_at_offset(p, sz);
1648 static void do_check_inuse_chunk(mchunkptr p)
1650 static void do_check_inuse_chunk(p) mchunkptr p;
1653 mchunkptr next = next_chunk(p);
1665 mchunkptr prv = prev_chunk(p);
1680 static void do_check_malloced_chunk(mchunkptr p, INTERNAL_SIZE_T s)
1682 static void do_check_malloced_chunk(p, s) mchunkptr p; INTERNAL_SIZE_T s;
1797 static mchunkptr mmap_chunk(size_t size)
1799 static mchunkptr mmap_chunk(size) size_t size;
1803 mchunkptr p;
1817 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE,
1825 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
1828 if(p == (mchunkptr)-1) return 0;
1852 static void munmap_chunk(mchunkptr p)
1854 static void munmap_chunk(p) mchunkptr p;
1877 static mchunkptr mremap_chunk(mchunkptr p, size_t new_size)
1879 static mchunkptr mremap_chunk(p, new_size) mchunkptr p; size_t new_size;
1899 p = (mchunkptr)(cp + offset);
1939 mchunkptr old_top = top; /* Record state of old top */
1997 top = (mchunkptr)brk;
2107 mchunkptr victim; /* inspected/selected chunk */
2111 mchunkptr remainder; /* remainder from a split */
2116 mchunkptr fwd; /* misc temp for linking */
2117 mchunkptr bck; /* misc temp for linking */
2368 mchunkptr p; /* chunk corresponding to mem */
2372 mchunkptr next; /* next contiguous chunk */
2375 mchunkptr bck; /* misc temp for linking */
2376 mchunkptr fwd; /* misc temp for linking */
2502 mchunkptr oldp; /* chunk corresponding to oldmem */
2505 mchunkptr newp; /* chunk to return */
2509 mchunkptr next; /* next contiguous chunk after oldp */
2512 mchunkptr prev; /* previous contiguous chunk before oldp */
2515 mchunkptr remainder; /* holds split off extra space from newp */
2518 mchunkptr bck; /* misc temp for linking */
2519 mchunkptr fwd; /* misc temp for linking */
2721 mchunkptr p; /* corresponding chunk */
2723 mchunkptr newp; /* chunk to return */
2726 mchunkptr remainder; /* spare room at end to split off */
2769 newp = (mchunkptr)brk;
2856 mchunkptr p;
2864 mchunkptr oldtop = top;
3017 mchunkptr p;
3042 mchunkptr p;
3044 mchunkptr q;