Home | History | Annotate | Download | only in adaptation

Lines Matching defs:fileStream

78     int fileStream = open (filename, O_RDONLY);
79 if (fileStream >= 0)
82 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum));
83 size_t actualReadData = read (fileStream, p_buf, nbytes);
84 close (fileStream);
126 int fileStream = 0;
137 fileStream = open (filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
138 if (fileStream >= 0)
141 size_t actualWrittenCrc = write (fileStream, &checksum, sizeof(checksum));
142 size_t actualWrittenData = write (fileStream, p_buf, nbytes);
153 close (fileStream);