libc is declared in stacks.jai.
libc
c_socket :: (family: s32, kind: s32, protocol: s32) -> s32 #foreign