diff options
author | Werner Koch <wk@gnupg.org> | 2017-11-28 15:39:56 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-11-28 15:54:59 +0100 |
commit | 4a2538e69dd35377bce0fb584f72322c69a111b3 (patch) | |
tree | 97123f5455bbde9057cf06aab2d95bd1e573ce1e /src/gpg-error.def.in | |
parent | 241e9a73891fcd12f124aab1a299c2cf4f8eebc4 (diff) | |
download | libgpg-error-4a2538e69dd35377bce0fb584f72322c69a111b3.tar.gz |
core: New API functions gpgrt_mkdir, gpgrt_chdir, gpgrt_getcwd.
* src/gpg-error.h.in (gpgrt_mkdir, gpgrt_chdir, gpgrt_getcwd): New.
* src/visibility.c, src/visibility.h: Add wrappers.
* src/gpg-error.vers, src/gpg-error.def.in: Add them.
* src/sysutils.c (modestr_to_mode): New.
(_gpgrt_mkdir, _gpgrt_chdir, _gpgrt_getcwd): New.
* m4/gnupg-misc.m4: New.
* m4/Makefile.am (EXTRA_DIST): Add new M4 file.
* configure.ac: Call new GNUPG_FUNC_MKDIR_TAKES_ONE_ARG.
(AC_CHECK_FUNCS): Add stat.
--
The code has been taken from GnuPG. _gpgrt_mkdir was originally
written by me as gnupg_mkdir and here relicensed to LGPLv2.1+.
_gpgrt_getcwd was originally written by in 2007 and also here
relicensed to LGPLv2.1. The new M4 macro was also written by me for
use in in GnuPG; it has been taken from GnUPG's acinclude.m4, moved to
its own file here, and relicensed to FSFULLR.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/gpg-error.def.in')
-rw-r--r-- | src/gpg-error.def.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gpg-error.def.in b/src/gpg-error.def.in index 6c40571..64c75dc 100644 --- a/src/gpg-error.def.in +++ b/src/gpg-error.def.in @@ -189,11 +189,13 @@ EXPORTS gpgrt_strdup @144 gpgrt_strconcat @145 - gpgrt_getenv @146 - gpgrt_setenv @147 + gpgrt_w32_reg_query_string @146 + + gpgrt_getenv @147 + gpgrt_setenv @148 + gpgrt_mkdir @149 + gpgrt_chdir @150 + gpgrt_getcwd @151 -#ifdef HAVE_W32_SYSTEM - gpgrt_w32_reg_query_string @148 -#endif ;; end of file with public symbols for Windows. |