sys/select.h: Remove howmany() macros.

These aren't defined or used in this header under glibc or musl,
and after the previous commit, aren't needed in the kernel either.
This commit is contained in:
Augustin Cavalier 2024-10-14 13:35:01 -04:00
parent 916e681ca5
commit e5f515c322

View File

@ -26,18 +26,10 @@
typedef __haiku_uint32 fd_mask;
#ifndef _howmany
# define _howmany(x, y) (((x) + ((y) - 1)) / (y))
#endif
#ifndef howmany
# define howmany(x, y) (((x) + ((y) - 1)) / (y))
#endif
#define NFDBITS (sizeof(fd_mask) * 8) /* bits per mask */
typedef struct fd_set {
fd_mask bits[_howmany(FD_SETSIZE, NFDBITS)];
fd_mask bits[((FD_SETSIZE) + ((NFDBITS) - 1)) / (NFDBITS)];
} fd_set;
#define _FD_BITSINDEX(fd) ((fd) / NFDBITS)
@ -54,6 +46,7 @@ typedef struct fd_set {
#endif /* FD_SET */
#ifdef __cplusplus
extern "C" {
#endif