cosmopolitan/libc/nt/enum
Justine Tunney 791f79fcb3
Make improvements
- We now serialize the file descriptor table when spawning / executing
  processes on Windows. This means you can now inherit more stuff than
  just standard i/o. It's needed by bash, which duplicates the console
  to file descriptor #255. We also now do a better job serializing the
  environment variables, so you're less likely to encounter E2BIG when
  using your bash shell. We also no longer coerce environ to uppercase

- execve() on Windows now remotely controls its parent process to make
  them spawn a replacement for itself. Then it'll be able to terminate
  immediately once the spawn succeeds, without having to linger around
  for the lifetime as a shell process for proxying the exit code. When
  process worker thread running in the parent sees the child die, it's
  given a handle to the new child, to replace it in the process table.

- execve() and posix_spawn() on Windows will now provide CreateProcess
  an explicit handle list. This allows us to remove handle locks which
  enables better fork/spawn concurrency, with seriously correct thread
  safety. Other codebases like Go use the same technique. On the other
  hand fork() still favors the conventional WIN32 inheritence approach
  which can be a little bit messy, but is *controlled* by guaranteeing
  perfectly clean slates at both the spawning and execution boundaries

- sigset_t is now 64 bits. Having it be 128 bits was a mistake because
  there's no reason to use that and it's only supported by FreeBSD. By
  using the system word size, signal mask manipulation on Windows goes
  very fast. Furthermore @asyncsignalsafe funcs have been rewritten on
  Windows to take advantage of signal masking, now that it's much more
  pleasant to use.

- All the overlapped i/o code on Windows has been rewritten for pretty
  good signal and cancelation safety. We're now able to ensure overlap
  data structures are cleaned up so long as you don't longjmp() out of
  out of a signal handler that interrupted an i/o operation. Latencies
  are also improved thanks to the removal of lots of "busy wait" code.
  Waits should be optimal for everything except poll(), which shall be
  the last and final demon we slay in the win32 i/o horror show.

- getrusage() on Windows is now able to report RUSAGE_CHILDREN as well
  as RUSAGE_SELF, thanks to aggregation in the process manager thread.
2023-10-08 08:59:53 -07:00
..
accessmask.h Make improvements 2023-09-18 21:04:47 -07:00
afd.h Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
bitblt.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
callback.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
color.h Get fork() working on Windows 2020-11-13 03:14:39 -08:00
computernameformat.h Make minor improvements 2020-11-09 15:41:11 -08:00
consolemodeflags.h Initial import 2020-06-15 07:18:57 -07:00
consoleselectionflags.h Initial import 2020-06-15 07:18:57 -07:00
context.h Make improvements 2023-09-06 22:48:05 -07:00
copyfile.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
creationdisposition.h Initial import 2020-06-15 07:18:57 -07:00
cs.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
ctrlevent.h Initial import 2020-06-15 07:18:57 -07:00
cw.h Get fork() working on Windows 2020-11-13 03:14:39 -08:00
dialogresult.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
errormodeflags.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
event.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
eventtype.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
exceptionhandleractions.h Initial import 2020-06-15 07:18:57 -07:00
fileflagandattributes.h Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
fileinfobyhandleclass.h Make improvements 2023-10-08 08:59:53 -07:00
fileinformationclass.h Initial import 2020-06-15 07:18:57 -07:00
filelockflags.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
filemapflags.h Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
filemovemethod.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
filesharemode.h Initial import 2020-06-15 07:18:57 -07:00
filetype.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
fillattribute.h Initial import 2020-06-15 07:18:57 -07:00
findexinfolevels.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
findexsearchops.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
formatmessageflags.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
fsctl.h Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
fsinformationclass.h Initial import 2020-06-15 07:18:57 -07:00
getfileexinfolevels.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
heap.h Get Redbean fork() working on the New Technology 2022-03-20 08:01:14 -07:00
ht.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
idc.h Get fork() working on Windows 2020-11-13 03:14:39 -08:00
imageauxsymboltype.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
importobjectnametype.h Initial import 2020-06-15 07:18:57 -07:00
importobjecttype.h Initial import 2020-06-15 07:18:57 -07:00
io.h Make numerous improvements 2021-09-28 01:52:34 -07:00
ioctl.h Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
jobobjectinfoclass.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
keyaccess.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
keyedevent.h Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
keyinformationclass.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
kwaitreason.h Initial import 2020-06-15 07:18:57 -07:00
lang.h Add SSL to redbean 2021-06-24 13:20:50 -07:00
loadlibrarysearch.h Initial import 2020-06-15 07:18:57 -07:00
lockfile.h Make redbean StoreAsset() work better 2021-05-14 05:44:37 -07:00
mb.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
memflags.h Rewrite brk() and sbrk() 2022-10-01 23:11:56 -07:00
memoryinformationclass.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
mf.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
mk.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
movefileexflags.h Fix bugs and make improvements 2022-04-20 10:05:34 -07:00
objectinformationclass.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
offerpriority.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
ofn.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
pageflags.h Get Redbean fork() working on the New Technology 2022-03-20 08:01:14 -07:00
pdh.h Fix some win32 definitions 2022-03-22 19:54:36 -07:00
processaccess.h Initial import 2020-06-15 07:18:57 -07:00
processcreationflags.h Make improvements 2023-09-18 21:04:47 -07:00
processinfoclass.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
procthreadattributes.h Initial import 2020-06-15 07:18:57 -07:00
progress.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
pwr.h Get fork() working on Windows 2020-11-13 03:14:39 -08:00
rdw.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
reggetvalueflags.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
regtype.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
replacefile.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
sc.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
sectioninformationclass.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
sectioninherit.h Initial import 2020-06-15 07:18:57 -07:00
sectionmapflags.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
securityimpersonationlevel.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
securityinformation.h Initial import 2020-06-15 07:18:57 -07:00
signal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
sio.h Improve synchronization 2022-04-15 15:31:55 -07:00
size.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
startf.h Initial import 2020-06-15 07:18:57 -07:00
statfs.h Polyfill statfs() and fstatfs() on Windows 2022-08-17 19:01:51 -07:00
status.h Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
sw.h Get fork() working on Windows 2020-11-13 03:14:39 -08:00
symboliclink.h Fix bugs and make improvements 2022-04-20 10:05:34 -07:00
systeminformationclass.h Initial import 2020-06-15 07:18:57 -07:00
th32cs.h Make fixes and improvements 2022-05-19 16:57:49 -07:00
threadaccess.h Initial import 2020-06-15 07:18:57 -07:00
threadinfoclass.h Initial import 2020-06-15 07:18:57 -07:00
threadpriority.h Initial import 2020-06-15 07:18:57 -07:00
threadstate.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
tokeninformationclass.h Initial import 2020-06-15 07:18:57 -07:00
tokentype.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
tpm.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
valueinformationclass.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
version.h Fix some issues and do some code cleanup 2022-05-23 10:15:53 -07:00
vk.h Make improvements 2023-09-21 07:30:39 -07:00
wa.h Get fork() working on Windows 2020-11-13 03:14:39 -08:00
wait.h Improve Windows Console I/O 2023-08-08 05:44:40 -07:00
wm.h Get fork() working on Windows 2020-11-13 03:14:39 -08:00
ws.h Get fork() working on Windows 2020-11-13 03:14:39 -08:00
wsa.h Improve synchronization 2022-04-15 15:31:55 -07:00
wsaid.h Improve synchronization 2022-04-15 15:31:55 -07:00
wt.h Fix some win32 definitions 2022-03-22 19:54:36 -07:00