mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Mark fortified __FD_ELT as extension
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-12-02 Andreas Schwab <schwab@redhat.com>
|
||||||
|
|
||||||
|
* misc/bits/select2.h (__FD_ELT): Mark as extension. Add
|
||||||
|
parenthesis.
|
||||||
|
|
||||||
2011-12-01 Andreas Schwab <schwab@redhat.com>
|
2011-12-01 Andreas Schwab <schwab@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
|
* sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
|
||||||
|
@ -27,7 +27,8 @@ extern unsigned long int __fdelt_warn (unsigned long int __d)
|
|||||||
__warnattr ("bit outside of fd_set selected");
|
__warnattr ("bit outside of fd_set selected");
|
||||||
#undef __FD_ELT
|
#undef __FD_ELT
|
||||||
#define __FD_ELT(d) \
|
#define __FD_ELT(d) \
|
||||||
({ unsigned long int __d = d; \
|
__extension__ \
|
||||||
|
({ unsigned long int __d = (d); \
|
||||||
(__builtin_constant_p (__d) \
|
(__builtin_constant_p (__d) \
|
||||||
? (__d >= __FD_SETSIZE \
|
? (__d >= __FD_SETSIZE \
|
||||||
? __fdelt_warn (__d) : (__d / __NFDBITS)) \
|
? __fdelt_warn (__d) : (__d / __NFDBITS)) \
|
||||||
|
Reference in New Issue
Block a user