Lines Matching refs:file

3  * This file may be used under the terms of the MIT License.
42 add_attributes(BFile& file, int32 start, int32 count)
47 file.WriteAttr(name, B_INT32_TYPE, 0, &index, sizeof(int32));
53 remove_attributes(BFile& file, int32 start, int32 count)
58 file.RemoveAttr(name);
64 add_marker_attribute(BFile& file, int32 index)
68 file.WriteAttr(name, B_INT32_TYPE, 0, &index, sizeof(int32));
73 remove_marker_attribute(BFile& file, int32 index)
77 file.RemoveAttr(name);
82 test_remove_attributes(BFile& file, int32 start, int32 count, int32 removeAt,
85 int fd = file.Dup();
101 remove_marker_attribute(file, removeIndex1);
103 remove_marker_attribute(file, removeIndex2);
134 test_add_attributes(BFile& file, int32 start, int32 count, int32 addAt,
137 int fd = file.Dup();
153 add_marker_attribute(file, addIndex1);
155 add_marker_attribute(file, addIndex2);
191 BFile file;
192 status_t status = file.SetTo(kTempFile, B_CREATE_FILE | B_READ_WRITE);
194 fprintf(stderr, "Could not create temporary file: %s\n",
206 add_attributes(file, 1, count);
207 add_marker_attribute(file, count);
208 add_attributes(file, count + 1, count);
210 test_remove_attributes(file, 1, count,
213 remove_attributes(file, 1, count * 2);
221 add_attributes(file, 1, 50);
222 add_marker_attribute(file, 51);
223 add_attributes(file, 51, 50);
225 test_remove_attributes(file, 1, 100, i, 51, -1);
227 remove_attributes(file, 1, 100);
235 add_attributes(file, 1, 33);
236 add_marker_attribute(file, 33);
237 add_attributes(file, 34, 34);
238 add_marker_attribute(file, 67);
239 add_attributes(file, 68, 33);
241 test_remove_attributes(file, 1, 100, i, 33, 67);
243 remove_attributes(file, 1, 100);
253 add_attributes(file, 1, count);
257 test_add_attributes(file, 1, count,
260 remove_attributes(file, 1, count);
268 add_attributes(file, 1, 100);
270 test_add_attributes(file, 1, 100, i, 50, -1);
272 remove_attributes(file, 1, 100);
280 add_attributes(file, 1, 100);
282 test_add_attributes(file, 1, 100, 50, i, -1);
284 remove_attributes(file, 1, 100);
292 add_attributes(file, 1, 100);
294 test_add_attributes(file, 1, 100, i, 33, 67);
296 remove_attributes(file, 1, 100);
304 add_attributes(file, 1, 100);
306 test_add_attributes(file, 1, 100, 50, i - 1, i + 1);
308 remove_attributes(file, 1, 100);