Definition of __USE_MISC?

Florian Weimer fweimer@redhat.com
Mon Oct 30 13:02:00 GMT 2017


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?

Thanks,
Florian



More information about the Libc-alpha mailing list