From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: PATCH: 4.1.0: mkstemp
Date: Sat, 16 Jun 2001 00:14:31 +0100 [thread overview]
Message-ID: <20010615231436.CD4541428B@pwstephenson.fsnet.co.uk> (raw)
gcc has taken to complaining about using mktemp() instead of mkstemp().
Index: zshconfig.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/zshconfig.ac,v
retrieving revision 1.5
diff -u -r1.5 zshconfig.ac
--- zshconfig.ac 2001/06/08 18:34:53 1.5
+++ zshconfig.ac 2001/06/15 22:10:13
@@ -915,7 +915,7 @@
readlink faccessx fchdir ftruncate \
fstat lstat lchown \
fseeko ftello \
- mkfifo _mktemp \
+ mkfifo _mktemp mkstemp \
waitpid wait3 \
sigaction sigblock sighold sigrelse sigsetmask sigprocmask \
killpg setpgid setpgrp tcsetpgrp tcgetattr nice \
Index: Src/utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
retrieving revision 1.33
diff -u -r1.33 utils.c
--- Src/utils.c 2001/06/09 18:06:32 1.33
+++ Src/utils.c 2001/06/15 22:10:21
@@ -1101,11 +1101,14 @@
if (!(s = getsparam("TMPPREFIX")))
s = DEFAULT_TMPPREFIX;
+#ifdef HAVE_MKSTEMP
+ ret = ((char *) mkstemp(dyncat(unmeta(s), "XXXXXX")));
#ifdef HAVE__MKTEMP
/* Zsh uses mktemp() safely, so silence the warnings */
ret = ((char *) _mktemp(dyncat(unmeta(s), "XXXXXX")));
#else
ret = ((char *) mktemp(dyncat(unmeta(s), "XXXXXX")));
+#endif
#endif
unqueue_signals();
--
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk
next reply other threads:[~2001-06-15 22:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-15 23:14 Peter Stephenson [this message]
2001-06-15 23:56 ` Wayne Davison
2001-06-16 3:07 ` Bart Schaefer
2001-06-16 6:24 ` Wayne Davison
2001-06-16 6:48 ` Geoff Wing
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010615231436.CD4541428B@pwstephenson.fsnet.co.uk \
--to=pws@pwstephenson.fsnet.co.uk \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).