summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux/net/local.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/net/local.h')
-rw-r--r--newlib/libc/sys/linux/net/local.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/net/local.h b/newlib/libc/sys/linux/net/local.h
new file mode 100644
index 000000000..9380d7c55
--- /dev/null
+++ b/newlib/libc/sys/linux/net/local.h
@@ -0,0 +1,24 @@
+#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)
+