mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
More compat work.
Move syscall to int 0x82 since using int 0x80 was kinda prone to fork bombs when building things on Linux. :^)
This commit is contained in:
parent
f6b41d166d
commit
cccc8d8aeb
17 changed files with 81 additions and 9 deletions
|
@ -12,10 +12,12 @@ __BEGIN_DECLS
|
|||
#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 {
|
||||
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
|
||||
|
|
|
@ -55,6 +55,11 @@ struct stat {
|
|||
time_t st_ctime; /* time of last status change */
|
||||
};
|
||||
|
||||
struct utimbuf {
|
||||
time_t actime;
|
||||
time_t modtime;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define NULL nullptr
|
||||
#else
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#define WNOHANG 1
|
||||
pid_t wait(int* wstatus);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue