1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

added option export

This commit is contained in:
Werner Koch 1998-02-13 20:58:50 +00:00
parent b9fccd69e4
commit f477447d9a
43 changed files with 734 additions and 284 deletions

View file

@ -867,6 +867,11 @@ iobuf_tell( IOBUF a )
}
/****************
* This is a very limited implementation. It simply discards all internal
* buffering and remove all filters but the first one.
*/
int
iobuf_seek( IOBUF a, ulong newpos )
{
@ -885,6 +890,10 @@ iobuf_seek( IOBUF a, ulong newpos )
log_error("can't seek to %lu: %s\n", newpos, strerror(errno) );
return -1;
}
a->d.len = 0; /* discard buffer */
a->d.start = 0;
a->nbytes = 0;
a->nlimit = 0;
a->ntotal = newpos;
/* remove filters, but the last */
while( a->chain )