1 /* brk.c - Change data segment size */
3 /* Written 2000 by Werner Almesberger */
10 char *__current_brk; /* Common with sbrk.c */
13 * The Linux brk() isn't what most people expect, so we call the
14 * system call __brk() and provide a wrapper.
16 int brk(void *end_data_segment)
20 new_brk = __brk(end_data_segment);
21 if (new_brk != end_data_segment) return -1;
22 __current_brk = new_brk;