Hi Pavel,

You are right, it looks like a typo. Could you please write an issue to me ( [email protected] ).

Thanks,
Mikhail.

On 03/17/09 18:01, Pavel Lastovicka wrote:
Hello,

I was looking at the source code in sal/osl/unx/file.cxx.
And there in function osl_openFile() is the following code:

          /* remove the NONBLOCK flag again */
          flags = fcntl(fd, F_GETFL, NULL);
          flags &= ~O_NONBLOCK;
          if( 0 > fcntl(fd, F_GETFL, flags) )
              return oslTranslateFileError(OSL_FET_ERROR, errno);

The second fcntl call should be fcntl(fd, F_SETFL, flags), shouldn't it?


--
Sun Microsystems GmbH                Mikhail Voytenko
Nagelsweg 55                         Software Engineer
20097 Hamburg                        Phone: (+49 40)23646 500
Germany                              Fax:   (+49 40)23646 550
http://www.sun.de                    mailto:[email protected]

Sitz der Gesellschaft: Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Thomas Schröder, Wolfgang Engels, Dr. Roland Bömer
Vorsitzender des Aufsichtsrates: Martin Häring


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to