af_iucv: New error return codes for connect()
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Tue, 6 Jan 2009 02:07:07 +0000 (18:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jan 2009 02:07:07 +0000 (18:07 -0800)
If the iucv_path_connect() call fails then return an error code that
corresponds to the iucv_path_connect() failure condition; instead of
returning -ECONNREFUSED for any failure.

This helps to improve error handling for user space applications
(e.g.  inform the user that the z/VM guest is not authorized to
connect to other guest virtual machines).

The error return codes are based on those described in connect(2).

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found