Home | History | Annotate | Download | only in linux
      1 #include <unistd.h>
      2 
      3 volatile void *ptr;
      4 
      5 /* The default size of the brk segment is 8 MB.
      6    Request more than that in a single request. */
      7 int main()
      8 {
      9    ptr = sbrk(9*1024*1024);
     10 
     11    return 0;
     12 }
     13