Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
031194b9
Verified
Commit
031194b9
authored
4 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Use header files in dlmalloc
parent
a28e9ae3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/c/dlmalloc.c
+1
-41
1 addition, 41 deletions
src/c/dlmalloc.c
with
1 addition
and
41 deletions
src/c/dlmalloc.c
+
1
−
41
View file @
031194b9
...
@@ -525,52 +525,12 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP
...
@@ -525,52 +525,12 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP
#define HAVE_MMAP 1
#define HAVE_MMAP 1
#define ONLY_MSPACES 1
#define ONLY_MSPACES 1
#define LACKS_ERRNO_H
#define HAVE_MREMAP 0
#define LACKS_FCNTL_H
#define LACKS_SCHED_H
#define LACKS_STDLIB_H
#define LACKS_STRING_H
#define LACKS_SYS_MMAN_H
#define LACKS_TIME_H
#define LACKS_UNISTD_H
#define NO_MALLOC_STATS 1
#define NO_MALLOC_STATS 1
#define USE_DL_PREFIX 1
#define USE_DL_PREFIX 1
#define USE_LOCKS 1
#define USE_LOCKS 1
#define USE_SPIN_LOCKS 1
#define USE_SPIN_LOCKS 1
#define HAVE_MREMAP 0
#define malloc_getpagesize ((size_t)4096U)
#define malloc_getpagesize ((size_t)4096U)
#include
<stddef.h>
#define ENOMEM 12
#define EINVAL 22
extern
__thread
int
errno
;
#if defined(__linux__)
#define O_RDWR 2
#define PROT_READ 1
#define PROT_WRITE 2
#elif defined(__redox__)
#define O_RDWR 196608
#define PROT_READ 4
#define PROT_WRITE 2
#endif
/*defined(__redox__)*/
#define MAP_PRIVATE 2
#define MAP_ANON 32
typedef
long
off_t
;
int
open
(
const
char
*
pathname
,
int
flags
);
void
*
mmap
(
void
*
addr
,
size_t
len
,
int
prot
,
int
flags
,
int
fildes
,
off_t
off
);
int
munmap
(
void
*
addr
,
size_t
len
);
void
abort
(
void
);
void
*
memcpy
(
void
*
dest
,
const
void
*
src
,
size_t
n
);
void
*
memset
(
void
*
s
,
int
c
,
size_t
n
);
// LACKS_UNISTD_H, LACKS_FCNTL_H, LACKS_SYS_PARAM_H, LACKS_SYS_MMAN_H
// LACKS_STRINGS_H, LACKS_STRING_H, LACKS_SYS_TYPES_H, LACKS_ERRNO_H
// LACKS_STDLIB_H LACKS_SCHED_H LACKS_TIME_H
/* } Customizations */
/* } Customizations */
/* Version identifier to allow people to support multiple versions */
/* Version identifier to allow people to support multiple versions */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment