Bruno Haible wrote: > Jim Meyering wrote: >> > Do we want a tmpfile-gnu module that guarantees that tmpfile() is >> > not constrained by silly platform limits, and does not put garbage >> > on stderr on failure to create a temporary file? >> >> That sounds worthwhile. >> No one wants their daemon or library code to spew diagnostics to stderr. > > That is an argument for putting the replacement or workaround into the > module 'tmpfile'. Recall that we create a module 'foo-gnu' if _some_ > people want the POSIX behaviour and _some_ people want the improved/GNU > behaviour. If everyone wants to improved/GNU behaviour, put it into 'foo'.
Good point. > Also, do you know any platforms that actually do produce diagnostics on > stderr? doc/posix-functions/tmpfile.texi does not mention any. No, but I haven't looked, either.