duct taped posix.dll (just like microsoft), new cursor, more info in the fault handlers, processes now have a parse-it-yourself cmdline, add SYS_WAIT_THREAD and SYS_GET_PROCESS_PID, writing still doesn't work

This commit is contained in:
maksw committed 2026-05-05 15:24:58 +02:00
1 parent a37f5b1581
commit b5c831f593
26 files changed
+1107 -56

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#pragma once
// posix_path.h - POSIX <-> native path translation
// SYNTHETIC sentinel returned from PosixTranslatePath for /dev/null and
// /dev/zero; the caller must handle these before passing to any syscall.
#define SYNTH_DEVNULL "\x01<devnull>"
#define SYNTH_DEVZERO "\x01<devzero>"
// Translate a POSIX path to a native kernel path.
// Returns a pointer to 'out' on success, or SYNTH_DEVNULL / SYNTH_DEVZERO
// for those synthetic devices. 'out' must be at least 512 bytes.
const char* PosixTranslatePath(const char* in, char* out, size_t outSize);
// Translate a native kernel path back to a POSIX-style path.
// Strips the drive letter prefix and flips backslashes.
void NativeToPosix(const char* in, char* out, size_t outSize);