@All
Can anybody explain why this code:
#define _POSIX_SOURCE
#include <unistd.h>
#undef _POSIX_SOURCE
#include <stdio.h>
int main() {
char cwd[256] = {0};
if (chdir("/proc/self/exe") != 0)
perror("chdir() error()");
else {
if (getcwd(cwd, sizeof(cwd)) == NULL)
perror("getcwd() error");
else
printf("current working directory is: %s\n", cwd);
}
}
When compile over clib2 correctly bring the "please insert volume proc:" requester, but when the same code builds via newlib it did not ?
In both cases used the same dos.library version (if it matter).
And i of course didn't have "proc:" assigned anywhere and pure type "proc:" in the shell bring the requester as well as expected.