Re: Porting, binary files, and releases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patrick Lam wrote:
The GLib mmap wrapper just does

#ifndef _O_BINARY
#define _O_BINARY 0
#endif


This doesn't quite get us any further ahead; I'd imagine that some
config-fu would be involved in doing the right thing on a variety of
platforms.


Ops, I thought that O_BINARY is a common, standard thing, but now I see that it's only for CRLF'd platforms.

After a quick research, it seems to me that the value of O_BINARY is platform specific (and even compiler specific), and in my case (InnoTek GCC on OS/2) it's defined to be 0x00020000. However it should be simply skipped for platforms where there is no such thing as text and binary file, so why not define it to be 0 in cases where it's not defined?

Doodle
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux