diff options
author | Werner Koch <wk@gnupg.org> | 2020-10-20 14:08:35 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2020-10-20 14:08:35 +0200 |
commit | 4dcef0e17836e8725c31a3b76f2bf7144345c808 (patch) | |
tree | e75dc82afa98ea964ee65fde05608a6148214ffe /common/sysutils.h | |
parent | w32: Allow Unicode filenames for dotlock (diff) | |
download | gnupg2-4dcef0e17836e8725c31a3b76f2bf7144345c808.tar.xz gnupg2-4dcef0e17836e8725c31a3b76f2bf7144345c808.zip |
Replace most calls to open by a new wrapper.
* common/sysutils.c (any8bitchar) [W32]: New.
(gnupg_open): New. Replace most calls to open by this.
* common/iobuf.c (any8bitchar) [W32]: New.
(direct_open) [W32]: Use CreateFileW if needed.
--
This is yet another step for full Unicode support on Windows.
GnuPG-bug-id: 5098
Diffstat (limited to 'common/sysutils.h')
-rw-r--r-- | common/sysutils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/sysutils.h b/common/sysutils.h index 12b45e47c..d088fe29f 100644 --- a/common/sysutils.h +++ b/common/sysutils.h @@ -74,6 +74,7 @@ int gnupg_setenv (const char *name, const char *value, int overwrite); int gnupg_unsetenv (const char *name); char *gnupg_getcwd (void); gpg_err_code_t gnupg_access (const char *name, int mode); +int gnupg_open (const char *name, int flags, unsigned int mode); gpg_error_t gnupg_chuid (const char *user, int silent); char *gnupg_get_socket_name (int fd); int gnupg_fd_valid (int fd); |