www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/17/13:25:48

To: Helmut Muelner <hmuelner AT iicm DOT tu-graz DOT ac DOT at>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Definitive GNU fileutils ports
Date: Mon, 17 Oct 94 15:09:42 +0200
From: Eli Zaretskii <ucf-cs!is.elta.co.il!eliz AT alfred DOT oau DOT org>
Status: RO

> One nice example is "sort" from textutils-1.9: The filenames it uses
> for temporary files consists of "sort" + 5 digits from getpid() + 5
> digits for a serial number all generating the same filename "sort0000"
> in MSDOG.

Yep.  This is a fairly common paradigm of generating a temporary
file name in GNU utilities.  Be sure to use tmpnam() from DJGPP
library if you don't want such ``surprises''.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019