cosmopolitan/libc/stdio
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
..
unlocked Add glob and some finer tuning of documentation 2020-06-21 15:23:35 -07:00
clearerr.c Initial import 2020-06-15 07:18:57 -07:00
favail.c Make more improvements 2020-09-28 01:20:34 -07:00
fclose.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
fclose_s.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
fdopen.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
feof.c Initial import 2020-06-15 07:18:57 -07:00
ferror.c Initial import 2020-06-15 07:18:57 -07:00
fflush.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
fgetc.c Initial import 2020-06-15 07:18:57 -07:00
fgethex.c Initial import 2020-06-15 07:18:57 -07:00
fgetpos.c Initial import 2020-06-15 07:18:57 -07:00
fgets.c Initial import 2020-06-15 07:18:57 -07:00
fgetwc.c Initial import 2020-06-15 07:18:57 -07:00
fgetws.c Initial import 2020-06-15 07:18:57 -07:00
fileno.c Initial import 2020-06-15 07:18:57 -07:00
fmemopen.c Make small fixes and oops ran clang-format on dtoa 2020-06-30 19:55:47 -07:00
fopen.c Initial import 2020-06-15 07:18:57 -07:00
fopenflags.c Initial import 2020-06-15 07:18:57 -07:00
fprintf.c Initial import 2020-06-15 07:18:57 -07:00
fputc.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
fputhex.c Initial import 2020-06-15 07:18:57 -07:00
fputs.c Make more improvements 2020-09-28 01:20:34 -07:00
fputwc.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
fputws.c Initial import 2020-06-15 07:18:57 -07:00
fread.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
freadbuf.c Initial import 2020-06-15 07:18:57 -07:00
freopen.c Initial import 2020-06-15 07:18:57 -07:00
freplenish.c Initial import 2020-06-15 07:18:57 -07:00
fscanf.c Initial import 2020-06-15 07:18:57 -07:00
fseek.c Initial import 2020-06-15 07:18:57 -07:00
fseeko.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fseteof.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
fseterr.c Initial import 2020-06-15 07:18:57 -07:00
fseterrno.c Initial import 2020-06-15 07:18:57 -07:00
fsetpos.c Initial import 2020-06-15 07:18:57 -07:00
ftell.c Initial import 2020-06-15 07:18:57 -07:00
ftello.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fwrite.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
fwritebuf.c Add fixes performance and static web server 2020-10-05 23:11:49 -07:00
g_stdbuf.c Initial import 2020-06-15 07:18:57 -07:00
g_stderr.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
g_stderr_init.S Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
g_stdin.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
g_stdin_init.S Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
g_stdio.c Initial import 2020-06-15 07:18:57 -07:00
g_stdout.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
g_stdout_init.S Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
getc.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
getchar.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
getcmoar.c Initial import 2020-06-15 07:18:57 -07:00
getdelim.c Initial import 2020-06-15 07:18:57 -07:00
getline.c Initial import 2020-06-15 07:18:57 -07:00
gets.c Initial import 2020-06-15 07:18:57 -07:00
getwc.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
getwchar.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
internal.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
mkostemp.c Initial import 2020-06-15 07:18:57 -07:00
mkostemps.c Initial import 2020-06-15 07:18:57 -07:00
mkostempsm.c Initial import 2020-06-15 07:18:57 -07:00
mkstemp.c Initial import 2020-06-15 07:18:57 -07:00
mkstemps.c Initial import 2020-06-15 07:18:57 -07:00
mktemp.c Initial import 2020-06-15 07:18:57 -07:00
printf.c Add glob and some finer tuning of documentation 2020-06-21 15:23:35 -07:00
putc.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
putchar.c Initial import 2020-06-15 07:18:57 -07:00
puts.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
putwc.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
putwchar.c Initial import 2020-06-15 07:18:57 -07:00
rewind.c Initial import 2020-06-15 07:18:57 -07:00
scanf.c Initial import 2020-06-15 07:18:57 -07:00
serialstdio.c Get binaries closer to running without an o/s 2020-11-02 19:12:47 -08:00
setbuf.c Initial import 2020-06-15 07:18:57 -07:00
setbuffer.c Make small fixes and oops ran clang-format on dtoa 2020-06-30 19:55:47 -07:00
setvbuf.c Make small fixes and oops ran clang-format on dtoa 2020-06-30 19:55:47 -07:00
stdio.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
stdio.mk Get fork() working on Windows 2020-11-13 03:14:39 -08:00
system.c Get fork() working on Windows 2020-11-13 03:14:39 -08:00
systemecho.c Initial import 2020-06-15 07:18:57 -07:00
temp.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
tmpfile.c Initial import 2020-06-15 07:18:57 -07:00
ungetc.c Initial import 2020-06-15 07:18:57 -07:00
unlocked.h Add glob and some finer tuning of documentation 2020-06-21 15:23:35 -07:00
vfprintf.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
vfscanf.c Initial import 2020-06-15 07:18:57 -07:00
vprintf.c Initial import 2020-06-15 07:18:57 -07:00
vscanf.c Initial import 2020-06-15 07:18:57 -07:00