From ffb49b72f132d954a3d9fa11e45803c36a62fd25 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 26 Nov 2018 20:06:36 +0100 Subject: 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 --- src/gpg-error.def.in | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gpg-error.def.in') diff --git a/src/gpg-error.def.in b/src/gpg-error.def.in index c2fabb0..9b522ea 100644 --- a/src/gpg-error.def.in +++ b/src/gpg-error.def.in @@ -220,5 +220,6 @@ EXPORTS gpgrt_cmp_version @169 + gpgrt_ftruncate @170 ;; end of file with public symbols for Windows. -- cgit v1.2.3