Home
last modified time | relevance | path

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

/scripts/
Drecordmcount.c55 static int fd_map; /* File descriptor for file being modified. */ variable
79 close(fd_map); in cleanup()
165 ulseek(fd_map, offset - 1, SEEK_SET); in make_nop_x86()
166 uwrite(fd_map, ideal_nop, 5); in make_nop_x86()
187 fd_map = open(fname, O_RDWR); in mmap_file()
188 if (fd_map < 0 || fstat(fd_map, &sb) < 0) { in mmap_file()
197 fd_map, 0); in mmap_file()
202 uread(fd_map, addr, sb.st_size); in mmap_file()
478 fd_map = -1; in main()
Dsortextable.c50 static int fd_map; /* File descriptor for file being modified. */ variable
69 close(fd_map); in cleanup()
89 fd_map = open(fname, O_RDWR); in mmap_file()
90 if (fd_map < 0 || fstat(fd_map, &sb) < 0) { in mmap_file()
99 fd_map, 0); in mmap_file()
346 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 …]