1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +00:00

More compat work. Rename libraries from LibFoo.a => libfoo.a

This makes it more straightforward to build a cross-compiler toolchain.
Also move math stuff from LibC to LibM.
This commit is contained in:
Andreas Kling 2019-02-26 13:30:57 +01:00
parent cccc8d8aeb
commit 3f29a12d90
23 changed files with 140 additions and 79 deletions

View file

@ -3,21 +3,10 @@
#include <sys/cdefs.h>
#include <sys/types.h>
#include <string.h>
#include <fd_set.h>
__BEGIN_DECLS
#define FD_SETSIZE 64
#define FD_ZERO(set) memset((set), 0, sizeof(fd_set));
#define FD_CLR(fd, set) ((set)->bits[(fd / 8)] &= ~(1 << (fd) % 8))
#define FD_SET(fd, set) ((set)->bits[(fd / 8)] |= (1 << (fd) % 8))
#define FD_ISSET(fd, set) ((set)->bits[(fd / 8)] & (1 << (fd) % 8))
struct __fd_set {
unsigned char bits[FD_SETSIZE / 8];
};
typedef struct __fd_set fd_set;
int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, struct timeval* timeout);
__END_DECLS