Welcome to mirror list, hosted at ThFree Co, Russian Federation.

local.h « net « linux « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9380d7c55117053e8e8bf5b3c58f63152e7b1cd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)