source:
azure_iot_hub/trunk/musl-1.1.18/src/linux/sbrk.c@
389
Last change on this file since 389 was 389, checked in by , 5 years ago | |
---|---|
|
|
File size: 178 bytes |
Rev | Line | |
---|---|---|
[388] | 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.