[GAP Forum] GAP4r4p5 and DirectoryTemporary() on Windows 2000

Bill Allombert allomber at math.u-bordeaux.fr
Thu May 19 21:52:56 BST 2005


On Thu, May 19, 2005 at 09:32:58PM +0200, D.V.Pasechnik wrote:
> Dear Forum,
> 
> mk*temp are obsolete BSD functions.
> Linux manpages say explicitly: 
> "Don't use this function, use tmpfile(3) instead. It's bet???ter 
>  defined and more portable."
> 
> Perhaps it's time to move on, and switch to tmpfile ?

The problem is that it is not really possible to implement the
GAP function TmpName() in term of tmpfile(), because tmpfile()
return a FILE *, not a file name (and there is no existing filename
associate to that FILE*).

One solution would be to add a new function TmpStream() and eventually
deprecate TmpName().

Cheers,
Bill.




More information about the Forum mailing list