With Bison I wanted fopen_safer but not tmpfile_safer (I think tmpfile is not that safe due to signals and whatnot), so I split the fopen-safer module into two, as follows:
2006-07-24 Paul Eggert <[EMAIL PROTECTED]> * MODULES.html.sh (File stream based Input/Output): Add fopen-safer, tmpfile-safer; remove stdio-safer. * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros. (gl_STDIO_SAFER): Remove. * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer. * modules/fopen-safer, modules/tmpfile-safer: New files. * modules/stdio-safer: Remove. --- MODULES.html.sh 24 Jul 2006 16:45:17 -0000 1.132 +++ MODULES.html.sh 25 Jul 2006 06:19:43 -0000 @@ -1932,13 +1932,14 @@ func_all_modules () func_echo "$element" func_begin_table - func_module fpending - func_module closeout func_module close-stream - func_module stdio-safer - func_module stdlib-safer + func_module closeout + func_module fopen-safer + func_module fpending func_module getpass func_module getpass-gnu + func_module stdlib-safer + func_module tmpfile-safer func_end_table element="Users and groups" --- m4/stdio-safer.m4 23 Jul 2006 12:58:40 -0000 1.7 +++ m4/stdio-safer.m4 25 Jul 2006 06:19:43 -0000 @@ -1,12 +1,17 @@ -#serial 6 +#serial 7 dnl Copyright (C) 2002, 2005, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. -AC_DEFUN([gl_STDIO_SAFER], +AC_DEFUN([gl_FOPEN_SAFER], [ - AC_LIBSOURCES([fopen-safer.c, tmpfile-safer.c, stdio-safer.h, stdio--.h]) + AC_LIBSOURCES([fopen-safer.c, stdio-safer.h, stdio--.h]) AC_LIBOBJ([fopen-safer]) +]) + +AC_DEFUN([gl_TMPFILE_SAFER], +[ + AC_LIBSOURCES([tmpfile-safer.c, stdio-safer.h, stdio--.h]) AC_LIBOBJ([tmpfile-safer]) ]) --- modules/getusershell 6 Jul 2006 20:49:09 -0000 1.7 +++ modules/getusershell 25 Jul 2006 06:19:43 -0000 @@ -6,7 +6,7 @@ lib/getusershell.c m4/getusershell.m4 Depends-on: -stdio-safer +fopen-safer xalloc configure.ac: --- /dev/null 2005-09-24 22:00:15.000000000 -0700 +++ modules/fopen-safer 2006-07-24 23:13:17.000000000 -0700 @@ -0,0 +1,25 @@ +Description: +fopen function that avoids clobbering std{in,out,err}. + +Files: +lib/stdio--.h +lib/stdio-safer.h +lib/fopen-safer.c +m4/stdio-safer.m4 + +Depends-on: +unistd-safer + +configure.ac: +gl_FOPEN_SAFER + +Makefile.am: + +Include: +"stdio-safer.h" + +License: +GPL + +Maintainer: +Paul Eggert, Jim Meyering --- /dev/null 2005-09-24 22:00:15.000000000 -0700 +++ modules/tmpfile-safer 2006-07-24 22:29:30.000000000 -0700 @@ -0,0 +1,26 @@ +Description: +tmpfile function that avoids clobbering std{in,out,err}. + +Files: +lib/stdio--.h +lib/stdio-safer.h +lib/tmpfile-safer.c +m4/stdio-safer.m4 + +Depends-on: +binary-io +unistd-safer + +configure.ac: +gl_TMPFILE_SAFER + +Makefile.am: + +Include: +"stdio-safer.h" + +License: +GPL + +Maintainer: +Paul Eggert, Jim Meyering