Home | History | Annotate | Download | only in adaptation

Lines Matching defs:fileStream

110     int fileStream = open (filename, O_RDONLY);
111 if (fileStream >= 0)
114 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum));
115 size_t actualReadData = read (fileStream, pBuffer, nbytes);
116 close (fileStream);
169 int fileStream = 0;
171 fileStream = open (filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
172 if (fileStream >= 0)
175 size_t actualWrittenCrc = write (fileStream, &checksum, sizeof(checksum));
176 size_t actualWrittenData = write (fileStream, pBuffer, nbytes);
187 close (fileStream);