bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stdio-safer and tmpfile


From: Eric Blake
Subject: Re: stdio-safer and tmpfile
Date: Wed, 26 Jul 2006 22:32:46 -0600
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 7/23/2006 7:23 AM:
> 
> m4/ChangeLog:
> 2006-07-23  Eric Blake  <address@hidden>
> 
>       * unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
> 
> 2006-07-23  Eric Blake  <address@hidden>
> 
>       * pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
>       avoid compilation warning on mingw.

To get a clean compile of m4 on mingw, I checked this in, as well as the
following:

2006-07-26  Eric Blake  <address@hidden>

        * mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
        like mingw that lack mkstemp.

$ cvs diff lib/mkstemp-safer.c
Index: lib/mkstemp-safer.c
===================================================================
RCS file: /sources/gnulib/gnulib/lib/mkstemp-safer.c,v
retrieving revision 1.2
diff -u -p -r1.2 mkstemp-safer.c
- --- lib/mkstemp-safer.c 14 Nov 2005 07:50:32 -0000      1.2
+++ lib/mkstemp-safer.c 27 Jul 2006 04:30:49 -0000
@@ -1,6 +1,6 @@
 /* Invoke mkstemp, but avoid some glitches.

- -   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006 Free Software Foundation, Inc.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -27,6 +27,10 @@
 #include <stdlib.h>
 #include "unistd-safer.h"

+#if ! HAVE_MKSTEMP
+int mkstemp (char *)
+#endif
+
 /* Like mkstemp, but do not return STDIN_FILENO, STDOUT_FILENO, or
    STDERR_FILENO.  */


- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEyEHu84KuGfSFAYARAqtZAKDQ+MnNiRHGWDr39dj8smiLA2MTiwCeNK/I
e3YZFWq1Ay3iqaxSUXMvcvs=
=zFfI
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]