fix setgroups behavior in multithreaded process
[musl.git] / src / linux / sbrk.c
blobbb866305844413e7ccc790480e73c6820dc7de13
1 #define _BSD_SOURCE
2 #include <unistd.h>
3 #include <stdint.h>
4 #include <errno.h>
5 #include "syscall.h"
7 void *sbrk(intptr_t inc)
9 if (inc) return (void *)__syscall_ret(-ENOMEM);
10 return (void *)__syscall(SYS_brk, 0);