List:Internals« Previous MessageNext Message »
From:Michael Widenius Date:June 1 2001 4:46pm
Subject:Re: check table failing under OS/2
View as plain text  
hi!

>>>>> "Yuri" == Yuri Dario <mc6530@stripped> writes:

Yuri> Hi Monty,
Yuri> already opened using O_SHARE; adding O_SHARE to my_open() and
Yuri> my_create() fixed it. I don't know if it is a specific OS/2 bug, or
>> Where did you do the changes ?

Yuri> into mysys\my_copy.c:

Yuri> #ifdef OS2
Yuri>   if ((from_file=my_open(from,O_RDONLY|O_SHARE,MyFlags)) >= 0)
Yuri> #else
Yuri>   if ((from_file=my_open(from,O_RDONLY,MyFlags)) >= 0)
Yuri> #endif
Yuri>   {

Yuri> and

Yuri>     if ((to_file=  my_create(to,(int) stat_buff.st_mode,
Yuri> #ifdef OS2
Yuri> 			     O_WRONLY | O_TRUNC | O_BINARY | O_SHARE,
Yuri> #else
Yuri> 			     O_WRONLY | O_TRUNC | O_BINARY,
Yuri> #endif
Yuri> 			     MyFlags)) < 0)
Yuri>       goto err;

Applied; Thanks !

Regrads,
Monty
Thread
check table failing under OS/2Yuri Dario30 May
  • Re: check table failing under OS/2Sinisa Milivojevic31 May
  • check table failing under OS/2Michael Widenius1 Jun
    • Re: check table failing under OS/2Yuri Dario1 Jun
      • Re: check table failing under OS/2Michael Widenius1 Jun
        • Re: check table failing under OS/2Yuri Dario1 Jun
          • Re: check table failing under OS/2Michael Widenius2 Jun
            • Re: check table failing under OS/2Yuri Dario2 Jun
              • Re: check table failing under OS/2Michael Widenius3 Jun
                • Re: check table failing under OS/2Yuri Dario3 Jun
                  • Re: check table failing under OS/2Yuri Dario3 Jun
                    • Re: check table failing under OS/2Michael Widenius3 Jun
                      • Re: check table failing under OS/2Yuri Dario4 Jun
                  • Re: check table failing under OS/2Michael Widenius3 Jun
                    • Re: check table failing under OS/2Yuri Dario4 Jun
                      • Re: check table failing under OS/2Yuri Dario4 Jun
                        • Re: check table failing under OS/2Michael Widenius5 Jun
                      • Re: check table failing under OS/2Michael Widenius4 Jun
                        • Re: check table failing under OS/2Yuri Dario4 Jun
                          • Re: check table failing under OS/2Michael Widenius5 Jun
  • check table failing under OS/2Michael Widenius1 Jun
    • Re: check table failing under OS/2Yuri Dario1 Jun
    • Re: check table failing under OS/2Yuri Dario2 Jun
      • Re: check table failing under OS/2Michael Widenius3 Jun
        • Re: check table failing under OS/2Yuri Dario3 Jun
Re: check table failing under OS/2Yuri Dario5 Jun
Re: check table failing under OS/2Yuri Dario5 Jun
  • Re: check table failing under OS/2Michael Widenius6 Jun
    • Re: check table failing under OS/2Yuri Dario6 Jun
      • Re: check table failing under OS/2Michael Widenius7 Jun
        • Re: check table failing under OS/2Yuri Dario7 Jun
          • Re: check table failing under OS/2Michael Widenius11 Jun