25#if !defined(__cplusplus) && !defined(c_plusplus)
26#ifndef __STDC_VERSION__
28#define __STDC_VERSION__ 0
47#elif defined(HAVE_ALLOCA) && defined(__MINGW32__)
55#ifndef AST_POLL_COMPAT
62#define LLONG_MAX 9223372036854775807LL
69#if !defined(HAVE_ASPRINTF)
70int __attribute__((format(printf, 2, 3)))
asprintf(
char **
str, const
char *fmt, ...);
77#ifndef HAVE_GETLOADAVG
82uint64_t
htonll(uint64_t host64);
90uint64_t
ntohll(uint64_t net64);
97#ifndef HAVE_STRCASESTR
101#if !defined(HAVE_STRNDUP)
114uint64_t
strtoq(
const char *nptr,
char **endptr,
int base);
121#if !defined(HAVE_VASPRINTF)
122int __attribute__((format(printf, 2, 0)))
vasprintf(
char **strp, const
char *fmt, va_list ap);
126void timersub(
struct timeval *tvend,
struct timeval *tvstart,
struct timeval *tvdiff);
129#define strlcat __use__ast_str__functions_not__strlcat__
130#define strlcpy __use__ast_copy_string__not__strlcpy__
147#include <netinet/in.h>
148#include <sys/loadavg.h>
149#include <dat/dat_platform_specific.h>
152#define LITTLE_ENDIAN 1234
153#define BIG_ENDIAN 4321
156#define BYTE_ORDER BIG_ENDIAN
158#define BYTE_ORDER LITTLE_ENDIAN
163#define __LITTLE_ENDIAN LITTLE_ENDIAN
164#define __BIG_ENDIAN BIG_ENDIAN
165#define __BYTE_ORDER BYTE_ORDER
168#ifndef __BIT_TYPES_DEFINED__
169#define __BIT_TYPES_DEFINED__
173typedef unsigned int uint;
179#define _WIN32_WINNT 0x0500
180#ifndef INET_ADDRSTRLEN
181#define INET_ADDRSTRLEN 16
183#ifndef INET6_ADDRSTRLEN
184#define INET6_ADDRSTRLEN 46
189typedef unsigned long long uint64_t;
193#if defined(__Darwin__) || defined(__CYGWIN__)
194#define GLOB_ABORTED GLOB_ABEND
197#if !defined(HAVE_GLOB_NOMAGIC) || !defined(HAVE_GLOB_BRACE)
198#define MY_GLOB_FLAGS GLOB_NOCHECK
200#define MY_GLOB_FLAGS (GLOB_NOMAGIC | GLOB_BRACE)
205#define roundf(x) ((float)round(x))
212#define INFINITY (1.0/0.0)
int unsetenv(const char *name)
int setenv(const char *name, const char *value, int overwrite)
int getloadavg(double *list, int nelem)
int vasprintf(char **strp, const char *fmt, va_list ap)
void timersub(struct timeval *tvend, struct timeval *tvstart, struct timeval *tvdiff)
uint64_t ntohll(uint64_t net64)
char * strsep(char **str, const char *delims)
char * mkdtemp(char *template_s)
void closefrom(int lowfd)
int asprintf(char **str, const char *fmt,...)
char * strndup(const char *, size_t)
uint64_t strtoq(const char *nptr, char **endptr, int base)
char * strcasestr(const char *, const char *)
size_t strnlen(const char *, size_t)
uint64_t htonll(uint64_t host64)
Compiler-specific macros and other items.
String manipulation functions.