projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
bb866305844413e7ccc790480e73c6820dc7de13
[musl]
/
src
/
linux
/
sbrk.c
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
}