Home GnuPG
Diffusion GnuPG 5f8123df7856

common: New functions gnupg_opendir et al.

Description

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.

Backported-from-master: 7e22e08e2ab09cd3c2317f5e80e8ee47d46eff4b