cosmopolitan/libc/sock
Justine Tunney e142124730
Rewrite Windows connect()
Our old code wasn't working with projects like Qt that call connect() in
O_NONBLOCK mode multiple times. This change overhauls connect() to use a
simpler WSAConnect() API and follows the same pattern as cosmo accept().
This change also reduces the binary footprint of read(), which no longer
needs to depend on our enormous clock_gettime() function.
2024-09-12 23:07:52 -07:00
..
struct Avoid linker conflicts on DescribeFoo symbols 2024-08-24 18:10:22 -07:00
accept-nt.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
accept.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
accept4-sysv.c Fix typo in accept4-sysv.c (#1235) 2024-07-19 05:46:29 -07:00
accept4.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
alg.h Reduce header complexity 2023-11-28 14:39:42 -08:00
basesocket.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
bind-nt.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
bind-sysv.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
bind.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
BUILD.mk Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
closesocket-nt.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
connect-nt.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
connect-sysv.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
connect.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
fixupnewsockfd.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
gethostips.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
getsockname.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
getsockopt-nt.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
getsockopt.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
goodsocket.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
goodsocket.internal.h Add dontthrow attribute to most libc functions 2024-01-09 01:26:03 -08:00
ifaddrs.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
ifaddrs.h Add dontthrow attribute to most libc functions 2024-01-09 01:26:03 -08:00
in.h Add libresolv from Musl Libc 2023-12-08 20:04:10 -08:00
in6addr_any.c Make improvements 2024-01-29 16:31:58 -08:00
in6addr_loopback.c Make improvements 2024-01-29 16:31:58 -08:00
inet_addr.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
inet_aton.c Fix ctype.h and wctype.h 2024-07-21 15:54:17 -07:00
inet_ntoa.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
inet_ntop.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
inet_pton.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
internal.h Fix bugs in poll(), select(), ppoll(), and pselect() 2024-09-02 00:29:52 -07:00
iovec2nt.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
ipclassify.internal.h Reduce header complexity 2023-11-28 14:39:42 -08:00
kntwsadata.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
listen-nt.c Rewrite Windows accept() 2024-09-12 04:23:38 -07:00
listen.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
recv-nt.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
recv.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
recvfrom-nt.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
recvfrom.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
recvmsg.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
select.h Rerun clang-format on the repo (#1217) 2024-06-15 16:34:48 -04:00
select.internal.h Avoid linker conflicts on DescribeFoo symbols 2024-08-24 18:10:22 -07:00
send-nt.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
send.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
sendfile.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
sendfile.internal.h Reduce header complexity 2023-11-28 14:39:42 -08:00
sendmsg.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
sendto-nt.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
sendto.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
setsockopt-nt.c Delve into clock rabbit hole 2024-09-04 01:32:46 -07:00
setsockopt.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
shutdown-nt.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
shutdown.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
sock.h Fix some static analysis issues 2024-07-27 09:16:54 -07:00
sockaddr.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
sockaddr2bsd.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
sockaddr2linux.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
sockatmark.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
sockdebug.c Avoid linker conflicts on DescribeFoo symbols 2024-08-24 18:10:22 -07:00
socket-nt.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
socket-sysv.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
socket.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
socketpair-nt.c Make recursive mutexes faster 2024-09-10 00:08:59 -07:00
socketpair-sysv.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
socketpair.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
sys_sendfile_freebsd.S Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
sys_sendfile_xnu.S Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
syscall_fd.internal.h Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
syslog.h Add dontthrow attribute to most libc functions 2024-01-09 01:26:03 -08:00
winsockblock.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
wsaid.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
wsaid.internal.h Reduce header complexity 2023-11-28 14:39:42 -08:00
yoink.inc Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00