jemalloc_internal_decls.h revision f3e6d15d74194c37c72990d5b3d216f90fda5a46
1#ifndef JEMALLOC_INTERNAL_DECLS_H 2#define JEMALLOC_INTERNAL_DECLS_H 3 4#include <math.h> 5#ifdef _WIN32 6# include <windows.h> 7# define ENOENT ERROR_PATH_NOT_FOUND 8# define EINVAL ERROR_BAD_ARGUMENTS 9# define EAGAIN ERROR_OUTOFMEMORY 10# define EPERM ERROR_WRITE_FAULT 11# define EFAULT ERROR_INVALID_ADDRESS 12# define ENOMEM ERROR_NOT_ENOUGH_MEMORY 13# undef ERANGE 14# define ERANGE ERROR_INVALID_DATA 15#else 16# include <sys/param.h> 17# include <sys/mman.h> 18# include <sys/syscall.h> 19# if !defined(SYS_write) && defined(__NR_write) 20# define SYS_write __NR_write 21# endif 22# include <sys/uio.h> 23# include <pthread.h> 24# include <errno.h> 25#endif 26#include <sys/types.h> 27 28#include <limits.h> 29#ifndef SIZE_T_MAX 30# define SIZE_T_MAX SIZE_MAX 31#endif 32#include <stdarg.h> 33#include <stdbool.h> 34#include <stdio.h> 35#include <stdlib.h> 36#include <stdint.h> 37#include <stddef.h> 38#ifndef offsetof 39# define offsetof(type, member) ((size_t)&(((type *)NULL)->member)) 40#endif 41#include <inttypes.h> 42#include <string.h> 43#include <strings.h> 44#include <ctype.h> 45#ifdef _MSC_VER 46# include <io.h> 47typedef intptr_t ssize_t; 48# define PATH_MAX 1024 49# define STDERR_FILENO 2 50# define __func__ __FUNCTION__ 51/* Disable warnings about deprecated system functions */ 52# pragma warning(disable: 4996) 53#else 54# include <unistd.h> 55#endif 56#include <fcntl.h> 57 58#endif /* JEMALLOC_INTERNAL_H */ 59