[BRLTTY] brltty5.1 in windows write Error to Focus 14

Dave Mielke dave at mielke.cc
Fri Jun 13 18:15:36 EDT 2014


[quoted lines by Siju Samuel on 2014/06/13 at 10:54 -0500]

>#ifdef _POSIX_THREAD_SAFE_FUNCTIONS
>#define lockStream(stream) flockfile((stream))
>#define unlockStream(stream) funlockfile((stream))
>#else /* _POSIX_THREAD_SAFE_FUNCTIONS */
>#define lockStream(stream)
>#define unlockStream(stream)
>#endif /* _POSIX_THREAD_SAFE_FUNCTIONS */

Yes, this is the interesting bit of code. Note what the documentation says:

   AVAILABILITY
      These  functions  are  available  when  _POSIX_THREAD_SAFE_FUNCTIONS is
      defined.

So our code is doing what the documenation says it should do. Interestingly, 
this code seems to work on MiNGW when in log.c but not when in file.h (its new 
location). That's why I'd like to look throgh MinGW's headers.

-- 
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
EMail: dave at mielke.cc | Canada  K2A 1H7   | http://FamilyRadio.com/


More information about the BRLTTY mailing list