PatchworkOS
da8a090
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
ERR.h
Go to the documentation of this file.
1
#ifndef _AUX_ERR_H
2
#define _AUX_ERR_H 1
3
4
/**
5
* @brief Integer error value.
6
* @ingroup libstd
7
*
8
* The `ERR` value is returned from system calls when an error has occurred, when that happens the `SYS_ERRNO`
9
* system call can be used to retrieve the errno code for the error that occurred. Some functions will also return
10
* `ERR`, you should refer to the documentation of each function, however if a function returns a `uint64_t` and can
11
* error then it should return `ERR` when an error occurs.
12
*
13
* The value is written using a binary representation to allow both unsigned and signed values to be compared without
14
* weird behaviour but is equal to `UINT64_MAX`.
15
*
16
*/
17
#define ERR (0b1111111111111111111111111111111111111111111111111111111111111111)
18
19
#endif
include
libstd
_internal
ERR.h
Generated on Fri Dec 12 2025 00:22:10 for PatchworkOS by
1.9.8