bug-gnulib
[Top][All Lists]
Advanced

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

On OpenBSD and if_freenameindex(3).


From: Mats Erik Andersson
Subject: On OpenBSD and if_freenameindex(3).
Date: Tue, 21 Sep 2010 13:49:19 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello,

influenced by an exchange with Simon Josefsson, where we have
on issue with the present matter in GNU Inetutils, I would like
to mention this subject, since GNUlib seems not to resolve the
matter to our satisfaction!

In OpenBSD (definitely in 4.6) there is a POSIX violation,
quoting Simon here, since the header file states

    ### /usr/include/net/if.h

    #define if_freenameindex(x) free(x)

This macro causes difficulties for me in "inetutils/ifconfig/if_index.*".
I am told the POSIX specification demands if_freenameindex(3) to be a
proper function.

Is this situation covered for in GNUlib, or should an increased use of
conditionals on HAVE_STRUCT_IF_NAMEINDEX be the intended way to overcome
this issue?


Best regards,
Mats E A



reply via email to

[Prev in Thread] Current Thread [Next in Thread]