mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
estream: New function es_fclose_snatch.
* common/estream.c (cookie_ioctl_function_t): New type. (es_fclose_snatch): New function. (COOKIE_IOCTL_SNATCH_BUFFER): New constant. (struct estream_internal): Add field FUNC_IOCTL. (es_initialize): Clear FUNC_IOCTL. (es_func_mem_ioctl): New function. (es_fopenmem, es_fopenmem_init): Init FUNC_IOCTL.
This commit is contained in:
parent
792e137ec7
commit
7737a2c269
2 changed files with 109 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/* estream.h - Extended stream I/O Library
|
||||
* Copyright (C) 2004, 2005, 2006, 2007, 2010 g10 Code GmbH
|
||||
* Copyright (C) 2004, 2005, 2006, 2007, 2010, 2011 g10 Code GmbH
|
||||
*
|
||||
* This file is part of Libestream.
|
||||
*
|
||||
|
@ -88,6 +88,7 @@
|
|||
#define es_freopen _ESTREAM_PREFIX(es_freopen)
|
||||
#define es_fopencookie _ESTREAM_PREFIX(es_fopencookie)
|
||||
#define es_fclose _ESTREAM_PREFIX(es_fclose)
|
||||
#define es_fclose_snatch _ESTREAM_PREFIX(es_fclose_snatch)
|
||||
#define es_onclose _ESTREAM_PREFIX(es_onclose)
|
||||
#define es_fileno _ESTREAM_PREFIX(es_fileno)
|
||||
#define es_fileno_unlocked _ESTREAM_PREFIX(es_fileno_unlocked)
|
||||
|
@ -285,6 +286,7 @@ estream_t es_fopencookie (void *ES__RESTRICT cookie,
|
|||
const char *ES__RESTRICT mode,
|
||||
es_cookie_io_functions_t functions);
|
||||
int es_fclose (estream_t stream);
|
||||
int es_fclose_snatch (estream_t stream, void **r_buffer, size_t *r_buflen);
|
||||
int es_onclose (estream_t stream, int mode,
|
||||
void (*fnc) (estream_t, void*), void *fnc_value);
|
||||
int es_fileno (estream_t stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue