Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include
File: malloc.h
/* Prototypes and definition for malloc implementation.
[0] Fix | Delete
Copyright (C) 1996-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
#ifndef _MALLOC_H
[18] Fix | Delete
#define _MALLOC_H 1
[19] Fix | Delete
[20] Fix | Delete
#include <features.h>
[21] Fix | Delete
#include <stddef.h>
[22] Fix | Delete
#include <stdio.h>
[23] Fix | Delete
[24] Fix | Delete
#ifdef _LIBC
[25] Fix | Delete
# define __MALLOC_HOOK_VOLATILE
[26] Fix | Delete
# define __MALLOC_DEPRECATED
[27] Fix | Delete
#else
[28] Fix | Delete
# define __MALLOC_HOOK_VOLATILE volatile
[29] Fix | Delete
# define __MALLOC_DEPRECATED __attribute_deprecated__
[30] Fix | Delete
#endif
[31] Fix | Delete
[32] Fix | Delete
[33] Fix | Delete
__BEGIN_DECLS
[34] Fix | Delete
[35] Fix | Delete
/* Allocate SIZE bytes of memory. */
[36] Fix | Delete
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
[37] Fix | Delete
[38] Fix | Delete
/* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */
[39] Fix | Delete
extern void *calloc (size_t __nmemb, size_t __size)
[40] Fix | Delete
__THROW __attribute_malloc__ __wur;
[41] Fix | Delete
[42] Fix | Delete
/* Re-allocate the previously allocated block in __ptr, making the new
[43] Fix | Delete
block SIZE bytes long. */
[44] Fix | Delete
/* __attribute_malloc__ is not used, because if realloc returns
[45] Fix | Delete
the same pointer that was passed to it, aliasing needs to be allowed
[46] Fix | Delete
between objects pointed by the old and new pointers. */
[47] Fix | Delete
extern void *realloc (void *__ptr, size_t __size)
[48] Fix | Delete
__THROW __attribute_warn_unused_result__;
[49] Fix | Delete
[50] Fix | Delete
/* Re-allocate the previously allocated block in PTR, making the new
[51] Fix | Delete
block large enough for NMEMB elements of SIZE bytes each. */
[52] Fix | Delete
/* __attribute_malloc__ is not used, because if reallocarray returns
[53] Fix | Delete
the same pointer that was passed to it, aliasing needs to be allowed
[54] Fix | Delete
between objects pointed by the old and new pointers. */
[55] Fix | Delete
extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
[56] Fix | Delete
__THROW __attribute_warn_unused_result__;
[57] Fix | Delete
[58] Fix | Delete
/* Free a block allocated by `malloc', `realloc' or `calloc'. */
[59] Fix | Delete
extern void free (void *__ptr) __THROW;
[60] Fix | Delete
[61] Fix | Delete
/* Allocate SIZE bytes allocated to ALIGNMENT bytes. */
[62] Fix | Delete
extern void *memalign (size_t __alignment, size_t __size)
[63] Fix | Delete
__THROW __attribute_malloc__ __wur;
[64] Fix | Delete
[65] Fix | Delete
/* Allocate SIZE bytes on a page boundary. */
[66] Fix | Delete
extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
[67] Fix | Delete
[68] Fix | Delete
/* Equivalent to valloc(minimum-page-that-holds(n)), that is, round up
[69] Fix | Delete
__size to nearest pagesize. */
[70] Fix | Delete
extern void *pvalloc (size_t __size) __THROW __attribute_malloc__ __wur;
[71] Fix | Delete
[72] Fix | Delete
/* Underlying allocation function; successive calls should return
[73] Fix | Delete
contiguous pieces of memory. */
[74] Fix | Delete
extern void *(*__morecore) (ptrdiff_t __size);
[75] Fix | Delete
[76] Fix | Delete
/* Default value of `__morecore'. */
[77] Fix | Delete
extern void *__default_morecore (ptrdiff_t __size)
[78] Fix | Delete
__THROW __attribute_malloc__;
[79] Fix | Delete
[80] Fix | Delete
/* SVID2/XPG mallinfo structure */
[81] Fix | Delete
[82] Fix | Delete
struct mallinfo
[83] Fix | Delete
{
[84] Fix | Delete
int arena; /* non-mmapped space allocated from system */
[85] Fix | Delete
int ordblks; /* number of free chunks */
[86] Fix | Delete
int smblks; /* number of fastbin blocks */
[87] Fix | Delete
int hblks; /* number of mmapped regions */
[88] Fix | Delete
int hblkhd; /* space in mmapped regions */
[89] Fix | Delete
int usmblks; /* always 0, preserved for backwards compatibility */
[90] Fix | Delete
int fsmblks; /* space available in freed fastbin blocks */
[91] Fix | Delete
int uordblks; /* total allocated space */
[92] Fix | Delete
int fordblks; /* total free space */
[93] Fix | Delete
int keepcost; /* top-most, releasable (via malloc_trim) space */
[94] Fix | Delete
};
[95] Fix | Delete
[96] Fix | Delete
/* Returns a copy of the updated current mallinfo. */
[97] Fix | Delete
extern struct mallinfo mallinfo (void) __THROW;
[98] Fix | Delete
[99] Fix | Delete
/* SVID2/XPG mallopt options */
[100] Fix | Delete
#ifndef M_MXFAST
[101] Fix | Delete
# define M_MXFAST 1 /* maximum request size for "fastbins" */
[102] Fix | Delete
#endif
[103] Fix | Delete
#ifndef M_NLBLKS
[104] Fix | Delete
# define M_NLBLKS 2 /* UNUSED in this malloc */
[105] Fix | Delete
#endif
[106] Fix | Delete
#ifndef M_GRAIN
[107] Fix | Delete
# define M_GRAIN 3 /* UNUSED in this malloc */
[108] Fix | Delete
#endif
[109] Fix | Delete
#ifndef M_KEEP
[110] Fix | Delete
# define M_KEEP 4 /* UNUSED in this malloc */
[111] Fix | Delete
#endif
[112] Fix | Delete
[113] Fix | Delete
/* mallopt options that actually do something */
[114] Fix | Delete
#define M_TRIM_THRESHOLD -1
[115] Fix | Delete
#define M_TOP_PAD -2
[116] Fix | Delete
#define M_MMAP_THRESHOLD -3
[117] Fix | Delete
#define M_MMAP_MAX -4
[118] Fix | Delete
#define M_CHECK_ACTION -5
[119] Fix | Delete
#define M_PERTURB -6
[120] Fix | Delete
#define M_ARENA_TEST -7
[121] Fix | Delete
#define M_ARENA_MAX -8
[122] Fix | Delete
[123] Fix | Delete
/* General SVID/XPG interface to tunable parameters. */
[124] Fix | Delete
extern int mallopt (int __param, int __val) __THROW;
[125] Fix | Delete
[126] Fix | Delete
/* Release all but __pad bytes of freed top-most memory back to the
[127] Fix | Delete
system. Return 1 if successful, else 0. */
[128] Fix | Delete
extern int malloc_trim (size_t __pad) __THROW;
[129] Fix | Delete
[130] Fix | Delete
/* Report the number of usable allocated bytes associated with allocated
[131] Fix | Delete
chunk __ptr. */
[132] Fix | Delete
extern size_t malloc_usable_size (void *__ptr) __THROW;
[133] Fix | Delete
[134] Fix | Delete
/* Prints brief summary statistics on stderr. */
[135] Fix | Delete
extern void malloc_stats (void) __THROW;
[136] Fix | Delete
[137] Fix | Delete
/* Output information about state of allocator to stream FP. */
[138] Fix | Delete
extern int malloc_info (int __options, FILE *__fp) __THROW;
[139] Fix | Delete
[140] Fix | Delete
/* Hooks for debugging and user-defined versions. */
[141] Fix | Delete
extern void (*__MALLOC_HOOK_VOLATILE __free_hook) (void *__ptr,
[142] Fix | Delete
const void *)
[143] Fix | Delete
__MALLOC_DEPRECATED;
[144] Fix | Delete
extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size,
[145] Fix | Delete
const void *)
[146] Fix | Delete
__MALLOC_DEPRECATED;
[147] Fix | Delete
extern void *(*__MALLOC_HOOK_VOLATILE __realloc_hook)(void *__ptr,
[148] Fix | Delete
size_t __size,
[149] Fix | Delete
const void *)
[150] Fix | Delete
__MALLOC_DEPRECATED;
[151] Fix | Delete
extern void *(*__MALLOC_HOOK_VOLATILE __memalign_hook)(size_t __alignment,
[152] Fix | Delete
size_t __size,
[153] Fix | Delete
const void *)
[154] Fix | Delete
__MALLOC_DEPRECATED;
[155] Fix | Delete
extern void (*__MALLOC_HOOK_VOLATILE __after_morecore_hook) (void);
[156] Fix | Delete
[157] Fix | Delete
/* Activate a standard set of debugging hooks. */
[158] Fix | Delete
extern void __malloc_check_init (void) __THROW __MALLOC_DEPRECATED;
[159] Fix | Delete
[160] Fix | Delete
[161] Fix | Delete
__END_DECLS
[162] Fix | Delete
#endif /* malloc.h */
[163] Fix | Delete
[164] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function