Make fixes and improvements

- Document more compiler flags
- Expose new __print_maps() api
- Better overflow checking in mmap()
- Improve the shell example somewhat
- Fix minor runtime bugs regarding stacks
- Make kill() on fork()+execve()'d children work
- Support CLONE_CHILD_CLEARTID for proper joining
- Fix recent possible deadlock regression with --ftrace
This commit is contained in:
Justine Tunney 2022-05-19 16:57:49 -07:00
parent 6e52cba37a
commit ec2cb88058
68 changed files with 1211 additions and 431 deletions

11
libc/nt/enum/th32cs.h Normal file
View file

@ -0,0 +1,11 @@
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_TH32CS_H_
#define COSMOPOLITAN_LIBC_NT_ENUM_TH32CS_H_
#define kNtTh32csInherit 0x80000000
#define kNtTh32csSnapheaplist 0x00000001
#define kNtTh32csSnapmodule 0x00000008
#define kNtTh32csSnapmodule32 0x00000010
#define kNtTh32csSnapprocess 0x00000002
#define kNtTh32csSnapthread 0x00000004
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_TH32CS_H_ */