[PATCH] if_nametoindex.3: add possible errno for if_nametoindex()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Checked against glibc and kernel code: when given name isn't a valid interface,
kernel returns ENODEV and glibc just forwards it.

Signed-off-by: Douglas Caetano dos Santos <douglascs@xxxxxxxxxxxxx>
---
 man3/if_nametoindex.3 | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/man3/if_nametoindex.3 b/man3/if_nametoindex.3
index 9689cdbd7..cfe49bc91 100644
--- a/man3/if_nametoindex.3
+++ b/man3/if_nametoindex.3
@@ -67,6 +67,14 @@ on error, NULL is returned and
 .I errno
 is set appropriately.
 .SH ERRORS
+.BR if_nametoindex ()
+may fail and set
+.I errno
+if:
+.TP
+.B ENODEV
+No interface found with given name.
+.PP
 .BR if_indextoname ()
 may fail and set
 .I errno
-- 
2.12.1

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux