• Home
  • Raw
  • Download

Lines Matching refs:dumpfile

135 	FILE * dumpfile = NULL;  in op_open_agent()  local
155 dumpfile = fdopen(fd, "w"); in op_open_agent()
156 if (!dumpfile) { in op_open_agent()
177 if (!fwrite(&header, sizeof(header), 1, dumpfile)) { in op_open_agent()
182 dumpfile)) { in op_open_agent()
187 if (pad_cnt && !fwrite(pad_bytes, pad_cnt, 1, dumpfile)) { in op_open_agent()
191 fflush(dumpfile); in op_open_agent()
192 return (op_agent_t)dumpfile; in op_open_agent()
200 FILE * dumpfile = (FILE *) hdl; in op_close_agent() local
201 if (!dumpfile) { in op_close_agent()
213 if (!fwrite(&rec, sizeof(rec), 1, dumpfile)) in op_close_agent()
215 fclose(dumpfile); in op_close_agent()
216 dumpfile = NULL; in op_close_agent()
229 FILE * dumpfile = (FILE *) hdl; in op_write_native_code() local
231 if (!dumpfile) { in op_write_native_code()
256 flockfile(dumpfile); in op_write_native_code()
260 if (fwrite_unlocked(&rec, sizeof(rec), 1, dumpfile) && in op_write_native_code()
261 fwrite_unlocked(symbol_name, sz_symb_name, 1, dumpfile)) { in op_write_native_code()
263 fwrite_unlocked(code, size, 1, dumpfile); in op_write_native_code()
265 fwrite_unlocked(pad_bytes, padding_count, 1, dumpfile); in op_write_native_code()
268 fflush_unlocked(dumpfile); in op_write_native_code()
269 funlockfile(dumpfile); in op_write_native_code()
272 fflush_unlocked(dumpfile); in op_write_native_code()
273 funlockfile(dumpfile); in op_write_native_code()
289 FILE * dumpfile = (FILE *) hdl; in op_write_debug_line_info() local
291 if (!dumpfile) { in op_write_debug_line_info()
313 flockfile(dumpfile); in op_write_debug_line_info()
315 if ((cur_pos = ftell(dumpfile)) == -1l) in op_write_debug_line_info()
317 if (!fwrite_unlocked(&rec, sizeof(rec), 1, dumpfile)) in op_write_debug_line_info()
322 dumpfile) || in op_write_debug_line_info()
325 dumpfile) || in op_write_debug_line_info()
328 dumpfile)) in op_write_debug_line_info()
332 if ((last_pos = ftell(dumpfile)) == -1l) in op_write_debug_line_info()
337 if (padding_count && !fwrite(padd_bytes, padding_count, 1, dumpfile)) in op_write_debug_line_info()
339 if (fseek(dumpfile, cur_pos, SEEK_SET) == -1l) in op_write_debug_line_info()
341 if (!fwrite_unlocked(&rec, sizeof(rec), 1, dumpfile)) in op_write_debug_line_info()
343 if (fseek(dumpfile, last_pos + padding_count, SEEK_SET) == -1) in op_write_debug_line_info()
348 fflush_unlocked(dumpfile); in op_write_debug_line_info()
349 funlockfile(dumpfile); in op_write_debug_line_info()
358 FILE * dumpfile = (FILE *) hdl; in op_unload_native_code() local
360 if (!dumpfile) { in op_unload_native_code()
375 if (!fwrite(&rec, sizeof(rec), 1, dumpfile)) in op_unload_native_code()
377 fflush(dumpfile); in op_unload_native_code()