View | Details | Raw Unified | Return to bug 18930
Collapse All | Expand All

(-)rawio.h (-1 / +1 lines)
Lines 28-34 Link Here
28
#endif
28
#endif
29
#endif /*KR_HEADERS*/
29
#endif /*KR_HEADERS*/
30
30
31
extern char *mktemp(char*);
31
extern char *mkstemp(char*);
32
32
33
#ifdef __cplusplus
33
#ifdef __cplusplus
34
	}
34
	}
(-)open.c (-3 / +3 lines)
Lines 15-21 Link Here
15
#ifdef KR_headers
15
#ifdef KR_headers
16
extern char *malloc();
16
extern char *malloc();
17
#ifdef NON_ANSI_STDIO
17
#ifdef NON_ANSI_STDIO
18
extern char *mktemp();
18
extern char *mkstemp();
19
#endif
19
#endif
20
extern integer f_clos();
20
extern integer f_clos();
21
#else
21
#else
Lines 210-216 Link Here
210
	 case 'S':
210
	 case 'S':
211
		b->uscrtch=1;
211
		b->uscrtch=1;
212
#ifdef HAVE_TEMPNAM		/* Allow use of TMPDIR preferentially. */
212
#ifdef HAVE_TEMPNAM		/* Allow use of TMPDIR preferentially. */
213
		s = tempnam (0, buf);
213
		s = mkstemp (buf);
214
		if (strlen (s) >= sizeof (buf))
214
		if (strlen (s) >= sizeof (buf))
215
		  err (a->oerr, 132, "open");
215
		  err (a->oerr, 132, "open");
216
		(void) strcpy (buf, s);
216
		(void) strcpy (buf, s);
Lines 220-226 Link Here
220
		tmpnam(buf);
220
		tmpnam(buf);
221
#else
221
#else
222
		(void) strcpy(buf,"tmp.FXXXXXX");
222
		(void) strcpy(buf,"tmp.FXXXXXX");
223
		(void) mktemp(buf);
223
		(void) mkstemp(buf);
224
#endif
224
#endif
225
#endif /* ! defined (HAVE_TEMPNAM) */
225
#endif /* ! defined (HAVE_TEMPNAM) */
226
		goto replace;
226
		goto replace;

Return to bug 18930