Home
last modified time | relevance | path

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

/scripts/
Drecordmcount.c43 static int fd_map; /* File descriptor for file being modified. */ variable
67 close(fd_map); in cleanup()
153 ulseek(fd_map, offset - 1, SEEK_SET); in make_nop_x86()
154 uwrite(fd_map, ideal_nop, 5); in make_nop_x86()
175 fd_map = open(fname, O_RDWR); in mmap_file()
176 if (fd_map < 0 || fstat(fd_map, &sb) < 0) { in mmap_file()
185 fd_map, 0); in mmap_file()
190 uread(fd_map, addr, sb.st_size); in mmap_file()
468 fd_map = -1; in main()
Dsortextable.c38 static int fd_map; /* File descriptor for file being modified. */ variable
57 close(fd_map); in cleanup()
85 fd_map = open(fname, O_RDWR); in mmap_file()
86 if (fd_map < 0 || fstat(fd_map, &sb) < 0) { in mmap_file()
95 fd_map, 0); in mmap_file()
315 fd_map = -1; in main()
Drecordmcount.h206 ulseek(fd_map, sb.st_size, SEEK_SET); in append_func()
207 uwrite(fd_map, old_shstr_sh_offset + (void *)ehdr, old_shstr_sh_size); in append_func()
208 uwrite(fd_map, mc_name, 1 + strlen(mc_name)); in append_func()
211 ulseek(fd_map, t, SEEK_SET); in append_func()
213 uwrite(fd_map, old_shoff + (void *)ehdr, in append_func()
229 uwrite(fd_map, &mcsec, sizeof(mcsec)); in append_func()
243 uwrite(fd_map, &mcsec, sizeof(mcsec)); in append_func()
245 uwrite(fd_map, mloc0, (void *)mlocp - (void *)mloc0); in append_func()
246 uwrite(fd_map, mrel0, (void *)mrelp - (void *)mrel0); in append_func()
250 ulseek(fd_map, 0, SEEK_SET); in append_func()
[all …]