klange / toaruos

A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
https://toaruos.org/
University of Illinois/NCSA Open Source License
6.09k stars 477 forks source link

Reorganize libc network functions #218

Open klange opened 2 years ago

klange commented 2 years ago

Previously, libc/sys/network.c was full of stubs. Since Misaka's network stack was implemented, many of the functions in this file have been filled out (though a handful, such as getsockname, getpeername, and getnameinfo are, as yet, unimplemented).

It would make sense to add libc/net directory and start breaking this file up, especially as gethostbyname and its replacement getaddrinfo are expected to grow considerably as new functionality is added to them.