diff options
author | Werner Koch <wk@gnupg.org> | 2018-11-26 20:06:36 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2018-11-26 20:09:53 +0100 |
commit | ffb49b72f132d954a3d9fa11e45803c36a62fd25 (patch) | |
tree | ef464194cfdc5392af615079ed010a1c1d0efc75 /src/visibility.h | |
parent | a5d4a4b32b11814d673241d62624ecec1d577571 (diff) | |
download | libgpg-error-ffb49b72f132d954a3d9fa11e45803c36a62fd25.tar.gz |
core: Add a limited version of gpgrt_ftruncate.
* src/gpg-error.h.in (gpgrt_ftruncate, es_ftruncate): New.
* src/gpg-error.def.in, src/gpg-error.vers: Add gpgrt_ftruncate.
* src/visibility.c (gpgrt_ftruncate): new.
* src/gpgrt-int.h (COOKIE_IOCTL_TRUNCATE): New.
* src/estream.c (func_mem_ioctl): Support new internal IOCTL.
(_gpgrt_ftruncate): New.
--
Right now the ftruncate works only on memory streams. Can easily be
added to other stream times.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/visibility.h')
-rw-r--r-- | src/visibility.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/visibility.h b/src/visibility.h index d6933df..46383c7 100644 --- a/src/visibility.h +++ b/src/visibility.h @@ -102,6 +102,7 @@ MARK_VISIBLE (gpgrt_fseeko) MARK_VISIBLE (gpgrt_ftell) MARK_VISIBLE (gpgrt_ftello) MARK_VISIBLE (gpgrt_rewind) +MARK_VISIBLE (gpgrt_ftruncate) MARK_VISIBLE (gpgrt_fgetc) MARK_VISIBLE (_gpgrt_getc_underflow) MARK_VISIBLE (gpgrt_fputc) @@ -276,6 +277,7 @@ MARK_VISIBLE (gpgrt_cmp_version); #define gpgrt_ftell _gpgrt_USE_UNDERSCORED_FUNCTION #define gpgrt_ftello _gpgrt_USE_UNDERSCORED_FUNCTION #define gpgrt_rewind _gpgrt_USE_UNDERSCORED_FUNCTION +#define gpgrt_ftruncate _gpgrt_USE_UNDERSCORED_FUNCTION #define gpgrt_fgetc _gpgrt_USE_UNDERSCORED_FUNCTION #define _gpgrt_getc_underflow _gpgrt_USE_DBLUNDERSCO_FUNCTION #define gpgrt_fputc _gpgrt_USE_UNDERSCORED_FUNCTION |