Searched refs:mapf (Results 1 – 2 of 2) sorted by relevance
/bootable/recovery/minzip/ |
D | SysUtil.c | 88 static int sysMapBlockFile(FILE* mapf, MemMapping* pMap) in sysMapBlockFile() argument 97 if (fgets(block_dev, sizeof(block_dev), mapf) == NULL) { in sysMapBlockFile() 108 if (fscanf(mapf, "%zu %u\n%u\n", &size, &blksize, &range_count) != 3) { in sysMapBlockFile() 139 if (fscanf(mapf, "%d %d\n", &start, &end) != 2) { in sysMapBlockFile() 169 FILE* mapf = fopen(fn+1, "r"); in sysMapFile() local 170 if (mapf == NULL) { in sysMapFile() 175 if (sysMapBlockFile(mapf, pMap) != 0) { in sysMapFile() 180 fclose(mapf); in sysMapFile()
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 183 FILE* mapf = fdopen(mapfd, "w"); in produce_block_map() local 209 fprintf(mapf, "%s\n%lld %lu\n", blk_dev, (long long)sb.st_size, (unsigned long)sb.st_blksize); in produce_block_map() 305 fprintf(mapf, "%d\n", range_used); in produce_block_map() 307 fprintf(mapf, "%d %d\n", ranges[i*2], ranges[i*2+1]); in produce_block_map() 314 fclose(mapf); in produce_block_map()
|