summaryrefslogtreecommitdiffstats
path: root/spec/rtems/status/if/code-to-errno.yml
blob: 127f31fc097d0d993cde495f47af9a8799339195 (plain) (blame)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
  Maps the specified RTEMS status code to a POSIX error number.
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
definition:
  default:
    attributes: null
    body: null
    params:
    - ${code:/name} ${.:/params[0]/name}
    return: int
  variants: []
description: null
enabled-by: true
index-entries: []
interface-type: function
links:
- role: interface-placement
  uid: header
- role: interface-ingroup
  uid: group
name: rtems_status_code_to_errno
notes: null
params:
- description: is the status code to map.
  dir: null
  name: status_code
return:
  return: null
  return-values:
  - description: |
      The status code was ${successful:/name}.
    value: '0'
  - description: |
      The status code was ${invalid-number:/name}.
    value: EBADF
  - description: |
      The status code was ${resource-in-use:/name}.
    value: EBUSY
  - description: |
      The status code was ${interrupted:/name}.
    value: EINTR
  - description: |
      The status code was ${invalid-clock:/name},
      ${invalid-name:/name}, or ${invalid-node:/name}.
    value: EINVAL
  - description: |
      The status code was ${already-suspended:/name},
      ${called-from-isr:/name},
      ${illegal-on-remote-object:/name},
      ${illegal-on-self:/name}, ${incorrect-state:/name},
      ${internal-error:/name}, ${invalid-address:/name},
      ${invalid-id:/name}, ${invalid-priority:/name},
      ${invalid-size:/name}, ${io-error:/name},
      ${mp-not-configured:/name}, ${not-defined:/name},
      ${object-was-deleted:/name}, ${proxy-blocking:/name},
      ${task-exitted:/name}, or ${too-many:/name}.
    value: EIO
  - description: |
      The status code was ${unsatisfied:/name}.
    value: ENODEV
  - description: |
      The status code was ${no-memory:/name}.
    value: ENOMEM
  - description: |
      The status code was ${not-configured:/name} or
      ${not-implemented:/name}.
    value: ENOSYS
  - description: |
      The status code was ${not-owner-of-resource:/name}.
    value: EPERM
  - description: |
      The status code was ${timeout:/name}.
    value: ETIMEDOUT
type: interface