Re: [Patch, libgfortran] Pass mode in "open" for O_CREAT and on VxWorks

2012-05-16 Thread rbmj
On 05/16/2012 08:06 AM, rbmj wrote: On 05/16/2012 07:26 AM, Janne Blomqvist wrote: On Wed, May 16, 2012 at 1:03 PM, Tobias Burnus wrote: On 05/16/2012 08:45 AM, Janne Blomqvist wrote: IMHO it would be cleaner if you instead somewhere in the beginning of unix.c did #ifdef __VXWORKS__ /* open

Re: [Patch, libgfortran] Pass mode in "open" for O_CREAT and on VxWorks

2012-05-16 Thread rbmj
On 05/16/2012 07:26 AM, Janne Blomqvist wrote: On Wed, May 16, 2012 at 1:03 PM, Tobias Burnus wrote: On 05/16/2012 08:45 AM, Janne Blomqvist wrote: IMHO it would be cleaner if you instead somewhere in the beginning of unix.c did #ifdef __VXWORKS__ /* open is not a variadic function on vxwork

Re: [Patch, libgfortran] Pass mode in "open" for O_CREAT and on VxWorks

2012-05-16 Thread Janne Blomqvist
On Wed, May 16, 2012 at 1:03 PM, Tobias Burnus wrote: > Dear Janne, > > > On 05/16/2012 08:45 AM, Janne Blomqvist wrote: >> >> IMHO it would be cleaner if you instead somewhere in the beginning of >> unix.c did >> >> #ifdef __VXWORKS__ >> /* open is not a variadic function on vxworks (or something

Re: [Patch, libgfortran] Pass mode in "open" for O_CREAT and on VxWorks

2012-05-16 Thread Tobias Burnus
Dear Janne, On 05/16/2012 08:45 AM, Janne Blomqvist wrote: IMHO it would be cleaner if you instead somewhere in the beginning of unix.c did #ifdef __VXWORKS__ /* open is not a variadic function on vxworks (or something...) */ #define open(path, flags) open(path, flags, 0666) #endif Untested, b

Re: [Patch, libgfortran] Pass mode in "open" for O_CREAT and on VxWorks

2012-05-15 Thread Janne Blomqvist
On Tue, May 15, 2012 at 12:03 PM, Tobias Burnus wrote: > Dear all, > > the motivation for the following is rbmj's patch for libstdc++ on VxWorks, > cf. http://gcc.gnu.org/ml/gcc-patches/2012-05/msg00073.html > > Note that gfortan is used on VxWorks as the following email proves: > http://gcc.gnu.o

[Patch, libgfortran] Pass mode in "open" for O_CREAT and on VxWorks

2012-05-15 Thread Tobias Burnus
Dear all, the motivation for the following is rbmj's patch for libstdc++ on VxWorks, cf. http://gcc.gnu.org/ml/gcc-patches/2012-05/msg00073.html Note that gfortan is used on VxWorks as the following email proves: http://gcc.gnu.org/ml/fortran/2012-02/msg00115.html (VxWorks is a real-time embedde