aboutsummaryrefslogtreecommitdiff
path: root/libc/include/stdlib-malloc.yaml
blob: 51c11f5602e2c1820b53d239570303141b838bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This file has declarations that appear both in <stdlib.h> and in <malloc.h>.
# These include the subset of GNU extensions that Scudo supports.
#
# Note: glibc's <stdlib.h> and <malloc.h> both also have `reallocarray`,
# which Scudo does not support and is omitted here.  (Each of those glibc
# headers also has related functions the other lacks, but those should be
# covered separately in stdlib.yaml and malloc.yaml instead.)

functions:
  - name: aligned_alloc
    standards:
      - stdc
    return_type: void *
    arguments:
      - type: size_t
      - type: size_t
  - name: calloc
    standards:
      - stdc
    return_type: void *
    arguments:
      - type: size_t
      - type: size_t
  - name: free
    standards:
      - stdc
    return_type: void
    arguments:
      - type: void *
  - name: malloc
    standards:
      - stdc
    return_type: void *
    arguments:
      - type: size_t
  - name: memalign
    standards:
      - gnu
    return_type: void *
    arguments:
      - type: size_t
      - type: size_t
  - name: realloc
    standards:
      - stdc
    return_type: void *
    arguments:
      - type: void *
      - type: size_t
  - name: valloc
    standards:
      - bsd
      - gnu
    return_type: void *
    arguments:
      - type: size_t