Searched refs:file_p (Results 1 – 3 of 3) sorted by relevance
/third_party/jerryscript/targets/nuttx-stm32f4/ |
D | jerry_port.c | 67 jerry_port_get_file_size (FILE *file_p) /**< opened file */ in jerry_port_get_file_size() argument 69 fseek (file_p, 0, SEEK_END); in jerry_port_get_file_size() 70 long size = ftell (file_p); in jerry_port_get_file_size() 71 fseek (file_p, 0, SEEK_SET); in jerry_port_get_file_size() 84 FILE *file_p = fopen (file_name_p, "rb"); in jerry_port_read_source() local 86 if (file_p == NULL) in jerry_port_read_source() 92 size_t file_size = jerry_port_get_file_size (file_p); in jerry_port_read_source() 97 fclose (file_p); in jerry_port_read_source() 103 size_t bytes_read = fread (buffer_p, 1u, file_size, file_p); in jerry_port_read_source() 107 fclose (file_p); in jerry_port_read_source() [all …]
|
/third_party/jerryscript/jerry-port/default/ |
D | default-module.c | 32 jerry_port_get_file_size (FILE *file_p) /**< opened file */ in jerry_port_get_file_size() argument 34 fseek (file_p, 0, SEEK_END); in jerry_port_get_file_size() 35 long size = ftell (file_p); in jerry_port_get_file_size() 36 fseek (file_p, 0, SEEK_SET); in jerry_port_get_file_size() 49 FILE *file_p = fopen (file_name_p, "rb"); in jerry_port_read_source() local 51 if (file_p == NULL) in jerry_port_read_source() 57 size_t file_size = jerry_port_get_file_size (file_p); in jerry_port_read_source() 62 fclose (file_p); in jerry_port_read_source() 68 size_t bytes_read = fread (buffer_p, 1u, file_size, file_p); in jerry_port_read_source() 72 fclose (file_p); in jerry_port_read_source() [all …]
|
/third_party/jerryscript/jerry-main/ |
D | main-unix-snapshot.c | 622 FILE *file_p = fopen (literals_file_name_p, "wb"); in process_literal_dump() local 624 if (file_p == NULL) in process_literal_dump() 631 fwrite (literal_buffer, sizeof (uint8_t), lit_buf_sz, file_p); in process_literal_dump() 632 fclose (file_p); in process_literal_dump() 756 FILE *file_p = fopen (output_file_name_p, "wb"); in process_merge() local 758 if (file_p == NULL) in process_merge() 765 fwrite (output_buffer, 1u, merged_snapshot_size, file_p); in process_merge() 766 fclose (file_p); in process_merge()
|