summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/rtemscalloc.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-06Return NULL for zero size allocationsSebastian Huber1-4/+5
In POSIX, zero size memory allocations are implementation-defined behaviour. The implementation has two options: https://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html Linux and FreeBSD return a unique pointer for zero size memory allocations. Return NULL on RTEMS to more likely catch the use of a zero size memory area by erroneous applications. Update #4390.
2021-04-20Fix calloc() behaviour in case of overflowSebastian Huber1-1/+8
The multiplication to calculate the length of the memory area to allocate may overflow. Return NULL in case of an overflow. Close #4389.
2021-04-20libcsupport: Move rtems_calloc()Sebastian Huber1-8/+17
Move rtems_calloc() since it only depends on rtems_malloc(). This may make it easier to customize the heap allocator. Change licence to BSD-2-Clause according to file history. Update #3053.
2020-12-23arm/fvp: New BSPSebastian Huber1-6/+8
This BSP supports the Arm Fixed Virtual Platform. Only the Cortex-R52 processor configuration is supported by the BSP. It should be easy to add support for other variants if needed. Update #4202.
2020-12-02score: Canonicalize Doxygen @file commentsSebastian Huber1-1/+2
Use common phrases for the file brief descriptions. Update #3706.
2020-08-31score: Add stack free handler to TCBSebastian Huber1-15/+11
This avoids a dependency to the stack free function in the thread destruction. Update #3959.
2020-07-24spmisc01: Include missing header fileSebastian Huber1-0/+2
Update #4032.
2020-07-24score: Add RTEMS_WEAKSebastian Huber1-4/+13
Update #4032.
2020-04-16Canonicalize config.h includeSebastian Huber1-1/+1
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2020-03-16rtems: Add rtems_put_char()Sebastian Huber1-4/+8
Update #3904.
2020-02-25config: Add <rtems/confdefs/malloc.h>Sebastian Huber1-2/+2
Remove all comments and copyrightable content from the moved content. Use BSD-2-Clause license for new file. Move the default configuration to library files so that application configurations do not include the definitions for the default case. Update #3053. Update #3875.
2020-02-25config: Add _Workspace_Is_unifiedSebastian Huber1-2/+2
Move the unified workspace configuration constant out of the configuration table. Provide a default definition of the unified workspace constant. Update #3875.
2020-02-25config: Simplify initialization task configSebastian Huber1-6/+3
With the removal of the CONFIGURE_HAS_OWN_INIT_TASK_TABLE configuration option at most one Classic API user initialization task can be configured. Provide an RTEMS API configuration table for backward compatibility. Update #3873.
2020-02-06sysinit: Add RTEMS_SYSINIT_ZERO_MEMORYSebastian Huber1-13/+6
Use a dedicate system initialization step to zero the memory used for the workspace and C program heap. This avoids dead code in case CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY is not configured.
2018-12-20psxhdrs: Changing copyright license to BSD-2-ClauseJacob Shin1-11/+22
2018-12-09psxhdrs: Add POSIX API Signature Compliance Tests for stdlib.h (GCI 2018)Jacob Shin1-6/+4
2018-12-05psxhdrs: Fix spacingJoel Sherrill1-16/+16
2018-12-05psxhdrs: POSIX API Signature Compliance Tests for assert.h (GCI 2018)Jacob Shin1-6/+4
2018-12-04psxhdrs: POSIX API Signature Compliance Tests for ulimit.h (GCI 2018)Jacob Shin1-5/+6
2018-12-04psxhdrs: Implement POSIX API Signature Compliance Tests for iconv.h (GCI 2018)Jacob Shin1-4/+6
2018-12-03psxhdrs: Implement POSIX API Signature Compliance Tests for fnmatch.h (GCI 2018)Jacob Shin1-14/+7
GCI Username: deuteriumoxide
2018-12-02psxhdrs:Add POSIX conformance test for utime.h (GCI 2018)Shashvat Jain1-15/+17
2018-11-27psxtests: add POSIX API signature compliance tests for dirent.h file (GCI 2018)Himanshu401-0/+39