Re: Latest set of Win32 patches
Tim Lesher <[email protected]>
| Newsgroups | gmane.comp.audio.zinf.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Sep 20, 2003 at 04:05:58PM +0100, David Vrabel wrote: > From the mkstemp(3) man page: > > "Don't use this function, use tmpfile(3) instead. It is better > defined and more portable." Hmm... doesn't say that in my set of man pages. Anyway, in general I _would_ rather use tmpfile than mkstemp for exactly this reason--tmpfile is defined on Win32. (In fact, I think I changed at least one mkstemp to tmpfile elsewhere in zinf.) The problem is that where mkstemp is used in vorbis, the file is closed and then used later--not possible with tmpfile, because tmpfile deletes the file on close. The code can probably be rewritten not to need this behavior; I'll keep that in mind. -- Tim Lesher <[email protected]> http://www.lesher.ws ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf