Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
1.0 KB
|
Rev | Line | |
---|
[444] | 1 | #include <alloca.h> |
---|
| 2 | #include "libc-symbols.h" |
---|
| 3 | |
---|
| 4 | # define extend_alloca(buf, len, newlen) \ |
---|
| 5 | (__typeof (buf)) ({ size_t __newlen = (newlen); \ |
---|
| 6 | char *__newbuf = alloca (__newlen); \ |
---|
| 7 | if (__newbuf > (char *)buf) \ |
---|
| 8 | if ((char *)buf + len == __newbuf) { \ |
---|
| 9 | len += __newlen; \ |
---|
| 10 | __newbuf = buf; \ |
---|
| 11 | } \ |
---|
| 12 | else { \ |
---|
| 13 | if (__newbuf + newlen == (char *)buf) \ |
---|
| 14 | len += __newlen; \ |
---|
| 15 | else \ |
---|
| 16 | len = __newlen; \ |
---|
| 17 | } \ |
---|
| 18 | __newbuf; }) |
---|
| 19 | |
---|
| 20 | #define __fsetlocking(fp, x) fp |
---|
| 21 | |
---|
| 22 | extern const char *_res_opcodes[]; |
---|
| 23 | libresolv_hidden_proto (_res_opcodes) |
---|
| 24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.