mirror of
https://github.com/fluencelabs/musl
synced 2025-06-01 17:11:53 +00:00
8 lines
135 B
C
8 lines
135 B
C
|
#include <stddef.h>
|
||
|
#include "syscall.h"
|
||
|
|
||
|
void *sbrk(ptrdiff_t inc)
|
||
|
{
|
||
|
return (void *)syscall1(__NR_brk, syscall1(__NR_brk, 0)+inc);
|
||
|
}
|