Lines Matching refs:mchunkptr

227 typedef struct malloc_chunk* mchunkptr;  typedef
363 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - 2*SIZE_SZ))
399 #define next_chunk(p) ((mchunkptr)( ((char*)(p)) + ((p)->size & ~PREV_INUSE) ))
404 ((mchunkptr)( ((char*)(p)) - ((p)->prev_size) ))
409 #define chunk_at_offset(p, s) ((mchunkptr)(((char*)(p)) + (s)))
421 ((((mchunkptr)(((char*)(p))+((p)->size & ~PREV_INUSE)))->size) & PREV_INUSE)
434 ((mchunkptr)(((char*)(p)) + ((p)->size & ~PREV_INUSE)))->size |= PREV_INUSE
437 ((mchunkptr)(((char*)(p)) + ((p)->size & ~PREV_INUSE)))->size &= ~(PREV_INUSE)
442 (((mchunkptr)(((char*)(p)) + (s)))->size & PREV_INUSE)
445 (((mchunkptr)(((char*)(p)) + (s)))->size |= PREV_INUSE)
448 (((mchunkptr)(((char*)(p)) + (s)))->size &= ~(PREV_INUSE))
471 #define set_foot(p, s) (((mchunkptr)((char*)(p) + (s)))->prev_size = (s))
538 #define initial_top ((mchunkptr)(bin_at(0)))
729 static void do_check_chunk(mchunkptr p) in do_check_chunk()
731 static void do_check_chunk(p) mchunkptr p; in do_check_chunk()
750 static void do_check_free_chunk(mchunkptr p) in do_check_free_chunk()
752 static void do_check_free_chunk(p) mchunkptr p; in do_check_free_chunk()
756 mchunkptr next = chunk_at_offset(p, sz);
783 static void do_check_inuse_chunk(mchunkptr p) in do_check_inuse_chunk()
785 static void do_check_inuse_chunk(p) mchunkptr p; in do_check_inuse_chunk()
788 mchunkptr next = next_chunk(p);
800 mchunkptr prv = prev_chunk(p);
815 static void do_check_malloced_chunk(mchunkptr p, INTERNAL_SIZE_T s) in do_check_malloced_chunk()
817 static void do_check_malloced_chunk(p, s) mchunkptr p; INTERNAL_SIZE_T s; in do_check_malloced_chunk()
932 static mchunkptr mmap_chunk(size_t size) in mmap_chunk()
934 static mchunkptr mmap_chunk(size) size_t size; in mmap_chunk()
938 mchunkptr p;
952 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE,
960 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
963 if(p == (mchunkptr)-1) return 0;
987 static void munmap_chunk(mchunkptr p) in munmap_chunk()
989 static void munmap_chunk(p) mchunkptr p; in munmap_chunk()
1012 static mchunkptr mremap_chunk(mchunkptr p, size_t new_size) in mremap_chunk()
1014 static mchunkptr mremap_chunk(p, new_size) mchunkptr p; size_t new_size; in mremap_chunk()
1034 p = (mchunkptr)(cp + offset);
1074 mchunkptr old_top = top; /* Record state of old top */
1132 top = (mchunkptr)brk;
1242 mchunkptr victim; /* inspected/selected chunk */
1246 mchunkptr remainder; /* remainder from a split */
1251 mchunkptr fwd; /* misc temp for linking */
1252 mchunkptr bck; /* misc temp for linking */
1514 mchunkptr p; /* chunk corresponding to mem */
1518 mchunkptr next; /* next contiguous chunk */
1521 mchunkptr bck; /* misc temp for linking */
1522 mchunkptr fwd; /* misc temp for linking */
1654 mchunkptr oldp; /* chunk corresponding to oldmem */
1657 mchunkptr newp; /* chunk to return */
1661 mchunkptr next; /* next contiguous chunk after oldp */
1664 mchunkptr prev; /* previous contiguous chunk before oldp */
1667 mchunkptr remainder; /* holds split off extra space from newp */
1670 mchunkptr bck; /* misc temp for linking */
1671 mchunkptr fwd; /* misc temp for linking */
1884 mchunkptr p; /* corresponding chunk */
1886 mchunkptr newp; /* chunk to return */
1889 mchunkptr remainder; /* spare room at end to split off */
1980 newp = (mchunkptr)brk;
2067 mchunkptr p;
2076 mchunkptr oldtop = top;
2238 mchunkptr p;
2264 mchunkptr p; in malloc_update_mallinfo()
2266 mchunkptr q; in malloc_update_mallinfo()