mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-03 19:18:09 +00:00
fixup errno
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user