forked from shadps4-emu/shadPS4
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
880 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,246 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
constexpr int ORBIS_NET_ERROR_EPERM = 0x80410101; | ||
constexpr int ORBIS_NET_ERROR_ENOENT = 0x80410102; | ||
constexpr int ORBIS_NET_ERROR_ESRCH = 0x80410103; | ||
constexpr int ORBIS_NET_ERROR_EINTR = 0x80410104; | ||
constexpr int ORBIS_NET_ERROR_EIO = 0x80410105; | ||
constexpr int ORBIS_NET_ERROR_ENXIO = 0x80410106; | ||
constexpr int ORBIS_NET_ERROR_E2BIG = 0x80410107; | ||
constexpr int ORBIS_NET_ERROR_ENOEXEC = 0x80410108; | ||
constexpr int ORBIS_NET_ERROR_EBADF = 0x80410109; | ||
constexpr int ORBIS_NET_ERROR_ECHILD = 0x8041010A; | ||
constexpr int ORBIS_NET_ERROR_EDEADLK = 0x8041010B; | ||
constexpr int ORBIS_NET_ERROR_ENOMEM = 0x8041010C; | ||
constexpr int ORBIS_NET_ERROR_EACCES = 0x8041010D; | ||
constexpr int ORBIS_NET_ERROR_EFAULT = 0x8041010E; | ||
constexpr int ORBIS_NET_ERROR_ENOTBLK = 0x8041010F; | ||
constexpr int ORBIS_NET_ERROR_EBUSY = 0x80410110; | ||
constexpr int ORBIS_NET_ERROR_EEXIST = 0x80410111; | ||
constexpr int ORBIS_NET_ERROR_EXDEV = 0x80410112; | ||
constexpr int ORBIS_NET_ERROR_ENODEV = 0x80410113; | ||
constexpr int ORBIS_NET_ERROR_ENOTDIR = 0x80410114; | ||
constexpr int ORBIS_NET_ERROR_EISDIR = 0x80410115; | ||
constexpr int ORBIS_NET_ERROR_EINVAL = 0x80410116; | ||
constexpr int ORBIS_NET_ERROR_ENFILE = 0x80410117; | ||
constexpr int ORBIS_NET_ERROR_EMFILE = 0x80410118; | ||
constexpr int ORBIS_NET_ERROR_ENOTTY = 0x80410119; | ||
constexpr int ORBIS_NET_ERROR_ETXTBSY = 0x8041011A; | ||
constexpr int ORBIS_NET_ERROR_EFBIG = 0x8041011B; | ||
constexpr int ORBIS_NET_ERROR_ENOSPC = 0x8041011C; | ||
constexpr int ORBIS_NET_ERROR_ESPIPE = 0x8041011D; | ||
constexpr int ORBIS_NET_ERROR_EROFS = 0x8041011E; | ||
constexpr int ORBIS_NET_ERROR_EMLINK = 0x8041011F; | ||
constexpr int ORBIS_NET_ERROR_EPIPE = 0x80410120; | ||
constexpr int ORBIS_NET_ERROR_EDOM = 0x80410121; | ||
constexpr int ORBIS_NET_ERROR_ERANGE = 0x80410122; | ||
constexpr int ORBIS_NET_ERROR_EAGAIN = 0x80410123; | ||
constexpr int ORBIS_NET_ERROR_EWOULDBLOCK = 0x80410123; | ||
constexpr int ORBIS_NET_ERROR_EINPROGRESS = 0x80410124; | ||
constexpr int ORBIS_NET_ERROR_EALREADY = 0x80410125; | ||
constexpr int ORBIS_NET_ERROR_ENOTSOCK = 0x80410126; | ||
constexpr int ORBIS_NET_ERROR_EDESTADDRREQ = 0x80410127; | ||
constexpr int ORBIS_NET_ERROR_EMSGSIZE = 0x80410128; | ||
constexpr int ORBIS_NET_ERROR_EPROTOTYPE = 0x80410129; | ||
constexpr int ORBIS_NET_ERROR_ENOPROTOOPT = 0x8041012A; | ||
constexpr int ORBIS_NET_ERROR_EPROTONOSUPPORT = 0x8041012B; | ||
constexpr int ORBIS_NET_ERROR_ESOCKTNOSUPPORT = 0x8041012C; | ||
constexpr int ORBIS_NET_ERROR_EOPNOTSUPP = 0x8041012D; | ||
constexpr int ORBIS_NET_ERROR_ENOTSUP = 0x8041012D; | ||
constexpr int ORBIS_NET_ERROR_EPFNOSUPPORT = 0x8041012E; | ||
constexpr int ORBIS_NET_ERROR_EAFNOSUPPORT = 0x8041012F; | ||
constexpr int ORBIS_NET_ERROR_EADDRINUSE = 0x80410130; | ||
constexpr int ORBIS_NET_ERROR_EADDRNOTAVAIL = 0x80410131; | ||
constexpr int ORBIS_NET_ERROR_ENETDOWN = 0x80410132; | ||
constexpr int ORBIS_NET_ERROR_ENETUNREACH = 0x80410133; | ||
constexpr int ORBIS_NET_ERROR_ENETRESET = 0x80410134; | ||
constexpr int ORBIS_NET_ERROR_ECONNABORTED = 0x80410135; | ||
constexpr int ORBIS_NET_ERROR_ECONNRESET = 0x80410136; | ||
constexpr int ORBIS_NET_ERROR_ENOBUFS = 0x80410137; | ||
constexpr int ORBIS_NET_ERROR_EISCONN = 0x80410138; | ||
constexpr int ORBIS_NET_ERROR_ENOTCONN = 0x80410139; | ||
constexpr int ORBIS_NET_ERROR_ESHUTDOWN = 0x8041013A; | ||
constexpr int ORBIS_NET_ERROR_ETOOMANYREFS = 0x8041013B; | ||
constexpr int ORBIS_NET_ERROR_ETIMEDOUT = 0x8041013C; | ||
constexpr int ORBIS_NET_ERROR_ECONNREFUSED = 0x8041013D; | ||
constexpr int ORBIS_NET_ERROR_ELOOP = 0x8041013E; | ||
constexpr int ORBIS_NET_ERROR_ENAMETOOLONG = 0x8041013F; | ||
constexpr int ORBIS_NET_ERROR_EHOSTDOWN = 0x80410140; | ||
constexpr int ORBIS_NET_ERROR_EHOSTUNREACH = 0x80410141; | ||
constexpr int ORBIS_NET_ERROR_ENOTEMPTY = 0x80410142; | ||
constexpr int ORBIS_NET_ERROR_EPROCLIM = 0x80410143; | ||
constexpr int ORBIS_NET_ERROR_EUSERS = 0x80410144; | ||
constexpr int ORBIS_NET_ERROR_EDQUOT = 0x80410145; | ||
constexpr int ORBIS_NET_ERROR_ESTALE = 0x80410146; | ||
constexpr int ORBIS_NET_ERROR_EREMOTE = 0x80410147; | ||
constexpr int ORBIS_NET_ERROR_EBADRPC = 0x80410148; | ||
constexpr int ORBIS_NET_ERROR_ERPCMISMATCH = 0x80410149; | ||
constexpr int ORBIS_NET_ERROR_EPROGUNAVAIL = 0x8041014A; | ||
constexpr int ORBIS_NET_ERROR_EPROGMISMATCH = 0x8041014B; | ||
constexpr int ORBIS_NET_ERROR_EPROCUNAVAIL = 0x8041014C; | ||
constexpr int ORBIS_NET_ERROR_ENOLCK = 0x8041014D; | ||
constexpr int ORBIS_NET_ERROR_ENOSYS = 0x8041014E; | ||
constexpr int ORBIS_NET_ERROR_EFTYPE = 0x8041014F; | ||
constexpr int ORBIS_NET_ERROR_EAUTH = 0x80410150; | ||
constexpr int ORBIS_NET_ERROR_ENEEDAUTH = 0x80410151; | ||
constexpr int ORBIS_NET_ERROR_EIDRM = 0x80410152; | ||
constexpr int ORBIS_NET_ERROR_ENOMS = 0x80410153; | ||
constexpr int ORBIS_NET_ERROR_EOVERFLOW = 0x80410154; | ||
constexpr int ORBIS_NET_ERROR_ECANCELED = 0x80410155; | ||
constexpr int ORBIS_NET_ERROR_EPROTO = 0x8041015C; | ||
constexpr int ORBIS_NET_ERROR_EADHOC = 0x804101A0; | ||
constexpr int ORBIS_NET_ERROR_ERESERVED161 = 0x804101A1; | ||
constexpr int ORBIS_NET_ERROR_ERESERVED162 = 0x804101A2; | ||
constexpr int ORBIS_NET_ERROR_EINACTIVEDISABLED = 0x804101A3; | ||
constexpr int ORBIS_NET_ERROR_ENODATA = 0x804101A4; | ||
constexpr int ORBIS_NET_ERROR_EDESC = 0x804101A5; | ||
constexpr int ORBIS_NET_ERROR_EDESCTIMEDOUT = 0x804101A6; | ||
constexpr int ORBIS_NET_ERROR_ENETINTR = 0x804101A7; | ||
constexpr int ORBIS_NET_ERROR_ENOTINIT = 0x804101C8; | ||
constexpr int ORBIS_NET_ERROR_ENOLIBMEM = 0x804101C9; | ||
constexpr int ORBIS_NET_ERROR_ERESERVED202 = 0x804101CA; | ||
constexpr int ORBIS_NET_ERROR_ECALLBACK = 0x804101CB; | ||
constexpr int ORBIS_NET_ERROR_EINTERNAL = 0x804101CC; | ||
constexpr int ORBIS_NET_ERROR_ERETURN = 0x804101CD; | ||
constexpr int ORBIS_NET_ERROR_ENOALLOCMEM = 0x804101CE; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_EINTERNAL = 0x804101DC; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_EBUSY = 0x804101DD; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_ENOSPACE = 0x804101DE; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_EPACKET = 0x804101DF; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_ERESERVED224 = 0x804101E0; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_ENODNS = 0x804101E1; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_ETIMEDOUT = 0x804101E2; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_ENOSUPPORT = 0x804101E3; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_EFORMAT = 0x804101E4; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_ESERVERFAILURE = 0x804101E5; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_ENOHOST = 0x804101E6; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_ENOTIMPLEMENTED = 0x804101E7; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_ESERVERREFUSED = 0x804101E8; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_ENORECORD = 0x804101E9; | ||
constexpr int ORBIS_NET_ERROR_RESOLVER_EALIGNMENT = 0x804101EA; | ||
|
||
constexpr int ORBIS_NET_EPERM = 1; | ||
constexpr int ORBIS_NET_ENOENT = 2; | ||
constexpr int ORBIS_NET_ESRCH = 3; | ||
constexpr int ORBIS_NET_EINTR = 4; | ||
constexpr int ORBIS_NET_EIO = 5; | ||
constexpr int ORBIS_NET_ENXIO = 6; | ||
constexpr int ORBIS_NET_E2BIG = 7; | ||
constexpr int ORBIS_NET_ENOEXEC = 8; | ||
constexpr int ORBIS_NET_EBADF = 9; | ||
constexpr int ORBIS_NET_ECHILD = 10; | ||
constexpr int ORBIS_NET_EDEADLK = 11; | ||
constexpr int ORBIS_NET_ENOMEM = 12; | ||
constexpr int ORBIS_NET_EACCES = 13; | ||
constexpr int ORBIS_NET_EFAULT = 14; | ||
constexpr int ORBIS_NET_ENOTBLK = 15; | ||
constexpr int ORBIS_NET_EBUSY = 16; | ||
constexpr int ORBIS_NET_EEXIST = 17; | ||
constexpr int ORBIS_NET_EXDEV = 18; | ||
constexpr int ORBIS_NET_ENODEV = 19; | ||
constexpr int ORBIS_NET_ENOTDIR = 20; | ||
constexpr int ORBIS_NET_EISDIR = 21; | ||
constexpr int ORBIS_NET_EINVAL = 22; | ||
constexpr int ORBIS_NET_ENFILE = 23; | ||
constexpr int ORBIS_NET_EMFILE = 24; | ||
constexpr int ORBIS_NET_ENOTTY = 25; | ||
constexpr int ORBIS_NET_ETXTBSY = 26; | ||
constexpr int ORBIS_NET_EFBIG = 27; | ||
constexpr int ORBIS_NET_ENOSPC = 28; | ||
constexpr int ORBIS_NET_ESPIPE = 29; | ||
constexpr int ORBIS_NET_EROFS = 30; | ||
constexpr int ORBIS_NET_EMLINK = 31; | ||
constexpr int ORBIS_NET_EPIPE = 32; | ||
constexpr int ORBIS_NET_EDOM = 33; | ||
constexpr int ORBIS_NET_ERANGE = 34; | ||
constexpr int ORBIS_NET_EAGAIN = 35; | ||
constexpr int ORBIS_NET_EWOULDBLOCK = ORBIS_NET_EAGAIN; | ||
constexpr int ORBIS_NET_EINPROGRESS = 36; | ||
constexpr int ORBIS_NET_EALREADY = 37; | ||
constexpr int ORBIS_NET_ENOTSOCK = 38; | ||
constexpr int ORBIS_NET_EDESTADDRREQ = 39; | ||
constexpr int ORBIS_NET_EMSGSIZE = 40; | ||
constexpr int ORBIS_NET_EPROTOTYPE = 41; | ||
constexpr int ORBIS_NET_ENOPROTOOPT = 42; | ||
constexpr int ORBIS_NET_EPROTONOSUPPORT = 43; | ||
constexpr int ORBIS_NET_ESOCKTNOSUPPORT = 44; | ||
constexpr int ORBIS_NET_EOPNOTSUPP = 45; | ||
constexpr int ORBIS_NET_ENOTSUP = ORBIS_NET_EOPNOTSUPP; | ||
constexpr int ORBIS_NET_EPFNOSUPPORT = 46; | ||
constexpr int ORBIS_NET_EAFNOSUPPORT = 47; | ||
constexpr int ORBIS_NET_EADDRINUSE = 48; | ||
constexpr int ORBIS_NET_EADDRNOTAVAIL = 49; | ||
constexpr int ORBIS_NET_ENETDOWN = 50; | ||
constexpr int ORBIS_NET_ENETUNREACH = 51; | ||
constexpr int ORBIS_NET_ENETRESET = 52; | ||
constexpr int ORBIS_NET_ECONNABORTED = 53; | ||
constexpr int ORBIS_NET_ECONNRESET = 54; | ||
constexpr int ORBIS_NET_ENOBUFS = 55; | ||
constexpr int ORBIS_NET_EISCONN = 56; | ||
constexpr int ORBIS_NET_ENOTCONN = 57; | ||
constexpr int ORBIS_NET_ESHUTDOWN = 58; | ||
constexpr int ORBIS_NET_ETOOMANYREFS = 59; | ||
constexpr int ORBIS_NET_ETIMEDOUT = 60; | ||
constexpr int ORBIS_NET_ECONNREFUSED = 61; | ||
constexpr int ORBIS_NET_ELOOP = 62; | ||
constexpr int ORBIS_NET_ENAMETOOLONG = 63; | ||
constexpr int ORBIS_NET_EHOSTDOWN = 64; | ||
constexpr int ORBIS_NET_EHOSTUNREACH = 65; | ||
constexpr int ORBIS_NET_ENOTEMPTY = 66; | ||
constexpr int ORBIS_NET_EPROCLIM = 67; | ||
constexpr int ORBIS_NET_EUSERS = 68; | ||
constexpr int ORBIS_NET_EDQUOT = 69; | ||
constexpr int ORBIS_NET_ESTALE = 70; | ||
constexpr int ORBIS_NET_EREMOTE = 71; | ||
constexpr int ORBIS_NET_EBADRPC = 72; | ||
constexpr int ORBIS_NET_ERPCMISMATCH = 73; | ||
constexpr int ORBIS_NET_EPROGUNAVAIL = 74; | ||
constexpr int ORBIS_NET_EPROGMISMATCH = 75; | ||
constexpr int ORBIS_NET_EPROCUNAVAIL = 76; | ||
constexpr int ORBIS_NET_ENOLCK = 77; | ||
constexpr int ORBIS_NET_ENOSYS = 78; | ||
constexpr int ORBIS_NET_EFTYPE = 79; | ||
constexpr int ORBIS_NET_EAUTH = 80; | ||
constexpr int ORBIS_NET_ENEEDAUTH = 81; | ||
constexpr int ORBIS_NET_EIDRM = 82; | ||
constexpr int ORBIS_NET_ENOMSG = 83; | ||
constexpr int ORBIS_NET_EOVERFLOW = 84; | ||
constexpr int ORBIS_NET_ECANCELED = 85; | ||
constexpr int ORBIS_NET_EPROTO = 92; | ||
constexpr int ORBIS_NET_EADHOC = 160; | ||
constexpr int ORBIS_NET_ERESERVED161 = 161; | ||
constexpr int ORBIS_NET_ERESERVED162 = 162; | ||
constexpr int ORBIS_NET_EINACTIVEDISABLED = 163; | ||
constexpr int ORBIS_NET_ENODATA = 164; | ||
constexpr int ORBIS_NET_EDESC = 165; | ||
constexpr int ORBIS_NET_EDESCTIMEDOUT = 166; | ||
constexpr int ORBIS_NET_ENETINTR = 167; | ||
|
||
/* libnet */ | ||
constexpr int ORBIS_NET_ENOTINIT = 200; | ||
constexpr int ORBIS_NET_ENOLIBMEM = 201; | ||
constexpr int ORBIS_NET_ETLS = 202; | ||
constexpr int ORBIS_NET_ECALLBACK = 203; | ||
constexpr int ORBIS_NET_EINTERNAL = 204; | ||
constexpr int ORBIS_NET_ERETURN = 205; | ||
constexpr int ORBIS_NET_ENOALLOCMEM = 206; | ||
|
||
/* resolver */ | ||
constexpr int SCE_NET_RESOLVER_EINTERNAL = 220; | ||
constexpr int SCE_NET_RESOLVER_EBUSY = 221; | ||
constexpr int SCE_NET_RESOLVER_ENOSPACE = 222; | ||
constexpr int SCE_NET_RESOLVER_EPACKET = 223; | ||
constexpr int SCE_NET_RESOLVER_ERESERVED224 = 224; | ||
constexpr int SCE_NET_RESOLVER_ENODNS = 225; | ||
constexpr int SCE_NET_RESOLVER_ETIMEDOUT = 226; | ||
constexpr int SCE_NET_RESOLVER_ENOSUPPORT = 227; | ||
constexpr int SCE_NET_RESOLVER_EFORMAT = 228; | ||
constexpr int SCE_NET_RESOLVER_ESERVERFAILURE = 229; | ||
constexpr int SCE_NET_RESOLVER_ENOHOST = 230; | ||
constexpr int SCE_NET_RESOLVER_ENOTIMPLEMENTED = 231; | ||
constexpr int SCE_NET_RESOLVER_ESERVERREFUSED = 232; | ||
constexpr int SCE_NET_RESOLVER_ENORECORD = 233; | ||
constexpr int SCE_NET_RESOLVER_EALIGNMENT = 234; |
Oops, something went wrong.