TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Andrew Clegg
from: Thomas Mcwilliams
date: 1995-04-23 03:12:00
subject: Unique Filenames

Hello Andrew,
  In a message on 21 April, to Richard Hulme you wrote :

AC> I don't know what compiler you're using, but EMX supports tempnam(), 
AC> tmpnam(), tempfile() and maketemp() which all provide 
AC> different ways of doing this. 

These can be confusing. For new work one should only use tmpnam()
and tmpfile() [note spelling] which are the portable POSIX way of
creating temporary file names. The other functions in the above list
are depreciated and should be avoided for new work.

POSIX is a superset of ANSI C. It takes into account many of the
aspects of how a portable program should interact with the operating
system. Eberhard Mattes the author of EMX has been trying very hard
to make EMX fully POSIX compliant. A good reference for POSIX is the
very reasonably priced O'Reilly & Associates book authored by Donald
Lewine: "POSIX Programmer's Guide", ISBN 0-937175-73-0.

If one follows POSIX guidelines, EMX and OS/2 can be used to develop
programs that are guaranteed portable to many different operating
systems.

Thomas 
...
 * ATP/Linux 1.42 * The young know the rules, the old know the exceptions.

--- Maximus/2 2.02
* Origin: Enlightened Board (703) 370-9528 (1:109/615)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 109/615 370 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.