Re: Is it possible to define the root directory in a cross compiled program

2021-01-05 Thread Roger Kaufman
Hi All, On 1/5/2021 10:02 AM, Bill Stewart wrote: > On Tue, Jan 5, 2021 at 6:34 AM Eliot Moss wrote: > >> Is there a Windows equivalent to chroot (either the program or the library/system call)? > > See: https://cygwin.com/cygwin-ug-net/highlights.html > > Quoting: > > "Chroot is supported. Ki

Is it possible to define the root directory in a cross compiled program

2021-01-04 Thread Roger Kaufman
When I cross compile the following program, opening /dev/null fails and instead the whole install path of /cygwin64/dev/null is visible. Is there a way to make fopen respect / as the root directory in a cross compiled program for windows? example output... Roger@interocitor:~ $ x86_64-w64-mi