public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* Is if_nameindex() supported when combining linux ver5.5 and newlib?
@ 2020-06-24  8:35 Keita
  0 siblings, 0 replies; only message in thread
From: Keita @ 2020-06-24  8:35 UTC (permalink / raw)
  To: newlib


Hi,

Please tell us about the support status of Linux ver5.5.

Is if_nameindex() supported when combining linux ver5.5 and newlib?


Starting with Linux ve5.5, system call _sysctl() is no longer supported.

https://www.phoronix.com/scan.php?page=article&item=linux-55-features&num=1

the newlib library uses _sysctl() to implement if_nameindex().

----------------
newlib\libc\sys\linux\net\ifname.c

struct if_nameindex *
if_nameindex()

---

mib[0] = CTL_NET;
mib[1] = PF_ROUTE;
mib[2] = 0; /* protocol */
mib[3] = 0; /* wildcard address family */
mib[4] = 0;
mib[5] = 0; /* no flags */
if (__sysctl(mib, 6, NULL, &needed, NULL, 0) <0) // <- _sysctl() wrapper function
return NULL;

-------------------


If not support, are there any plans to fix this?
For example, changing to procfs(read "/proc/sys").

Regards,
Keita

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-24  8:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24  8:35 Is if_nameindex() supported when combining linux ver5.5 and newlib? Keita

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).