diff options
author | NIIBE Yutaka <[email protected]> | 2023-06-23 04:05:29 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-06-23 04:05:29 +0000 |
commit | 04d0851ccaaee94526281c0c13fdc70ee3ce7007 (patch) | |
tree | 788b0e51882f0e565f2b29a4b3bd669438e39fe7 /common/sysutils.h | |
parent | common: Add translate_sys2libc_fdstr. (diff) | |
download | gnupg-04d0851ccaaee94526281c0c13fdc70ee3ce7007.tar.gz gnupg-04d0851ccaaee94526281c0c13fdc70ee3ce7007.zip |
common: Add gnupg_sys2libc_fdstr function.
* common/sysutils.c (gnupg_sys2libc_fdstr): New.
(translate_sys2libc_fdstr): Use gnupg_sys2libc_fdstr.
--
GnuPG-bug-id: 6551
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/sysutils.h')
-rw-r--r-- | common/sysutils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/sysutils.h b/common/sysutils.h index 10dbe3e80..2d864a983 100644 --- a/common/sysutils.h +++ b/common/sysutils.h @@ -74,6 +74,8 @@ void gnupg_sleep (unsigned int seconds); void gnupg_usleep (unsigned int usecs); int translate_sys2libc_fd (gnupg_fd_t fd, int for_write); int translate_sys2libc_fd_int (int fd, int for_write); +gpg_error_t gnupg_sys2libc_fdstr (const char *fdstr, int for_write, + gnupg_fd_t *r_hd, int *r_fd); int translate_sys2libc_fdstr (const char *fdstr, int for_write); int check_special_filename (const char *fname, int for_write, int notranslate); FILE *gnupg_tmpfile (void); |