Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-01-02
23:46 • Closed ticket [741967ffff]: UNICOS doesn't have mkstemp() plus 7 other c... artifact: 82c8af81c2 user: dkf
2008-12-29
07:24 • Ticket [741967ffff]: 2 changes artifact: 9e5bf483ce user: dkf
2003-06-05
05:36 • Ticket [741967ffff]: 1 change artifact: cab00b5aac user: jenglish
05:35 • Ticket [741967ffff]: 4 changes artifact: caaf395c0c user: jenglish
2003-05-27
22:43 • Ticket [741967ffff]: 5 changes artifact: 46cda26682 user: vincentdarley
2003-05-23
15:43 • Ticket [741967ffff]: 3 changes artifact: 8af207fa0b user: dkf
2003-05-22
20:26 • New ticket [741967ffff]. artifact: 750890176d user: wendypalm

UNICOS doesn't have mkstemp()

Closed / Fixed741967ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 18 years ago
Descriptionplain2003-05-22 20:26:13
The decision to change the tmpnam() calls to mkstemp()
in unix/tclUnixPipe.c has had repercussions for our OS.

UNICOS (and UNICOS/mk) do not have the mkstemp()
function and due to their current maintenance state,
probably never will.
(fyi our future OSs do have it, but that's only for the
new architectures).

is it possible to either put in a configuration test in
to determine whether mkstemp() exists and an #ifdef and
add the tmpnam() code back in? 

i don't think UNICOS is the only OS that doesn't have
this function.

i'm a new user to this forum, so i hope i did this
correctly.  i'd be happy to write the patch(s), but
even though i searched the archives, i thought maybe a
solaris person may have already submitted something.

wendy palm
Cray Open Software Development, Cray Inc.
dkf Ticket [741967ffff]: 3 changes [History diff]2003-05-23 15:43:35
vincentdarleyplain2003-05-27 22:43:21
Logged In: YES 
user_id=32170

Please do submit a patch which resolves this problem 
on your platform.  I re-assigning the bug to Jeff who 
has more experience with x-platform unix issues.
jenglishplain2003-06-05 05:35:26
Logged In: YES 
user_id=68433

A better solution would be to provide an implementation of
mkstemp in compat/  (it's not that hard to implement.)

The tmpnam() routine is Broken As Designed and should never
be used.  Plus, it's best to avoid introducing too many
#ifdef blocks.
jenglish Ticket [741967ffff]: 1 change [History diff]2003-06-05 05:36:16
dkf Ticket [741967ffff]: 2 changes [History diff]2008-12-29 07:24:40
dkfplain2009-01-02 23:46:30
Fixed for 8.6 release by writing our own mkstemp() for compat/
Log in (anonymous is fine) to add a comment.