FreeBSD Bugzilla – Attachment 9200 Details for
Bug 18930
Fix mktemp() problem with libg2c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 912 bytes, created by
gjohnson
on 2000-06-01 04:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
gjohnson
Created:
2000-06-01 04:20:00 UTC
Size:
912 bytes
patch
obsolete
>--- rawio.h.orig Wed May 31 18:05:12 2000 >+++ rawio.h Wed May 31 18:05:22 2000 >@@ -28,7 +28,7 @@ > #endif > #endif /*KR_HEADERS*/ > >-extern char *mktemp(char*); >+extern char *mkstemp(char*); > > #ifdef __cplusplus > } >--- open.c.orig Wed May 31 18:05:30 2000 >+++ open.c Wed May 31 18:05:59 2000 >@@ -15,7 +15,7 @@ > #ifdef KR_headers > extern char *malloc(); > #ifdef NON_ANSI_STDIO >-extern char *mktemp(); >+extern char *mkstemp(); > #endif > extern integer f_clos(); > #else >@@ -210,7 +210,7 @@ > case 'S': > b->uscrtch=1; > #ifdef HAVE_TEMPNAM /* Allow use of TMPDIR preferentially. */ >- s = tempnam (0, buf); >+ s = mkstemp (buf); > if (strlen (s) >= sizeof (buf)) > err (a->oerr, 132, "open"); > (void) strcpy (buf, s); >@@ -220,7 +220,7 @@ > tmpnam(buf); > #else > (void) strcpy(buf,"tmp.FXXXXXX"); >- (void) mktemp(buf); >+ (void) mkstemp(buf); > #endif > #endif /* ! defined (HAVE_TEMPNAM) */ > goto replace;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18930
: 9200