mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 15:28:58 +01:00
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:
parent
916e681ca5
commit
e5f515c322
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user