source:
EcnlProtoTool/trunk/musl-1.1.18/src/linux/sbrk.c@
445
Last change on this file since 445 was 444, checked in by , 4 years ago | |
---|---|
|
|
File size: 178 bytes |
Line | |
---|---|
1 | #include <stdint.h> |
2 | #include <errno.h> |
3 | #include "syscall.h" |
4 | |
5 | void *sbrk(intptr_t inc) |
6 | { |
7 | if (inc) return (void *)__syscall_ret(-ENOMEM); |
8 | return (void *)__syscall(SYS_brk, 0); |
9 | } |
Note:
See TracBrowser
for help on using the repository browser.