Searched refs:fd_map (Results 1 – 1 of 1) sorted by relevance
47 static int fd_map; /* File descriptor for file being modified. */ variable171 fd_map = -1; in mmap_file()178 fd_map = open(fname, O_RDONLY); in mmap_file()179 if (fd_map < 0) { in mmap_file()183 if (fstat(fd_map, &sb) < 0) { in mmap_file()192 fd_map, 0); in mmap_file()200 if (read(fd_map, file_map, sb.st_size) != sb.st_size) { in mmap_file()209 close(fd_map); in mmap_file()210 fd_map = -1; in mmap_file()336 fd_map = open(tmp_file, O_WRONLY | O_TRUNC | O_CREAT, sb.st_mode); in write_file()[all …]