Browse Source

Correct return type for read() and write().


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@48 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz 10 years ago
parent
commit
1b283f9772
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      child.cpp

+ 2
- 2
child.cpp View File

return traits_type::eof(); return traits_type::eof();
} }
#else #else
size_t nBytesRead;
ssize_t nBytesRead;
nBytesRead = read(inputFileDescriptor, nBytesRead = read(inputFileDescriptor,
start, start,
getErrorText()); getErrorText());
} }
#else #else
size_t nBytesWritten;
ssize_t nBytesWritten;
nBytesWritten = write(outputFileDescriptor, pbase(), nBytes); nBytesWritten = write(outputFileDescriptor, pbase(), nBytes);

Loading…
Cancel
Save