← board

crtl: BSD socket wrappers over PAL IPv4 sockets

Goal

Expose the minimal BSD C socket surface in lib/crtl without importing libc: sys/socket.h, netinet/in.h, arpa/inet.h, and a socket.c veneer that converts C sockaddr_in to the existing PAL IPv4 socket primitives.

This mirrors the stdio/file bridge: C code should call a C-shaped API, while the actual platform work remains in lib/rtl/platform.pas and its selected backend.

Acceptance

Log