This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Definition of __USE_MISC?


On Mon, Oct 30, 2017 at 2:01 PM, Florian Weimer <fweimer@redhat.com> wrote:
> On 10/26/2017 10:55 AM, Sebastian Huber wrote:
>>
>> On 17/10/17 14:01, Florian Weimer wrote:
>>>>>>
>>>>>>
>>>>>> Would it be possible to change the guard in glibc to __USE_MISC?
>>>>>
>>>>>
>>>>> Yes, it should be a simple change.  I was worried about the long long
>>>>> part initially, but we have precedent for using long long under __USE_MISC
>>>>> (strtouq in <stdlib.h>).
>>>>>
>>>>> Patch attached.
>>>>
>>>>
>>>> What are the opinions with respect to this patch? The ffsl() and ffsll()
>>>> are BSD visible in FreeBSD,  DragonFlyBSD, some Mac OS X and musl. They are
>>>> not available in OpenBSD and NetBSD.
>>>
>>>
>>> Unless there are objects, I'm going to check this in later this week.
>>
>>
>> I think there were no objections.
>
>
> Thanks for the reminder.  I have now pushed the change.
>
>> Which documentation parts need an update? Only the man page in
>>
>>
>> https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/man3/ffs.3
>>
>> ?
>
>
> Yes, the GNU manual does not document ffsl/ffsll at all, so no update is
> needed.  Will you contact Michael about the change?

No need (but thanks for thinking of it). I've just now updated the FTM
requirements in the man page to say:

       ffsl(), ffsll():
           Since glibc 2.27:
                   _DEFAULT_SOURCE
           Before glibc 2.27:
                   _GNU_SOURCE

Cheers,

Michael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]