Definition of __USE_MISC?
Sebastian Huber
sebastian.huber@embedded-brains.de
Thu Oct 5 06:07:00 GMT 2017
Hello,
according to the comment in features.h we have:
__USE_MISC Define things from 4.3BSD or System V Unix.
What about interfaces that are present on newer BSD systems by default,
e.g. we have in glibc strings.h:
/* The following two functions are non-standard but necessary for non-32 bit
platforms. */
# ifdef __USE_GNU
extern int ffsl (long int __l) __THROW __attribute_const__;
__extension__ extern int ffsll (long long int __ll)
__THROW __attribute_const__;
# endif
In FreeBSD strings.h we have:
#if __BSD_VISIBLE
int ffsl(long) __pure2;
int ffsll(long long) __pure2;
int fls(int) __pure2;
int flsl(long) __pure2;
int flsll(long long) __pure2;
#endif
Would it be possible to change the guard in glibc to __USE_MISC?
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the Libc-alpha
mailing list