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

Kernel+LibC+Userland: Start working on an IPv4 socket backend.

The first userland networking program will be "ping" :^)
This commit is contained in:
Andreas Kling 2019-03-12 15:51:42 +01:00
parent 8e667747f0
commit a017a77442
23 changed files with 374 additions and 3 deletions

View file

@ -88,6 +88,7 @@
__ENUMERATE_SYSCALL(restore_signal_mask) \
__ENUMERATE_SYSCALL(get_shared_buffer_size) \
__ENUMERATE_SYSCALL(seal_shared_buffer) \
__ENUMERATE_SYSCALL(sendto) \
namespace Syscall {
@ -128,6 +129,15 @@ struct SC_select_params {
struct timeval* timeout;
};
struct SC_sendto_params {
int sockfd;
const void* data;
size_t data_length;
int flags;
const void* addr; // const sockaddr*
size_t addr_length; // socklen_t
};
void initialize();
int sync();