Home | History | Annotate | Download | only in adaptation

Lines Matching full:filestream

77     int fileStream = open (filename, O_RDONLY);
78 if (fileStream >= 0)
81 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum));
82 size_t actualReadData = read (fileStream, p_buf, nbytes);
83 close (fileStream);
125 int fileStream = 0;
136 fileStream = open (filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
137 if (fileStream >= 0)
140 size_t actualWrittenCrc = write (fileStream, &checksum, sizeof(checksum));
141 size_t actualWrittenData = write (fileStream, p_buf, nbytes);
152 close (fileStream);