summaryrefslogtreecommitdiffstats
path: root/spec/rtems/status/if/code-to-errno.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rtems/status/if/code-to-errno.yml')
-rw-r--r--spec/rtems/status/if/code-to-errno.yml74
1 files changed, 74 insertions, 0 deletions
diff --git a/spec/rtems/status/if/code-to-errno.yml b/spec/rtems/status/if/code-to-errno.yml
new file mode 100644
index 00000000..40547ff4
--- /dev/null
+++ b/spec/rtems/status/if/code-to-errno.yml
@@ -0,0 +1,74 @@
+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:
+ body: null
+ params:
+ - ${code:/name} ${.:/params[0]/name}
+ return: int
+ variants: []
+description: null
+enabled-by: true
+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 is ${successful:/name}.
+ value: '0'
+ - description: |
+ The status code is ${invalid-number:/name}.
+ value: EBADF
+ - description: |
+ The status code is ${resource-in-use:/name}.
+ value: EBUSY
+ - description: |
+ The status code is ${interrupted:/name}.
+ value: EINTR
+ - description: |
+ The status code is ${invalid-clock:/name},
+ ${invalid-name:/name}, or ${invalid-node:/name}.
+ value: EINVAL
+ - description: |
+ The status code is ${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 is ${unsatisfied:/name}.
+ value: ENODEV
+ - description: |
+ The status code is ${no-memory:/name}.
+ value: ENOMEM
+ - description: |
+ The status code is ${not-configured:/name} or
+ ${not-implemented:/name}.
+ value: ENOSYS
+ - description: |
+ The status code is ${not-owner-of-resource:/name}.
+ value: EPERM
+ - description: |
+ The status code is ${timeout:/name}.
+ value: ETIMEDOUT
+type: interface