cosmopolitan/libc/sock
Justine Tunney 29eb7e67bb
Fix fork() regression on Windows
Recent optimizations to fork() introduced a regression, that could cause
the subprocess to fail unexpectedly, when TlsAlloc() returns a different
index. This is because we were burning the indexes into the displacement
of x86 opcodes. So when fork() happened and the executable memory copied
it would use the old index. Right now the way this is being solved is to
not copy the executable on fork() and then re-apply code changes. If you
need to be able to preserve self-modified code on fork, reach out and we
can implement a better solution for you. This gets us unblocked quickly.
2025-01-05 09:25:23 -08:00
..
struct Make more fixups and quality assurance 2024-10-07 15:29:53 -07:00
accept-nt.c Introduce sigtimedwait() on Windows 2024-09-15 01:18:27 -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 Make read() and write() signal handling atomic 2024-09-15 01:18:27 -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 Show file descriptors on crash on Windows 2024-09-18 21:53:09 -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 Make more fixups and quality assurance 2024-10-07 15:29:53 -07:00
iovec2nt.c Slightly optimize iovec on Windows 2024-09-16 21:36:22 -07:00
ipclassify.internal.h Reduce header complexity 2023-11-28 14:39:42 -08:00
kntwsadata.c Make fork() go 30% faster 2025-01-01 04:59:38 -08: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 Make more Windows socket fixes and improvements 2024-09-18 20:29:42 -07:00
recv.c Make more Windows socket fixes and improvements 2024-09-18 20:29:42 -07:00
recvfrom-nt.c Make more Windows socket fixes and improvements 2024-09-18 20:29:42 -07:00
recvfrom.c Make more Windows socket fixes and improvements 2024-09-18 20:29:42 -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 Make more fixups and quality assurance 2024-10-07 15:29:53 -07:00
send.c Make more Windows socket fixes and improvements 2024-09-18 20:29:42 -07:00
sendfile.c Fix fork() regression on Windows 2025-01-05 09:25:23 -08: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 Make more fixups and quality assurance 2024-10-07 15:29:53 -07:00
sendto.c Make more Windows socket fixes and improvements 2024-09-18 20:29:42 -07:00
setsockopt-nt.c Emulate Linux socket timeout signaling on Windows 2024-09-17 00:24:08 -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 Fix strace logging of ipv6 port 2024-09-16 02:19:17 -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 Make more Windows socket fixes and improvements 2024-09-18 20:29:42 -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