aboutsummaryrefslogtreecommitdiffstats
path: root/common/sysutils.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-11-11 14:14:31 +0000
committerWerner Koch <[email protected]>2014-11-11 14:14:31 +0000
commitb8cdfac353ad96d4ef025c066c16dbde34805661 (patch)
treef26e4c6589c0dfc0bb8ff25b645262eb05d24677 /common/sysutils.h
parentRemove use of gnulib (part 1) (diff)
downloadgnupg-b8cdfac353ad96d4ef025c066c16dbde34805661.tar.gz
gnupg-b8cdfac353ad96d4ef025c066c16dbde34805661.zip
Remove use of gnulib (part 2)
* configure.ac (strpbrk): Add to AC_CHECK_FUNCS. (gl_EARLY): Remove. * common/stringhelp.c (strpbrk) [!HAVE_STRPBRK]: New. * common/sysutils.c (gnupg_mkdtemp): New. Based on code from glibc-2.6. (gnupg_setenv): Rewrite. (gnupg_unsetenv): Rewrite. * g10/exec.c: Include sysutils.h and replace mkdtemp by gnupg_mkdtemp. * g13/be-encfs.c: Ditto. * g13/mount.c: Ditto. * tools/symcryptrun.c (confucius_mktmpdir): Ditto. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/sysutils.h')
-rw-r--r--common/sysutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/sysutils.h b/common/sysutils.h
index d139665ac..95276dea6 100644
--- a/common/sysutils.h
+++ b/common/sysutils.h
@@ -61,6 +61,7 @@ void gnupg_reopen_std (const char *pgmname);
void gnupg_allow_set_foregound_window (pid_t pid);
int gnupg_remove (const char *fname);
int gnupg_mkdir (const char *name, const char *modestr);
+char *gnupg_mkdtemp (char *template);
int gnupg_setenv (const char *name, const char *value, int overwrite);
int gnupg_unsetenv (const char *name);
char *gnupg_getcwd (void);