Skip to content

Add system calls for networking support#2209

Merged
ghaerr merged 2 commits intoghaerr:masterfrom
BinaryMelodies:elksemu-network-syscalls
Jan 31, 2025
Merged

Add system calls for networking support#2209
ghaerr merged 2 commits intoghaerr:masterfrom
BinaryMelodies:elksemu-network-syscalls

Conversation

@BinaryMelodies
Copy link
Copy Markdown
Contributor

This enables elksemu to run ELKS binaries with networking system calls.

There is one significant difference from the standard Linux API: fd_set is contains only 64 file descriptors instead of 1024 descriptors. This is because the ia16-gcc binary I used FD_SETSIZE = 64, but if ELKS currently supports more file descriptors, this can be easily updated.

@ghaerr
Copy link
Copy Markdown
Owner

ghaerr commented Jan 31, 2025

The fd_set size should not be an issue at all, since it's currently stored in a single unsigned long, given that 20 file descriptors is the max file descriptors per process (unless specially reconfigured).

@ghaerr ghaerr merged commit 9374404 into ghaerr:master Jan 31, 2025
@BinaryMelodies BinaryMelodies deleted the elksemu-network-syscalls branch February 1, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants