List:Internals« Previous MessageNext Message »
From:Yuri Dario Date:June 1 2001 7:09am
Subject:Re: check table failing under OS/2
View as plain text  
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 ?

into mysys\my_copy.c:

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

and

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



Bye,

	Yuri Dario

/*
 * member of TeamOS/2 - Italy
 * http://www.quasarbbs.com/yuri
 * http://www.teamos2.it
 */


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