Skip to content

Commit

Permalink
Add missing error numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
phaubertin committed Nov 22, 2024
1 parent d9948cf commit ea40b2e
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions doc/syscalls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,33 @@
| 19 | [MINT](mint.md) | Mint a Descriptor |
| 20 | [START_THREAD](start-thread.md) | Start a Thread |
| 21 | [AWAIT_THREAD](await-thread.md) | Wait for a Thread to Exit |
| 22 | [REPLY_ERROR](reply-error.md) | Reply to Message with an Error !
| 22 | [REPLY_ERROR](reply-error.md) | Reply to Message with an Error |
| 23-4095 | - | Reserved |
| 4096+ | [SEND](send.md) | Send Message |

#### Reserved Function Numbers

Any function marked as reserved returns -1 (in `arg0`) and sets error number
JINUE_ENOSYS (in `arg1`).
`JINUE_ENOSYS` (in `arg1`).

### Error Reference

| Number | Name | Description |
|--------|--------------|----------------------------------------|
| 1 | JINUE_ENOMEM | Not enough memory |
| 2 | JINUE_ENOSYS | Not supported |
| 3 | JINUE_EINVAL | Invalid argument |
| 4 | JINUE_EAGAIN | Currently unavailable, try again later |
| 5 | JINUE_EBADF | Bad/invalid descriptor |
| 6 | JINUE_EIO | Input/output error |
| 7 | JINUE_EPERM | Operation not permitted |
| 8 | JINUE_E2BIG | Not enough space in output buffer |
| 9 | JINUE_ENOMSG | No message |
| Number | Name | Description |
|--------|------------------|----------------------------------------|
| 1 |`JINUE_ENOMEM` | Not enough memory |
| 2 |`JINUE_ENOSYS` | Function not supported |
| 3 |`JINUE_EINVAL` | Invalid argument |
| 4 |`JINUE_EAGAIN` | Currently unavailable, try again later |
| 5 |`JINUE_EBADF` | Bad/invalid descriptor |
| 6 |`JINUE_EIO` | Input/output error |
| 7 |`JINUE_EPERM` | Operation not permitted |
| 8 |`JINUE_E2BIG` | Not enough space in output buffer |
| 9 |`JINUE_ENOMSG` | No message |
| 10 |`JINUE_ENOTSUP` | Not supported |
| 11 |`JINUE_EBUSY` | Device or resource busy |
| 12 |`JINUE_ESRCH` | No such thread/process |
| 13 |`JINUE_EDEADLK` | Resource deadlock would occur |
| 14 |`JINUE_EPROTO` | Protocol error |

## Overview

Expand Down

0 comments on commit ea40b2e

Please sign in to comment.