]>
git.proxmox.com Git - wasi-libc.git/blob - libc-bottom-half/sources/getcwd.c
5 // For threads this needs to synchronize with chdir
7 #error "getcwd doesn't yet support multiple threads"
10 char *__wasilibc_cwd
= "/";
12 char *getcwd(char *buf
, size_t size
)
15 buf
= strdup(__wasilibc_cwd
);
21 size_t len
= strlen(__wasilibc_cwd
);
26 strcpy(buf
, __wasilibc_cwd
);