summaryrefslogtreecommitdiff
path: root/lib/malloc.in.h
Commit message (Collapse)AuthorAgeFilesLines
* stdlib, string, wchar: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-081-8/+18
| | | | | | | | | | | | | | | | | | | | | | * lib/stdlib.in.h (aligned_alloc): For GCC >= 11: Declare also when the platform already declares the function or when the module 'aligned_alloc' is not in use. (calloc): For GCC >= 11: Declare nearly always. (canonicalize_file_name): For GCC >= 11: Declare also when the platform already declares the function or when the module 'canonicalize-lgpl' is not in use. (malloc, realloc): For GCC >= 11: Declare nearly always. * lib/malloc.in.h: Remove redundant include. (memalign): For GCC >= 11: Declare also when the platform already declares the function or when the module 'memalign' is not in use. * lib/string.in.h: Include <stdlib.h> always. (strdup): For GCC >= 11: Declare also when the platform already declares the function or when the module 'strdup' or 'strdup-posix' is not in use. * lib/wchar.in.h: Include <stdlib.h> always. (wcsdup): For GCC >= 11: Declare also when the platform already declares the function or when the module 'wcsdup' is not in use. * modules/free-posix (Depends-on): Add string, wchar.
* stdlib, string, wchar: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-1/+7
| | | | | | | | | | | | | * lib/stdlib.in.h (free): Move declaration up. (aligned_alloc, calloc, canonicalize_file_name, malloc, realloc): Declare that deallocation must happen through 'free' (which may actually be 'rpl_free'). * lib/string.in.h: Include <stdlib.h>. (strdup): Declare deallocation. * lib/wchar.in.h: Include <stdlib.h>. (wcsdup): Declare deallocation. * lib/malloc.in.h: Include <stdlib.h>. (memalign): Declare deallocation.
* Put LGPLv2+ notices in source files where appropriate.Bruno Haible2021-06-041-8/+8
| | | | | * lib/**.{h,c,gperf}: Use LGPLv2+ notice whenever the module description says so.
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* malloc-h: New module.Bruno Haible2020-12-311-0/+69
* lib/malloc.in.h: New file. * m4/malloc_h.m4: New file. * modules/malloc-h: New file. * doc/glibc-headers/malloc.texi: New file. * doc/gnulib.texi (Glibc Header File Substitutes): Include it.