Lines Matching refs:mchunkptr

239 typedef struct malloc_chunk* mchunkptr;  typedef
376 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - 2*SIZE_SZ))
412 #define next_chunk(p) ((mchunkptr)( ((char*)(p)) + ((p)->size & ~PREV_INUSE) ))
417 ((mchunkptr)( ((char*)(p)) - ((p)->prev_size) ))
422 #define chunk_at_offset(p, s) ((mchunkptr)(((char*)(p)) + (s)))
434 ((((mchunkptr)(((char*)(p))+((p)->size & ~PREV_INUSE)))->size) & PREV_INUSE)
447 ((mchunkptr)(((char*)(p)) + ((p)->size & ~PREV_INUSE)))->size |= PREV_INUSE
450 ((mchunkptr)(((char*)(p)) + ((p)->size & ~PREV_INUSE)))->size &= ~(PREV_INUSE)
455 (((mchunkptr)(((char*)(p)) + (s)))->size & PREV_INUSE)
458 (((mchunkptr)(((char*)(p)) + (s)))->size |= PREV_INUSE)
461 (((mchunkptr)(((char*)(p)) + (s)))->size &= ~(PREV_INUSE))
484 #define set_foot(p, s) (((mchunkptr)((char*)(p) + (s)))->prev_size = (s))
551 #define initial_top ((mchunkptr)(bin_at(0)))
779 static void do_check_chunk(mchunkptr p) in do_check_chunk()
781 static void do_check_chunk(p) mchunkptr p; in do_check_chunk()
800 static void do_check_free_chunk(mchunkptr p) in do_check_free_chunk()
802 static void do_check_free_chunk(p) mchunkptr p; in do_check_free_chunk()
806 mchunkptr next = chunk_at_offset(p, sz);
833 static void do_check_inuse_chunk(mchunkptr p) in do_check_inuse_chunk()
835 static void do_check_inuse_chunk(p) mchunkptr p; in do_check_inuse_chunk()
838 mchunkptr next = next_chunk(p);
850 mchunkptr prv = prev_chunk(p);
865 static void do_check_malloced_chunk(mchunkptr p, INTERNAL_SIZE_T s) in do_check_malloced_chunk()
867 static void do_check_malloced_chunk(p, s) mchunkptr p; INTERNAL_SIZE_T s; in do_check_malloced_chunk()
982 static mchunkptr mmap_chunk(size_t size) in mmap_chunk()
984 static mchunkptr mmap_chunk(size) size_t size; in mmap_chunk()
988 mchunkptr p;
1002 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE,
1010 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
1013 if(p == (mchunkptr)-1) return 0;
1037 static void munmap_chunk(mchunkptr p) in munmap_chunk()
1039 static void munmap_chunk(p) mchunkptr p; in munmap_chunk()
1062 static mchunkptr mremap_chunk(mchunkptr p, size_t new_size) in mremap_chunk()
1064 static mchunkptr mremap_chunk(p, new_size) mchunkptr p; size_t new_size; in mremap_chunk()
1084 p = (mchunkptr)(cp + offset);
1121 mchunkptr old_top = top; /* Record state of old top */
1179 top = (mchunkptr)brk;
1289 mchunkptr victim; /* inspected/selected chunk */
1293 mchunkptr remainder; /* remainder from a split */
1298 mchunkptr fwd; /* misc temp for linking */
1299 mchunkptr bck; /* misc temp for linking */
1561 mchunkptr p; /* chunk corresponding to mem */
1565 mchunkptr next; /* next contiguous chunk */
1568 mchunkptr bck; /* misc temp for linking */
1569 mchunkptr fwd; /* misc temp for linking */
1701 mchunkptr oldp; /* chunk corresponding to oldmem */
1704 mchunkptr newp; /* chunk to return */
1708 mchunkptr next; /* next contiguous chunk after oldp */
1711 mchunkptr prev; /* previous contiguous chunk before oldp */
1714 mchunkptr remainder; /* holds split off extra space from newp */
1717 mchunkptr bck; /* misc temp for linking */
1718 mchunkptr fwd; /* misc temp for linking */
1931 mchunkptr p; /* corresponding chunk */
1933 mchunkptr newp; /* chunk to return */
1936 mchunkptr remainder; /* spare room at end to split off */
2026 newp = (mchunkptr)brk;
2113 mchunkptr p;
2122 mchunkptr oldtop = top;
2284 mchunkptr p;
2310 mchunkptr p; in malloc_update_mallinfo()
2312 mchunkptr q; in malloc_update_mallinfo()