From b3a617b7398603c047204fb17198657a626a0f90 Mon Sep 17 00:00:00 2001 From: Raimo Niskanen Date: Thu, 20 Jul 2017 16:08:23 +0200 Subject: Improve spec and doc for inet:get_rc/0 --- lib/kernel/doc/src/inet.xml | 11 +++++++++-- lib/kernel/src/inet.erl | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'lib') 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 Return a list of IP configuration parameters. -

Returns the state of the Inet configuration database in +

+ Returns the state of the Inet configuration database in form of a list of recorded configuration parameters. For more information, see ERTS User's Guide: Inet Configuration. - Only parameters with other than default values are returned.

+

+

+ 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. +

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(). -- cgit v1.2.3