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

- Changed how error conditions raised by dos.library file I/O functions

are detected.

- Modified function return values of 0 and -1 to use macros like OK,
  ERROR/SEEK_ERROR instead, to better convey what the purpose of these
  values is.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14922 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-04-24 08:46:37 +00:00
parent a50aba0b64
commit 1d611fefbe
134 changed files with 377 additions and 376 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: fcntl_write.c,v 1.7 2005-02-28 10:07:30 obarthel Exp $
* $Id: fcntl_write.c,v 1.8 2005-04-24 08:46:37 obarthel Exp $
*
* :ts=4
*
@@ -51,7 +51,7 @@ ssize_t
write(int file_descriptor, const void * buffer, size_t num_bytes)
{
ssize_t num_bytes_written;
ssize_t result = -1;
ssize_t result = EOF;
struct fd * fd;
ENTER();
@@ -110,7 +110,7 @@ write(int file_descriptor, const void * buffer, size_t num_bytes)
assert( fd->fd_Action != NULL );
num_bytes_written = (*fd->fd_Action)(fd,&fam);
if(num_bytes_written < 0)
if(num_bytes_written == EOF)
{
__set_errno(fam.fam_Error);
goto out;