mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Implement signal handler tail recursion
GNU Make on Windows now appears to be working reliably. This change also fixes a bug where, after fork the Windows thread handle wasn't reset and that caused undefined behavior using SetThreadContext() with our signals
This commit is contained in:
parent
a657f3e878
commit
cdf556e7d2
15 changed files with 627 additions and 77 deletions
|
@ -78,6 +78,17 @@ int64_t CreateToolhelp32Snapshot(uint32_t dwFlags, uint32_t th32ProcessID);
|
|||
bool32 Process32First(int64_t hSnapshot, struct NtProcessEntry32 *in_out_lppe);
|
||||
bool32 Process32Next(int64_t hSnapshot, struct NtProcessEntry32 *out_lppe);
|
||||
|
||||
bool32 EnumProcesses(uint32_t *out_lpidProcess, uint32_t cb,
|
||||
uint32_t *out_lpcbNeeded) paramsnonnull();
|
||||
bool32 EnumProcessModules(int64_t hProcess, int64_t *out_lphModule, uint32_t cb,
|
||||
uint32_t *out_lpcbNeeded) paramsnonnull();
|
||||
bool32 EnumProcessModulesEx(int64_t hProcess, int64_t *out_lphModule,
|
||||
uint32_t cb, uint32_t *out_lpcbNeeded,
|
||||
uint32_t dwFilterFlag) paramsnonnull();
|
||||
uint32_t GetModuleBaseName(int64_t hProcess, int64_t opt_hModule,
|
||||
char16_t *out_lpBaseName, uint32_t nSize)
|
||||
paramsnonnull();
|
||||
|
||||
#if ShouldUseMsabiAttribute()
|
||||
#include "libc/nt/thunk/process.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue