fix lseek() wrapper error handling
This commit is contained in:
parent
ed6b26fcb1
commit
40d679f299
@ -35,6 +35,8 @@
|
|||||||
*
|
*
|
||||||
* - filename encoding
|
* - filename encoding
|
||||||
* - need printf()-style output? eg. for CSV write ... see dbuf.c
|
* - need printf()-style output? eg. for CSV write ... see dbuf.c
|
||||||
|
* - make vfuncs just call write() and seek() (for tiff), all other processing
|
||||||
|
* in the invocation ... cf. streami
|
||||||
* - test we can really change all behaviour in the subclass ... add callbacks
|
* - test we can really change all behaviour in the subclass ... add callbacks
|
||||||
* as well to make it simpler for language bindings
|
* as well to make it simpler for language bindings
|
||||||
*/
|
*/
|
||||||
|
@ -1054,7 +1054,8 @@ vips__seek( int fd, gint64 pos, int whence )
|
|||||||
}
|
}
|
||||||
#else /*!OS_WIN32*/
|
#else /*!OS_WIN32*/
|
||||||
if( (new_pos = lseek( fd, pos, whence )) == (off_t) -1 ) {
|
if( (new_pos = lseek( fd, pos, whence )) == (off_t) -1 ) {
|
||||||
vips_error_system( "vips__seek", "%s", _( "unable to seek" ) );
|
vips_error_system( errno, "vips__seek",
|
||||||
|
"%s", _( "unable to seek" ) );
|
||||||
return( -1 );
|
return( -1 );
|
||||||
}
|
}
|
||||||
#endif /*OS_WIN32*/
|
#endif /*OS_WIN32*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user