Skip to content

Commit

Permalink
fix(docs): update const error-code in syscall page (#468)
Browse files Browse the repository at this point in the history
* fix(docs): update const error-code in syscall page

* chore: remove [

* apply review suggestion
  • Loading branch information
RetricSu authored Oct 15, 2024
1 parent f588ac1 commit 053ebf0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions website/docs/script/syscalls_for_script.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,18 @@ A collection of CKB-VM syscalls. Also include relevant constant, such as return

These are the return codes used by the CKB-VM syscalls.

| Const No. | C Example | Description |
| --------- | ---------------------- | ---------------------------------------------- |
| 0 | CKB_SUCCESS | No error. |
| 1 | CKB_INDEX_OUT_OF_BOUND | Index out of bound. (e.g. No such input Cell.) |
| 2 | CKB_ITEM_MISSING | The requested resource does not exist. |
| 3 | CKB_LENGTH_NOT_ENOUGH | The supplied memory buffer too small. |
| 4 | CKB_INVALID_DATA | The data provided is invalid. |
| Const No. | C Example | Description |
| --------- | ---------------------- | -------------------------------------------------------- |
| 0 | CKB_SUCCESS | No error. |
| 1 | CKB_INDEX_OUT_OF_BOUND | Index out of bounds (e.g., no such input Cell). |
| 2 | CKB_ITEM_MISSING | The requested resource does not exist. |
| 3 | CKB_LENGTH_NOT_ENOUGH | The supplied memory buffer is too small. |
| 4 | CKB_INVALID_DATA | The data provided is invalid. |
| 5 | CKB_WAIT_FAILURE | The file descriptor is invalid during syscall Wait. |
| 6 | CKB_INVALID_FD | The file descriptor is not owned by this process. |
| 7 | CKB_OTHER_END_CLOSED | The other end of the pipe is closed. |
| 8 | CKB_MAX_VMS_SPAWNED | The maximum count of spawned processes has been reached. |
| 9 | CKB_MAX_FDS_CREATED | The maximum count of created pipes has been reached. |

### Source

Expand Down

0 comments on commit 053ebf0

Please sign in to comment.