The k project

sbrk

Description

The sbrk syscall should have the same behaviour than the linux’s sbrk(2).

Syscall interface

NAME
    sbrk - change data segment size
SYNOPSIS
    void *sbrk(ssize_t increment);
DESCRIPTION
   sbrk() increments the program's data space by increment bytes. Calling
   sbrk() with an increment of 0 can be used to find the current location
   of the program break.
RETURN VALUE
    sbrk() return the old break value.

Possible bug causes