[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
stdlib-safer module
From: |
Eric Blake |
Subject: |
stdlib-safer module |
Date: |
Fri, 21 Jul 2006 07:00:11 -0600 |
User-agent: |
Thunderbird 1.5.0.4 (Windows/20060516) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I assume that Paul forgot these files when porting from coreutils, so I am
checking this in (as I found a bug in m4 that would be solved by using
mkstemp_safer).
lib/ChangeLog:
2006-07-21 Eric Blake <address@hidden>
* stdlib-safer.h: New file from coreutils, required by
stdlib--.h.
ChangeLog:
2006-07-21 Eric Blake <address@hidden>
* modules/stdlib-safer: New file.
* MODULES.html.sh (File stream based Input/Output): Add
stdlib-safer.
- --
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
iD8DBQFEwM/b84KuGfSFAYARAtMdAJwNJO43dGZWoxKI1QydRxlayzLLIwCePv3H
BK/6Y3x6Tu+yCjgv0l5gfuc=
=hiIe
-----END PGP SIGNATURE-----
Index: lib/stdlib-safer.h
===================================================================
RCS file: lib/stdlib-safer.h
diff -N lib/stdlib-safer.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lib/stdlib-safer.h 21 Jul 2006 12:53:38 -0000
@@ -0,0 +1,21 @@
+/* Invoke stdlib.h functions, but avoid some glitches.
+
+ Copyright (C) 2005 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
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+
+/* Written by Paul Eggert. */
+
+int mkstemp_safer (char *);
Index: modules/stdlib-safer
===================================================================
RCS file: modules/stdlib-safer
diff -N modules/stdlib-safer
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ modules/stdlib-safer 21 Jul 2006 12:53:38 -0000
@@ -0,0 +1,26 @@
+Description:
+File stream functions that avoid clobbering std{in,out,err}.
+
+Files:
+lib/stdlib--.h
+lib/stdlib-safer.h
+lib/mkstemp-safer.c
+m4/stdlib-safer.m4
+
+Depends-on:
+mkstemp
+unistd-safer
+
+configure.ac:
+gl_STDLIB_SAFER
+
+Makefile.am:
+
+Include:
+"stdlib-safer.h"
+
+License:
+GPL
+
+Maintainer:
+Paul Eggert, Jim Meyering
Index: MODULES.html.sh
===================================================================
RCS file: /sources/gnulib/gnulib/MODULES.html.sh,v
retrieving revision 1.127
diff -u -p -r1.127 MODULES.html.sh
--- MODULES.html.sh 20 Jul 2006 17:23:06 -0000 1.127
+++ MODULES.html.sh 21 Jul 2006 12:53:38 -0000
@@ -1933,6 +1933,7 @@ func_all_modules ()
func_module fpending
func_module closeout
func_module stdio-safer
+ func_module stdlib-safer
func_module getpass
func_module getpass-gnu
func_end_table
@@ -2092,7 +2093,7 @@ func_all_modules ()
func_end_table
element="Support for building documentation"
- func_section_wrap build_lib
+ func_section_wrap build_doc
func_wrap H2
func_echo "$element"
- stdlib-safer module,
Eric Blake <=