[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: On OpenBSD and if_freenameindex(3).
From: |
Simon Josefsson |
Subject: |
Re: On OpenBSD and if_freenameindex(3). |
Date: |
Tue, 21 Sep 2010 22:44:48 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Mats Erik Andersson wrote:
>> 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 ...
>
> Indeed, according to POSIX:2008 [1], a macro may be provided by the system,
> but
> the function needs to be provided as well.
>
> Bruno
>
> [1]
> http://www.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_01_01
I guess this means the signature testing code should actually test that
(if_freenameindex), and not if_freenameindex, matches the prototype,
right? This to make sure that the function prototype (if existing) is
used instead of the CPP macro. Perhaps signature.h already does this
though...
/Simon
- Re: On OpenBSD and if_freenameindex(3)., (continued)
Re: On OpenBSD and if_freenameindex(3)., Eric Blake, 2010/09/21
Re: On OpenBSD and if_freenameindex(3)., Bruno Haible, 2010/09/21
- Re: On OpenBSD and if_freenameindex(3).,
Simon Josefsson <=