Lines Matching refs:fileStream
103 int fileStream = open (filename, O_RDONLY);
104 if (fileStream >= 0)
107 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum));
108 size_t actualReadData = read (fileStream, pBuffer, nbytes);
109 close (fileStream);
162 int fileStream = 0;
164 fileStream = open (filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
165 if (fileStream >= 0)
168 size_t actualWrittenCrc = write (fileStream, &checksum, sizeof(checksum));
169 size_t actualWrittenData = write (fileStream, pBuffer, nbytes);
180 close (fileStream);