Home
last modified time | relevance | path

Searched refs:fd_map (Results 1 – 2 of 2) sorted by relevance

/scripts/
Drecordmcount.c45 static int fd_map; /* File descriptor for file being modified. */ variable
165 fd_map = -1; in mmap_file()
172 fd_map = open(fname, O_RDONLY); in mmap_file()
173 if (fd_map < 0) { in mmap_file()
177 if (fstat(fd_map, &sb) < 0) { in mmap_file()
186 fd_map, 0); in mmap_file()
194 if (read(fd_map, file_map, sb.st_size) != sb.st_size) { in mmap_file()
203 close(fd_map); in mmap_file()
204 fd_map = -1; in mmap_file()
330 fd_map = open(tmp_file, O_WRONLY | O_TRUNC | O_CREAT, sb.st_mode); in write_file()
[all …]
Dsortextable.c54 static int fd_map; /* File descriptor for file being modified. */ variable
73 close(fd_map); in cleanup()
93 fd_map = open(fname, O_RDWR); in mmap_file()
94 if (fd_map < 0 || fstat(fd_map, &sb) < 0) { in mmap_file()
103 fd_map, 0); in mmap_file()
386 fd_map = -1; in main()