diff options
| author | Willy Tarreau <w@1wt.eu> | 2025-06-19 11:30:51 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-20 18:36:34 +0200 |
| commit | 98498e73ae4c1e6512c65539bcb47040b5440fea (patch) | |
| tree | 0243ae17961ac133bb55d9b593589f30aa0b0219 | |
| parent | 3d95aed41fec10a5effa7ff9081baa82e4c88a9c (diff) | |
| download | linux-98498e73ae4c1e6512c65539bcb47040b5440fea.tar.gz linux-98498e73ae4c1e6512c65539bcb47040b5440fea.tar.bz2 linux-98498e73ae4c1e6512c65539bcb47040b5440fea.zip | |
tools/nolibc: fix spelling of FD_SETBITMASK in FD_* macros
commit a477629baa2a0e9991f640af418e8c973a1c08e3 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 commit
feaf75658783a broke programs using either FD_SET() or FD_CLR() without
being noticed. Let's fix these macros.
Fixes: feaf75658783a ("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>
| -rw-r--r-- | tools/include/nolibc/types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/include/nolibc/types.h b/tools/include/nolibc/types.h index b26a5d0c417c..9d606c7138a8 100644 --- a/tools/include/nolibc/types.h +++ b/tools/include/nolibc/types.h @@ -127,7 +127,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 { \ @@ -144,7 +144,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; \ }) |
