mirror of
https://github.com/intel/llvm.git
synced 2026-02-03 10:39:35 +08:00
current working directory when running the inferior. Radar filed:
# rdar://problem/9056462
# The process launch flag '-w' for setting the current working directory not working?
llvm-svn: 126529
14 lines
226 B
C++
14 lines
226 B
C++
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
char buffer[1024];
|
|
|
|
fprintf(stdout, "stdout: %s\n", getcwd(buffer, 1024));
|
|
fprintf(stderr, "stderr: %s\n", getcwd(buffer, 1024));
|
|
|
|
return 0;
|
|
}
|