> Date: Mon, 27 Feb 2012 10:41:15 -0800 > From: Alan Coopersmith <[email protected]> > > On 02/27/12 08:35 AM, Adam Jackson wrote:
> > Well, almost all of them. zlib doesn't support "e" in the mode > > string in gzopen() though it will silently accept and ignore it, > > and Solaris appears not to support "e" in the mode string at all. > > Right - I filed an enhancement request for that at one point but it > hasn't been added yet, so for now, on Solaris we have to do > fd = open(..., O_CLOEXEC); > fp = fdopen(fd, ...); That is of course a much better suggestion. And it is possible to use the same trick with gzdopen(3) to work around the fact that gzopen() doesn't suppert "e", even on Linux systems. _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
