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

2021-01-05 Thread Hans-Bernhard Bröker
Am 05.01.2021 um 22:04 schrieb Andrey Repin: It's a Windows program - it can do whatever you program it to do! On Windows the device is NUL, the root is the drive root C:\, %SystemDrive%\ to be precise. Well, since we're being precise: no. %SystemDrive%\ is the root of the drive the system

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

2021-01-05 Thread Andrey Repin
Greetings, Brian Inglis! > On 2021-01-04 18:34, Roger Kaufman wrote: >> 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

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

2021-01-05 Thread Brian Inglis
On 2021-01-05 09:49, Roger Kaufman wrote: 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 > >

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.

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

2021-01-05 Thread Eliot Moss
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. Kind of.

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

2021-01-05 Thread Bill Stewart
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. Kind of. Chroot is not a concept known by Windows. This implies

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

2021-01-05 Thread Eliot Moss
On 1/4/2021 10:17 PM, Brian Inglis wrote: On 2021-01-04 18:34, Roger Kaufman wrote: 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

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

2021-01-04 Thread Brian Inglis
On 2021-01-04 18:34, Roger Kaufman wrote: 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

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:~ $