mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* configure.ac: Actually name the option --disable-finger and not
http. Add option --enable-selinux-support. * logger.c (g10_log_error_f, g10_log_fatal_f, g10_log_info_f) (g10_log_debug_f, print_prefix_f): Removed. * iobuf.c (iobuf_is_pipe_filename): New. (iobuf_get_fd): New.
This commit is contained in:
parent
9a4dc13d5e
commit
161286635c
7 changed files with 45 additions and 72 deletions
22
util/iobuf.c
22
util/iobuf.c
|
@ -1850,6 +1850,28 @@ iobuf_get_filelength( IOBUF a )
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* Return the file descriptor of the underlying file or -1 if it is
|
||||
not available. */
|
||||
int
|
||||
iobuf_get_fd (IOBUF a)
|
||||
{
|
||||
if (a->directfp)
|
||||
return a->directfp? fileno(a->directfp) : -1;
|
||||
|
||||
for ( ; a; a = a->chain )
|
||||
if (!a->chain && a->filter == file_filter)
|
||||
{
|
||||
file_filter_ctx_t *b = a->filter_ov;
|
||||
FILEP_OR_FD fp = b->fp;
|
||||
|
||||
return my_fileno (fp);
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
/****************
|
||||
* Tell the file position, where the next read will take place
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue