]>
git.proxmox.com Git - rustc.git/blob - src/jemalloc/include/jemalloc/internal/jemalloc_internal_decls.h
1 #ifndef JEMALLOC_INTERNAL_DECLS_H
2 #define JEMALLOC_INTERNAL_DECLS_H
7 # include "msvc_compat/windows_extra.h"
10 # include <sys/param.h>
11 # include <sys/mman.h>
12 # if !defined(__pnacl__) && !defined(__native_client__)
13 # include <sys/syscall.h>
14 # if !defined(SYS_write) && defined(__NR_write)
15 # define SYS_write __NR_write
17 # if defined(SYS_open) && defined(__aarch64__)
18 /* Android headers may define SYS_open to __NR_open even though
19 * __NR_open may not exist on AArch64 (superseded by __NR_openat). */
25 # ifdef JEMALLOC_OS_UNFAIR_LOCK
28 # ifdef JEMALLOC_GLIBC_MALLOC_HOOK
32 # include <sys/time.h>
34 # ifdef JEMALLOC_HAVE_MACH_ABSOLUTE_TIME
35 # include <mach/mach_time.h>
38 #include <sys/types.h>
42 # define SIZE_T_MAX SIZE_MAX
51 # define offsetof(type, member) ((size_t)&(((type *)NULL)->member))
58 typedef intptr_t ssize_t
;
59 # define PATH_MAX 1024
60 # define STDERR_FILENO 2
61 # define __func__ __FUNCTION__
62 # ifdef JEMALLOC_HAS_RESTRICT
63 # define restrict __restrict
65 /* Disable warnings about deprecated system functions. */
66 # pragma warning(disable: 4996)
72 return (c
== '\t' || c
== ' ');
80 #endif /* JEMALLOC_INTERNAL_H */