mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-21 06:30:14 +01:00
fixup errno
This commit is contained in:
parent
48cc80d276
commit
d595a02b56
2 changed files with 8 additions and 0 deletions
|
|
@ -212,6 +212,10 @@ Errno TranslateNativeError(int e, CallType call_type = CallType::Other) {
|
||||||
switch (e) {
|
switch (e) {
|
||||||
case 0: return Errno::SUCCESS;
|
case 0: return Errno::SUCCESS;
|
||||||
#define NETWORK_ERROR_LIST \
|
#define NETWORK_ERROR_LIST \
|
||||||
|
NETWORK_ERROR_ELEM(NOENT) \
|
||||||
|
NETWORK_ERROR_ELEM(INTR) \
|
||||||
|
NETWORK_ERROR_ELEM(IO) \
|
||||||
|
NETWORK_ERROR_ELEM(NOEXEC) \
|
||||||
NETWORK_ERROR_ELEM(BADF) \
|
NETWORK_ERROR_ELEM(BADF) \
|
||||||
NETWORK_ERROR_ELEM(INVAL) \
|
NETWORK_ERROR_ELEM(INVAL) \
|
||||||
NETWORK_ERROR_ELEM(MFILE) \
|
NETWORK_ERROR_ELEM(MFILE) \
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,10 @@ namespace Network {
|
||||||
|
|
||||||
enum class Errno : u32 {
|
enum class Errno : u32 {
|
||||||
SUCCESS = 0,
|
SUCCESS = 0,
|
||||||
|
NOENT = 2,
|
||||||
|
INTR = 4,
|
||||||
|
IO = 5,
|
||||||
|
NOEXEC = 8,
|
||||||
BADF = 9,
|
BADF = 9,
|
||||||
AGAIN = 11,
|
AGAIN = 11,
|
||||||
INVAL = 22,
|
INVAL = 22,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue