summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/if/alloc-size-2.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rtems/basedefs/if/alloc-size-2.yml')
-rw-r--r--spec/rtems/basedefs/if/alloc-size-2.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/if/alloc-size-2.yml b/spec/rtems/basedefs/if/alloc-size-2.yml
new file mode 100644
index 00000000..08791bfb
--- /dev/null
+++ b/spec/rtems/basedefs/if/alloc-size-2.yml
@@ -0,0 +1,36 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+brief: |
+ Tells the compiler in a declaration that the memory allocation item count and
+ item size parameter of this function is similar to calloc().
+copyrights:
+- Copyright (C) 2018 embedded brains GmbH (http://www.embedded-brains.de)
+definition:
+ default: ''
+ variants:
+ - definition: |
+ __attribute__((__alloc_size__(_count_index, _size_index)))
+ enabled-by:
+ - defined(${/compiler/if/gnuc:/name})
+description: null
+enabled-by: true
+interface-type: macro
+links:
+- role: interface-placement
+ uid: header
+- role: interface-ingroup
+ uid: group
+name: RTEMS_ALLOC_SIZE_2
+notes: null
+params:
+- description: |
+ is the allocation item count parameter index (starting with one).
+ dir: null
+ name: _count_index
+- description: |
+ is the allocation item size parameter index (starting with one).
+ dir: null
+ name: _size_index
+return:
+ return: null
+ return-values: []
+type: interface