2016-04-14 09:17:02 +02:00
|
|
|
/* Internal declarations for malloc, for use within libc.
|
2022-01-01 10:54:23 -08:00
|
|
|
Copyright (C) 2016-2022 Free Software Foundation, Inc.
|
2016-04-14 09:17:02 +02:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU Lesser General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2.1 of the
|
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
License along with the GNU C Library; see the file COPYING.LIB. If
|
2019-09-06 22:40:42 -07:00
|
|
|
not, see <https://www.gnu.org/licenses/>. */
|
2016-04-14 09:17:02 +02:00
|
|
|
|
2016-05-04 15:25:39 +02:00
|
|
|
#ifndef _MALLOC_INTERNAL_H
|
|
|
|
|
#define _MALLOC_INTERNAL_H
|
2016-04-14 09:17:02 +02:00
|
|
|
|
2016-08-03 16:11:01 +02:00
|
|
|
#include <malloc-machine.h>
|
|
|
|
|
#include <malloc-sysdep.h>
|
2021-07-08 20:48:14 -07:00
|
|
|
#include <malloc-size.h>
|
2021-08-13 08:36:29 -03:00
|
|
|
#include <malloc-hugepages.h>
|
2016-08-03 16:11:01 +02:00
|
|
|
|
2016-04-14 09:17:02 +02:00
|
|
|
/* Called in the parent process before a fork. */
|
2017-08-31 15:56:21 +02:00
|
|
|
void __malloc_fork_lock_parent (void) attribute_hidden;
|
2016-04-14 09:17:02 +02:00
|
|
|
|
|
|
|
|
/* Called in the parent process after a fork. */
|
2017-08-31 15:56:21 +02:00
|
|
|
void __malloc_fork_unlock_parent (void) attribute_hidden;
|
2016-04-14 09:17:02 +02:00
|
|
|
|
|
|
|
|
/* Called in the child process after a fork. */
|
2017-08-31 15:56:21 +02:00
|
|
|
void __malloc_fork_unlock_child (void) attribute_hidden;
|
2016-04-14 09:17:02 +02:00
|
|
|
|
2018-06-26 15:13:54 +02:00
|
|
|
/* Called as part of the thread shutdown sequence. */
|
|
|
|
|
void __malloc_arena_thread_freeres (void) attribute_hidden;
|
|
|
|
|
|
2019-07-09 16:44:02 +02:00
|
|
|
/* Activate a standard set of debugging hooks. */
|
|
|
|
|
void __malloc_check_init (void) attribute_hidden;
|
|
|
|
|
|
2016-05-04 15:25:39 +02:00
|
|
|
#endif /* _MALLOC_INTERNAL_H */
|