aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/inet.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2018-03-26 10:14:38 +0200
committerRaimo Niskanen <[email protected]>2018-03-26 10:14:38 +0200
commitda5915d50f8b5719e2443b5a708a757a909a52a6 (patch)
tree70a4650270f374f80922723152b050bfcd5d1315 /lib/kernel/src/inet.erl
parent0083a9451f5770a38bb21e78b7d574e5b72ba5f3 (diff)
parente1aa6fab326bdb443f14a08727a33fa52cbb573a (diff)
downloadotp-da5915d50f8b5719e2443b5a708a757a909a52a6.tar.gz
otp-da5915d50f8b5719e2443b5a708a757a909a52a6.tar.bz2
otp-da5915d50f8b5719e2443b5a708a757a909a52a6.zip
Merge branch 'raimo/type-posix-0-overhaul/ERL_550/OTP-14019'
* raimo/type-posix-0-overhaul/ERL_550/OTP-14019: Update types for posix error codes
Diffstat (limited to 'lib/kernel/src/inet.erl')
-rw-r--r--lib/kernel/src/inet.erl15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/kernel/src/inet.erl b/lib/kernel/src/inet.erl
index 4bad523dff..73c53b9011 100644
--- a/lib/kernel/src/inet.erl
+++ b/lib/kernel/src/inet.erl
@@ -105,7 +105,20 @@
{local, binary()} |
{unspec, <<>>} |
{undefined, any()}.
--type posix() :: exbadport | exbadseq | file:posix().
+-type posix() ::
+ 'eaddrinuse' | 'eaddrnotavail' | 'eafnosupport' | 'ealready' |
+ 'econnaborted' | 'econnrefused' | 'econnreset' |
+ 'edestaddrreq' |
+ 'ehostdown' | 'ehostunreach' |
+ 'einprogress' | 'eisconn' |
+ 'emsgsize' |
+ 'enetdown' | 'enetunreach' |
+ 'enopkg' | 'enoprotoopt' | 'enotconn' | 'enotty' | 'enotsock' |
+ 'eproto' | 'eprotonosupport' | 'eprototype' |
+ 'esocktnosupport' |
+ 'etimedout' |
+ 'ewouldblock' |
+ 'exbadport' | 'exbadseq' | file:posix().
-type socket() :: port().
-type socket_setopt() ::