cosmopolitan/examples
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
..
package Get binaries closer to running without an o/s 2020-11-02 19:12:47 -08:00
acid2.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
auto-launch-gdb-on-crash.c Add example for auto debugging and asm() usage 2020-06-26 16:09:04 -07:00
backtrace.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
bigmem.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
breakpoint.c Initial import 2020-06-15 07:18:57 -07:00
cp.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
cplusplus.cc Initial import 2020-06-15 07:18:57 -07:00
crashreport.c Initial import 2020-06-15 07:18:57 -07:00
ctrlc.c Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
date.c Initial import 2020-06-15 07:18:57 -07:00
dinlerp.c Initial import 2020-06-15 07:18:57 -07:00
examples.mk Add tool for viewing memory 2020-11-06 20:20:10 -08:00
findprime.c Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
fld.c Make improvements 2020-09-14 00:02:34 -07:00
forkrand.c Get fork() working on Windows 2020-11-13 03:14:39 -08:00
generalized-automatic-datastructure-printing.c Initial import 2020-06-15 07:18:57 -07:00
gui.c Initial import 2020-06-15 07:18:57 -07:00
hello.c Get fork() working on Windows 2020-11-13 03:14:39 -08:00
hello.js Initial import 2020-06-15 07:18:57 -07:00
hello2.c Add pseudoteletypewriter to emulator 2020-08-29 23:51:09 -07:00
hello3.c Initial import 2020-06-15 07:18:57 -07:00
hello4.c Initial import 2020-06-15 07:18:57 -07:00
hellojs.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
invtsc.c Initial import 2020-06-15 07:18:57 -07:00
ispell.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
kilo.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
life.c Initial import 2020-06-15 07:18:57 -07:00
ls.c Make improvements 2020-09-14 00:02:34 -07:00
lstime.c Make more improvements 2020-09-28 01:20:34 -07:00
mappy.c Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
nesemu1.cc Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
now.c Initial import 2020-06-15 07:18:57 -07:00
peek.c Initial import 2020-06-15 07:18:57 -07:00
pipe.c Initial import 2020-06-15 07:18:57 -07:00
poll.c Initial import 2020-06-15 07:18:57 -07:00
printargs.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
printmysymbols.c Make minor improvements 2020-11-09 15:41:11 -08:00
printprimes.c Initial import 2020-06-15 07:18:57 -07:00
rawmode.c Initial import 2020-06-15 07:18:57 -07:00
rusage.c Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
stat.c Initial import 2020-06-15 07:18:57 -07:00
subprocess.c Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
tiny-raw-linux-tutorial.S Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
ttyinfo.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
uname.c Initial import 2020-06-15 07:18:57 -07:00
unbourne.c Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
x86split.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00