lua-users home
lua-l archive

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


It was thus said that the Great William Ahern once stated:
> On Tue, Jul 22, 2014 at 01:52:13AM -0400, Sean Conner wrote:
> > 
> > [1]	The first instance is to enumerate all the network interfaces under
> > 	Linux:
> > 
> > 	https://github.com/spc476/lua-conmanorg/blob/56f11f8c0b5bc35e2cfbf5c003d447a362325b2c/src/net.c#L358
> 
> Kinda off-topic, but I noticed your source code comment says that getifaddrs
> is "Linux-only". getifaddrs was original to BSDi. Linux adopted it. It's
> supported by not only all the modern BSDs, but also Solaris 11 and even QNX.
> It should be trivial to emulate on other systems, like AIX.

  It's marked "Linux only" because of the three systems I have easy access
to, Linux, Solaris (5.10, so is that Solaris 10?) and Mac OS-X, it's only
Linux that I found the actual function.

  -spc