Home | History | Annotate | Download | only in block

Lines Matching refs:FILE

42     file system (test if the boot sector still relies on that fact)! */
54 FILE* stderr = NULL;
59 void nonono(const char* file, int line, const char* msg) {
60 fprintf(stderr, "Nonono! %s:%d %s\n", file, line, msg);
288 /* the clusters of a file may be in any order; this points to the first */
292 * - the offset in the file (in clusters) for a file, or
298 } file;
333 unsigned int faked_sectors; /* how many sectors are faked before file data */
739 /* create directory entry for this file */
757 fprintf(stderr, "File %s is larger than 2GB\n", buffer);
763 /* create mapping for this file */
780 s->current_mapping->info.file.offset = 0;
1165 /* open file */
1185 /* binary search of mappings for file */
1210 offset=s->cluster_size*(cluster_num-s->current_mapping->begin)+s->current_mapping->info.file.offset;
1284 fprintf(stderr, "offset = %d\n", mapping->info.file.offset);
1567 * part of a file, it has bit 2 set, in case of a directory, bit 1. If it
1569 * If any cluster is allocated, but not part of a file or directory, this
1580 * A file is thought to be renamed *only* if there already was a file with
1591 * IF the guest OS just inserts a cluster into the file chain,
1592 * and leaves the rest alone, (i.e. the original file had clusters
1595 * - do_commit will write the cluster into the file at the given
1599 * position in the file.
1642 /* new file */
1663 if (offset != mapping->info.file.offset + s->cluster_size
1665 /* offset of this cluster in file chain has changed */
1677 && mapping->info.file.offset > 0) {
1835 /* check file size with FAT */
1893 /* mark every mapped file/directory as deleted.
2051 * (i.e. if a file starts at first_cluster, the chain is followed according
2120 next_mapping->info.file.offset = mapping->info.file.offset +
2210 /* commit one file (adjust contents, adjust mapping),
2453 * TODO: make sure that the short name is not matching *another* file
2518 mapping->info.file.offset = 0;
2551 /* remove file/directory */
2684 fprintf(stderr, "Tried to write to write-protected file %s\n",
2712 /* no access to the direntry of a read-only file */
2718 fprintf(stderr, "Warning: tried to write to write-protected file\n");