Commit 76fbb408 authored by Markus Steinborn's avatar Markus Steinborn

imported mkdtemp gfrom gnulib

parent fc0c3bd5
2010-06-02 Markus Steinborn <gnugv_maintainer@yahoo.de>
* m4/* lib/* imported mkdtemp from gnulib.
Note: I ran "sed -i 's/<config.h>/<ac_config.h>/g' lib/*" after the
import.
I imported from revision
of gnulib.
2010-06-02 Markus Steinborn <gnugv_maintainer@yahoo.de>
* src/Ghostview.c, src/process.c, src/ps.c: Use safe-dir from variable
......
......@@ -9,7 +9,7 @@
# the same distribution terms as the rest of that program.
#
# Generated by gnulib-tool.
# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --no-libtool --macro-prefix=gl canonicalize-lgpl getopt inttypes mkstemp
# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --no-libtool --macro-prefix=gl canonicalize-lgpl getopt inttypes mkdtemp mkstemp
AUTOMAKE_OPTIONS = 1.5 gnits
......@@ -236,6 +236,15 @@ EXTRA_DIST += malloca.h malloca.valgrind
## end gnulib module malloca
## begin gnulib module mkdtemp
EXTRA_DIST += mkdtemp.c
EXTRA_libgnu_a_SOURCES += mkdtemp.c
## end gnulib module mkdtemp
## begin gnulib module mkstemp
......
/* Copyright (C) 1999, 2001-2003, 2006-2007, 2009-2010 Free Software
Foundation, Inc.
This file is part of the GNU C Library.
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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */
/* Extracted from misc/mkdtemp.c. */
#include <ac_config.h>
/* Specification. */
#include <stdlib.h>
#include "tempname.h"
/* Generate a unique temporary directory from XTEMPLATE.
The last six characters of XTEMPLATE must be "XXXXXX";
they are replaced with a string that makes the filename unique.
The directory is created, mode 700, and its name is returned.
(This function comes from OpenBSD.) */
char *
mkdtemp (char *xtemplate)
{
if (gen_tempname (xtemplate, 0, 0, GT_DIR))
return NULL;
else
return xtemplate;
}
......@@ -15,7 +15,7 @@
# Specification in the form of a command-line invocation:
# gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --no-libtool --macro-prefix=gl canonicalize-lgpl getopt inttypes mkstemp
# gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --no-libtool --macro-prefix=gl canonicalize-lgpl getopt inttypes mkdtemp mkstemp
# Specification in the form of a few gnulib-tool.m4 macro invocations:
gl_LOCAL_DIR([])
......@@ -23,6 +23,7 @@ gl_MODULES([
canonicalize-lgpl
getopt
inttypes
mkdtemp
mkstemp
])
gl_AVOID([])
......
......@@ -41,6 +41,7 @@ AC_DEFUN([gl_EARLY],
# Code from module inttypes:
# Code from module lstat:
# Code from module malloca:
# Code from module mkdtemp:
# Code from module mkstemp:
# Code from module multiarch:
# Code from module pathmax:
......@@ -107,6 +108,9 @@ AC_DEFUN([gl_INIT],
gl_SYS_STAT_MODULE_INDICATOR([lstat])
# Code from module malloca:
gl_MALLOCA
# Code from module mkdtemp:
gt_FUNC_MKDTEMP
gl_STDLIB_MODULE_INDICATOR([mkdtemp])
# Code from module mkstemp:
gl_FUNC_MKSTEMP
gl_STDLIB_MODULE_INDICATOR([mkstemp])
......@@ -300,6 +304,7 @@ AC_DEFUN([gl_FILE_LIST], [
lib/malloca.c
lib/malloca.h
lib/malloca.valgrind
lib/mkdtemp.c
lib/mkstemp.c
lib/pathmax.h
lib/readlink.c
......@@ -332,6 +337,7 @@ AC_DEFUN([gl_FILE_LIST], [
m4/longlong.m4
m4/lstat.m4
m4/malloca.m4
m4/mkdtemp.m4
m4/mkstemp.m4
m4/multiarch.m4
m4/onceonly.m4
......
# mkdtemp.m4 serial 6
dnl Copyright (C) 2001-2003, 2006-2007, 2009-2010 Free Software Foundation,
dnl 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([gt_FUNC_MKDTEMP],
[
AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
AC_REPLACE_FUNCS([mkdtemp])
if test $ac_cv_func_mkdtemp = no; then
HAVE_MKDTEMP=0
gl_PREREQ_MKDTEMP
fi
])
# Prerequisites of lib/mkdtemp.c
AC_DEFUN([gl_PREREQ_MKDTEMP],
[:
])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment