Skip to content

Instantly share code, notes, and snippets.

@pidb
Created October 24, 2021 02:39
Show Gist options
  • Save pidb/767783da44ebfda2678501fab00d62a8 to your computer and use it in GitHub Desktop.
Save pidb/767783da44ebfda2678501fab00d62a8 to your computer and use it in GitHub Desktop.
csapp/vm/malloc
/* $begin memlibheader */
#include <unistd.h>
void mem_init(void);
void *mem_sbrk(int incr);
void mem_deinit(void);
void mem_reset_brk(void);
void *mem_heap_lo(void);
void *mem_heap_hi(void);
size_t mem_heapsize(void);
size_t mem_pagesize(void);
/* $end memlibheader */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment