Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site cithep.UucP Path: utzoo!linus!philabs!cmcl2!seismo!harvard!talcott!panda!genrad!decvax!tektronix!hplabs!sdcrdcf!trwrb!trwrba!escher!cithep!tim From: tim@cithep.UucP (Tim Smith ) Newsgroups: net.unix-wizards Subject: Re: tempnam/mktemp Message-ID: <115@cithep.UucP> Date: Sun, 25-Aug-85 01:02:55 EDT Article-I.D.: cithep.115 Posted: Sun Aug 25 01:02:55 1985 Date-Received: Thu, 29-Aug-85 07:46:31 EDT References: <458@baylor.UUCP> Organization: Caltech HEP, Pasadena, CA Lines: 12 > If tempnam/mktemp does anything more than sprintf(fname, "/tmp/tmp%d%d", > getpid(), cnt++), what it does escapes me. Perhaps someone out there could > tell me how 2 processes can have the same pid? I deem to be missing something. Well, in the above, a proc with pid 10 creating 11 temp files will collide with a proc with pid 101 creating 1 temp file. Perhaps "/tmp/tmp%d.%d" would be better. -- unlk a6 rts Tim Smith ihnp4!{wlbr!callan,cithep}!tim