mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-06-12 16:23:21 +00:00

Add a simple `getpid` emulation function which just returns a fixed value, for applications that just use it for logging.
7 lines
126 B
C
7 lines
126 B
C
#include <unistd.h>
|
|
|
|
pid_t getpid(void) {
|
|
// Return an arbitrary value, greater than 1 which is special.
|
|
return 42;
|
|
}
|