Asterisk - The Open Source Telephony Project  21.4.1
Macros | Functions
include/asterisk/compat.h File Reference

General Definitions for Asterisk top level program Included by asterisk.h to handle platform-specific issues especially those related to header files. More...

#include "asterisk/compiler.h"
#include <inttypes.h>
#include <limits.h>
#include <unistd.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
#include <stdarg.h>
#include <stdlib.h>
#include <alloca.h>
#include <stdio.h>
#include <string.h>
#include <poll.h>
#include <errno.h>
#include <glob.h>

Go to the source code of this file.

Macros

#define __STDC_VERSION__   0
 
#define INFINITY   (1.0/0.0)
 
#define LLONG_MAX   9223372036854775807LL
 
#define MY_GLOB_FLAGS   GLOB_NOCHECK
 
#define NAN   (0.0/0.0)
 
#define strlcat   __use__ast_str__functions_not__strlcat__
 
#define strlcpy   __use__ast_copy_string__not__strlcpy__
 

Functions

int asprintf (char **str, const char *fmt,...)
 
void closefrom (int lowfd)
 
int ffsll (long long n)
 
int getloadavg (double *list, int nelem)
 
uint64_t htonll (uint64_t host64)
 
char * mkdtemp (char *template_s)
 
uint64_t ntohll (uint64_t net64)
 
float roundf (float x)
 
int setenv (const char *name, const char *value, int overwrite)
 
char * strcasestr (const char *, const char *)
 
char * strndup (const char *, size_t)
 
size_t strnlen (const char *, size_t)
 
char * strsep (char **str, const char *delims)
 
uint64_t strtoq (const char *nptr, char **endptr, int base)
 
void timersub (struct timeval *tvend, struct timeval *tvstart, struct timeval *tvdiff)
 
int unsetenv (const char *name)
 
int vasprintf (char **strp, const char *fmt, va_list ap)
 

Detailed Description

General Definitions for Asterisk top level program Included by asterisk.h to handle platform-specific issues especially those related to header files.

Definition in file include/asterisk/compat.h.