mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-05 08:51:48 +00:00
25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
#include <alloca.h>
|
|
#include "libc-symbols.h"
|
|
|
|
# define extend_alloca(buf, len, newlen) \
|
|
(__typeof (buf)) ({ size_t __newlen = (newlen); \
|
|
char *__newbuf = alloca (__newlen); \
|
|
if (__newbuf > (char *)buf) \
|
|
if ((char *)buf + len == __newbuf) { \
|
|
len += __newlen; \
|
|
__newbuf = buf; \
|
|
} \
|
|
else { \
|
|
if (__newbuf + newlen == (char *)buf) \
|
|
len += __newlen; \
|
|
else \
|
|
len = __newlen; \
|
|
} \
|
|
__newbuf; })
|
|
|
|
#define __fsetlocking(fp, x) fp
|
|
|
|
extern const char *_res_opcodes[];
|
|
libresolv_hidden_proto (_res_opcodes)
|
|
|