cosmopolitan/libc/sock
Justine Tunney db33973e0a Get fork() working on Windows
This is done without using Microsoft's internal APIs. MAP_PRIVATE
mappings are copied to the subprocess via a pipe, since Microsoft
doesn't want us to have proper COW pages. MAP_SHARED mappings are
remapped without needing to do any copying. Global variables need
copying along with the stack and the whole heap of anonymous mem.
This actually improves the reliability of the redbean http server
although one shouldn't expect 10k+ connections on a home computer
that isn't running software built to serve like Linux or FreeBSD.
2020-11-13 03:14:39 -08:00
..
accept-nt.c Get fork() working on Windows 2020-11-13 03:14:39 -08:00
accept-sysv.c Initial import 2020-06-15 07:18:57 -07:00
accept.c Initial import 2020-06-15 07:18:57 -07:00
accept4-sysv.c Initial import 2020-06-15 07:18:57 -07:00
accept4.c Make improvements 2020-09-14 00:02:34 -07:00
bind-nt.c Initial import 2020-06-15 07:18:57 -07:00
bind.c Make improvements 2020-09-14 00:02:34 -07:00
closesocket-nt.c Fix close() return code for Winsock 2020-08-25 09:33:11 -07:00
connect-nt.c Initial import 2020-06-15 07:18:57 -07:00
connect-sysv.c Initial import 2020-06-15 07:18:57 -07:00
connect.c Make improvements 2020-09-14 00:02:34 -07:00
fixupnewsockfd.c Initial import 2020-06-15 07:18:57 -07:00
getpeername-nt.c Initial import 2020-06-15 07:18:57 -07:00
getpeername-sysv.c Initial import 2020-06-15 07:18:57 -07:00
getpeername.c Initial import 2020-06-15 07:18:57 -07:00
getsockname-nt.c Initial import 2020-06-15 07:18:57 -07:00
getsockname-sysv.c Initial import 2020-06-15 07:18:57 -07:00
getsockname.c Initial import 2020-06-15 07:18:57 -07:00
getsockopt-nt.c Initial import 2020-06-15 07:18:57 -07:00
getsockopt.c Initial import 2020-06-15 07:18:57 -07:00
inet_ntop.c Add fixes performance and static web server 2020-10-05 23:11:49 -07:00
inet_pton.c Initial import 2020-06-15 07:18:57 -07:00
internal.h Get fork() working on Windows 2020-11-13 03:14:39 -08:00
iovec2nt.c Initial import 2020-06-15 07:18:57 -07:00
ipclassify.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
kntwsadata.c Get fork() working on Windows 2020-11-13 03:14:39 -08:00
listen-nt.c Initial import 2020-06-15 07:18:57 -07:00
listen.c Initial import 2020-06-15 07:18:57 -07:00
parseport.c Initial import 2020-06-15 07:18:57 -07:00
poll-nt.c Initial import 2020-06-15 07:18:57 -07:00
poll.c Initial import 2020-06-15 07:18:57 -07:00
recv.c Initial import 2020-06-15 07:18:57 -07:00
recvfrom-nt.c Initial import 2020-06-15 07:18:57 -07:00
recvfrom.c Initial import 2020-06-15 07:18:57 -07:00
select.c Initial import 2020-06-15 07:18:57 -07:00
send.c Initial import 2020-06-15 07:18:57 -07:00
sendfile.c Initial import 2020-06-15 07:18:57 -07:00
sendto-nt.c Make improvements 2020-09-14 00:02:34 -07:00
sendto.c Make improvements 2020-09-14 00:02:34 -07:00
setsockopt.c Make improvements 2020-09-14 00:02:34 -07:00
shutdown.c Initial import 2020-06-15 07:18:57 -07:00
sock.h Make improvements 2020-09-14 00:02:34 -07:00
sock.mk Initial import 2020-06-15 07:18:57 -07:00
socket-nt.c Initial import 2020-06-15 07:18:57 -07:00
socket-sysv.c Initial import 2020-06-15 07:18:57 -07:00
socket.c Initial import 2020-06-15 07:18:57 -07:00
socketconnect.c Initial import 2020-06-15 07:18:57 -07:00
winsockblock.c Initial import 2020-06-15 07:18:57 -07:00
winsockerr.c Initial import 2020-06-15 07:18:57 -07:00
xinet_ntop.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00