diff options
author | Raimo Niskanen <[email protected]> | 2017-07-21 09:33:15 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2017-07-21 09:33:15 +0200 |
commit | b7b813998b13af831289687a3c7c324b6c42460c (patch) | |
tree | e3f2a3e9b9c704663ae454418f7acb03c8e80bd4 | |
parent | c2b9a8feea68b630505d7794713fa071fee734d2 (diff) | |
parent | b3a617b7398603c047204fb17198657a626a0f90 (diff) | |
download | otp-b7b813998b13af831289687a3c7c324b6c42460c.tar.gz otp-b7b813998b13af831289687a3c7c324b6c42460c.tar.bz2 otp-b7b813998b13af831289687a3c7c324b6c42460c.zip |
Merge branch 'raimo/kernel/fix-spec-for-inet-get_rc-0/ERL-454' into maint
* raimo/kernel/fix-spec-for-inet-get_rc-0/ERL-454:
Improve spec and doc for inet:get_rc/0
-rw-r--r-- | lib/kernel/doc/src/inet.xml | 11 | ||||
-rw-r--r-- | lib/kernel/src/inet.erl | 3 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lib/kernel/doc/src/inet.xml b/lib/kernel/doc/src/inet.xml index b71e8a1e5d..169a76463b 100644 --- a/lib/kernel/doc/src/inet.xml +++ b/lib/kernel/doc/src/inet.xml @@ -222,11 +222,18 @@ fe80::204:acff:fe17:bf38 <name name="get_rc" arity="0"/> <fsummary>Return a list of IP configuration parameters.</fsummary> <desc> - <p>Returns the state of the <c>Inet</c> configuration database in + <p> + Returns the state of the <c>Inet</c> configuration database in form of a list of recorded configuration parameters. For more information, see <seealso marker="erts:inet_cfg">ERTS User's Guide: Inet Configuration</seealso>. - Only parameters with other than default values are returned.</p> + </p> + <p> + Only actual parameters with other than default values + are returned, for example not directives that specify + other sources for configuration parameters nor + directives that clear parameters. + </p> </desc> </func> diff --git a/lib/kernel/src/inet.erl b/lib/kernel/src/inet.erl index 6aef5476f1..dc20c21c77 100644 --- a/lib/kernel/src/inet.erl +++ b/lib/kernel/src/inet.erl @@ -151,7 +151,8 @@ %%% --------------------------------- --spec get_rc() -> [{Par :: any(), Val :: any()}]. +-spec get_rc() -> [{Par :: atom(), Val :: any()} | + {Par :: atom(), Val1 :: any(), Val2 :: any()}]. get_rc() -> inet_db:get_rc(). |