home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1782 < prev    next >
Encoding:
Internet Message Format  |  1990-12-28  |  858 b 

  1. From: peter@ficc.ferranti.com (Peter da Silva)
  2. Newsgroups: alt.sources
  3. Subject: Re: Elvis1.3, 3 fixes
  4. Message-ID: <B5P5504@xds13.ferranti.com>
  5. Date: 5 Sep 90 18:14:21 GMT
  6.  
  7. In article <1358@tnosoes.izf.tno.nl> joep@tnosoes.izf.tno.nl (Joep Mathijssen) writes:
  8. > BTW: it's not possible to run elvis twice, because a fixed temporary
  9. > file is used! 
  10.  
  11. It's not possible to run it twice in the same directory. You can
  12. always go to another directory. The temporary file naming code in
  13. elvis is perhaps needlessly obscure.
  14.  
  15. This is an even bigger problem in AmigaOS because the current directory
  16. isn't named ".". I build an empty stat structure with st_ino set to my
  17. pid (actually, FindTask(0)) and st_dev set to -1. This is unique to the
  18. program and guaranteed not to collide with anyone else.
  19. -- 
  20. Peter da Silva.   `-_-'
  21. +1 713 274 5180.   'U`
  22. peter@ferranti.com
  23.