mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: New functions gnupg_opendir et al.
* common/sysutils.h (struct gnupg_dirent_s): New.
* common/sysutils.c: Include dirent.h.
(struct gnupg_dir_s): New.
(gnupg_opendir, gnupg_readdir, gnupg_closedir): New. Change all
callers of opendir, readdir, and closedir to use these functions.
--
GnuPG-bug-id: 5098
Backported-from-master: 7e22e08e2a
This commit is contained in:
parent
4252cd7b18
commit
5f8123df78
8 changed files with 210 additions and 37 deletions
|
@ -301,6 +301,8 @@ scan_directory (const char *dname, scanctrl_t scanctrl)
|
|||
gpg_error_t err = 0;
|
||||
|
||||
#ifdef HAVE_W32_SYSTEM
|
||||
/* Note that we introduced gnupg_opendir only after we had deployed
|
||||
* this code and thus we don't change it for now. */
|
||||
WIN32_FIND_DATAW fi;
|
||||
HANDLE hd = INVALID_HANDLE_VALUE;
|
||||
char *p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue