Skip to content

Commit

Permalink
Rewrite Windows poll()
Browse files Browse the repository at this point in the history
We can now await signals, files, pipes, and console simultaneously. This
change also gives a deeper review and testing to changes made yesterday.
  • Loading branch information
jart committed Sep 11, 2024
1 parent cceddd2 commit fbdf9d0
Show file tree
Hide file tree
Showing 15 changed files with 426 additions and 192 deletions.
5 changes: 5 additions & 0 deletions examples/spawn_bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ int main(int argc, char *argv[]) {
void *p;
const char *prog;

// if you need the tiny64 program for windows:
//
// make -j o//tool/hello/life-pe.ape
// scp o//tool/hello/life-pe.ape windows:tiny64
//
if (argc <= 1) {
prog = "tiny64";
} else {
Expand Down
1 change: 0 additions & 1 deletion libc/calls/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ uint32_t sys_getuid_nt(void);
int __ensurefds_unlocked(int);
void __printfds(struct Fd *, size_t);
int CountConsoleInputBytes(void);
int CountConsoleInputBytesBlocking(uint32_t, sigset_t);
int FlushConsoleInputBytes(void);
int64_t GetConsoleInputHandle(void);
int64_t GetConsoleOutputHandle(void);
Expand Down
Loading

0 comments on commit fbdf9d0

Please sign in to comment.