☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
linux
/
sbrk.c
☽
☼
libc-top-half/musl/src/linux/sbrk.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
1
#define _BSD_SOURCE
2
#include <unistd.h>
3
#include <stdint.h>
4
#include <errno.h>
5
#include "syscall.h"
6
7
void *sbrk(intptr_t inc)
8
{
9
if (inc) return (void *)__syscall_ret(-ENOMEM);
10
return (void *)__syscall(SYS_brk, 0);
11
}