From a87ce4103068db516a00df84863ef138d2742b2e Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 9 Aug 2024 16:55:52 +0300 Subject: [PATCH] LibC: rename fd_set internal variable binutils seems to need access to the internal type and uses this name for lookup. --- userspace/libraries/LibC/include/sys/select.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/userspace/libraries/LibC/include/sys/select.h b/userspace/libraries/LibC/include/sys/select.h index 555103c1..163d6731 100644 --- a/userspace/libraries/LibC/include/sys/select.h +++ b/userspace/libraries/LibC/include/sys/select.h @@ -18,34 +18,34 @@ typedef unsigned long __fd_mask; #define __FD_MASK_SIZE (8 * sizeof(__fd_mask)) typedef struct { - __fd_mask __bits[FD_SETSIZE / __FD_MASK_SIZE]; + __fd_mask __fds_bits[FD_SETSIZE / __FD_MASK_SIZE]; } fd_set; #define FD_CLR(fd, setp) \ do { \ __fd_mask off = (fd) / __FD_MASK_SIZE; \ __fd_mask bit = (fd) % __FD_MASK_SIZE; \ - (setp)->__bits[off] &= ~((__fd_mask)1 << bit); \ + (setp)->__fds_bits[off] &= ~((__fd_mask)1 << bit); \ } while (0) #define FD_ISSET(fd, setp) \ ({ \ __fd_mask off = (fd) / __FD_MASK_SIZE; \ __fd_mask bit = (fd) % __FD_MASK_SIZE; \ - (setp)->__bits[off] & ((__fd_mask)1 << bit); \ + (setp)->__fds_bits[off] & ((__fd_mask)1 << bit); \ }) #define FD_SET(fd, setp) \ do { \ __fd_mask off = (fd) / __FD_MASK_SIZE; \ __fd_mask bit = (fd) % __FD_MASK_SIZE; \ - (setp)->__bits[off] |= ((__fd_mask)1 << bit); \ + (setp)->__fds_bits[off] |= ((__fd_mask)1 << bit); \ } while (0) #define FD_ZERO(setp) \ do { \ for (int i = 0; i < (int)FD_SETSIZE / (int)__FD_MASK_SIZE; i++) \ - (setp)->__bits[i] = (__fd_mask)0; \ + (setp)->__fds_bits[i] = (__fd_mask)0; \ } while (0) struct sys_pselect_t