1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- The lseek() function return code was not consistently treated as the

then current file position. Fixed.

- Numerous house-keeping changes.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14836 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-02-20 15:46:57 +00:00
parent 410833d2ed
commit 18f1f75479
20 changed files with 139 additions and 120 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: stdio_flushiobwritebuffer.c,v 1.4 2005-02-20 13:19:40 obarthel Exp $
* $Id: stdio_flushiobwritebuffer.c,v 1.5 2005-02-20 15:46:52 obarthel Exp $
*
* :ts=4
*
@ -75,15 +75,15 @@ __flush_iob_write_buffer(struct iob * file)
assert( file->iob_Action != NULL );
if((*file->iob_Action)(file,&fam) != file->iob_BufferWriteBytes)
if((*file->iob_Action)(file,&fam) < 0)
{
SHOWMSG("that didn't work");
result = -1;
SET_FLAG(file->iob_Flags,IOBF_ERROR);
__set_errno(fam.fam_Error);
result = -1;
goto out;
}