[lkml]   [2001]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Trivial patch for SIOCGIFCOUNT
   From: "BALBIR SINGH" <>
Date: Tue, 09 Oct 2001 18:53:47 +0530

To make the API orthogonal, I have included a patch for SIOCGIFCOUNT,
which currently returns -EINVAL. The only reason I am providing this patch
is to make the API complete and make it easier to port applications from
other UNIX like OS'es.

There is no need for this change, and _EVEN_ if we put this
change in today every APP out there would _STILL_ need to deal with
all existing kernels which do not have SIOCGIFCOUNT implemented.

Furthermore, SIOCGIFCOUNT also gives no new functionality that does
not exist already. SIOCGIFCONF with a zero size with give the
behavior necessary to get the same answer as a SIOCGIFCOUNT would
provide. As far as I am aware, every system providing BSD sockets
provides this SIOCGIFCONF "feature".

Therefore, it is already quite easy to make applications portable
between Linux and other BSD socket based systems. Simply use the
SIOCGIFCONF method throughout.

Franks a lot,
David S. Miller

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:17    [W:1.232 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site