mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 15:03:53 +02:00
tools/nolibc: fix spelling of FD_SETBITMASK in FD_* macros
commita477629baa
upstream. While nolibc-test does test syscalls, it doesn't test as much the rest of the macros, and a wrong spelling of FD_SETBITMASK in commitfeaf756587
broke programs using either FD_SET() or FD_CLR() without being noticed. Let's fix these macros. Fixes:feaf756587
("nolibc: fix fd_set type") Cc: stable@vger.kernel.org # v6.2+ Acked-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1540f5d8e8
commit
c87b19de62
|
@ -128,7 +128,7 @@ typedef struct {
|
|||
int __fd = (fd); \
|
||||
if (__fd >= 0) \
|
||||
__set->fds[__fd / FD_SETIDXMASK] &= \
|
||||
~(1U << (__fd & FX_SETBITMASK)); \
|
||||
~(1U << (__fd & FD_SETBITMASK)); \
|
||||
} while (0)
|
||||
|
||||
#define FD_SET(fd, set) do { \
|
||||
|
@ -145,7 +145,7 @@ typedef struct {
|
|||
int __r = 0; \
|
||||
if (__fd >= 0) \
|
||||
__r = !!(__set->fds[__fd / FD_SETIDXMASK] & \
|
||||
1U << (__fd & FD_SET_BITMASK)); \
|
||||
1U << (__fd & FD_SETBITMASK)); \
|
||||
__r; \
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user