Back to index

glibc  2.9
Functions | Variables
brk.c File Reference
#include <errno.h>
#include <unistd.h>
#include <sysdep.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int __brk (void *addr)

Variables

void * __curbrk = 0

Function Documentation

int __brk ( void *  addr)

Definition at line 28 of file brk.c.

{
  void *newbrk;

  __curbrk = newbrk = (void *) INLINE_SYSCALL (brk, 1, addr);

  if (newbrk < addr)
    {
      __set_errno (ENOMEM);
      return -1;
    }

  return 0;
}

Here is the caller graph for this function:


Variable Documentation

void* __curbrk = 0

Definition at line 25 of file brk.c.