Searched refs:json_fd (Results 1 – 8 of 8) sorted by relevance
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/builtin/ |
A D | module_builtin.c | 34 int json_fd = -1; in native_add_global_appconfig() local 38 if ((json_fd = aos_open(json_dir, O_RDONLY)) < 0) { in native_add_global_appconfig() 43 len = aos_lseek(json_fd, 0, SEEK_END); in native_add_global_appconfig() 49 aos_close(json_fd); in native_add_global_appconfig() 54 aos_lseek(json_fd, 0, SEEK_SET); in native_add_global_appconfig() 56 aos_read(json_fd, json_data + strlen(GLOBAL_APPCONFIG_STRING_1), len); in native_add_global_appconfig() 68 aos_close(json_fd); in native_add_global_appconfig()
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/builtin/ |
A D | module_builtin.c | 70 int json_fd = -1; in native_add_global_appconfig() local 75 if ((json_fd = aos_open(json_dir, O_RDONLY)) < 0) { in native_add_global_appconfig() 80 len = aos_lseek(json_fd, 0, SEEK_END); in native_add_global_appconfig() 87 aos_close(json_fd); in native_add_global_appconfig() 92 aos_lseek(json_fd, 0, SEEK_SET); in native_add_global_appconfig() 94 aos_read(json_fd, json_data + strlen(GLOBAL_APPCONFIG_STRING_1), len); in native_add_global_appconfig() 104 aos_close(json_fd); in native_add_global_appconfig()
|
/AliOS-Things-master/components/amp/main/ |
A D | amp_engine.c | 54 int json_fd = -1; in search_js_app_main_entry() local 78 if ((json_fd = aos_open(js_app_file_name, O_RDONLY)) < 0) { in search_js_app_main_entry() 84 file_len = aos_lseek(json_fd, 0, SEEK_END); in search_js_app_main_entry() 87 aos_close(json_fd); in search_js_app_main_entry() 88 json_fd = -1; in search_js_app_main_entry() 91 aos_lseek(json_fd, 0, SEEK_SET); in search_js_app_main_entry() 92 aos_read(json_fd, json_data, file_len); in search_js_app_main_entry() 93 aos_close(json_fd); in search_js_app_main_entry()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/ui/ |
A D | page_entry.c | 41 int json_fd = -1; in search_js_page_entry() local 51 if ((json_fd = aos_open(app_file_path, O_RDONLY)) < 0) { in search_js_page_entry() 57 file_len = aos_lseek(json_fd, 0, SEEK_END); in search_js_page_entry() 62 aos_close(json_fd); in search_js_page_entry() 63 json_fd = -1; in search_js_page_entry() 66 aos_lseek(json_fd, 0, SEEK_SET); in search_js_page_entry() 67 aos_read(json_fd, json_data, file_len); in search_js_page_entry() 68 aos_close(json_fd); in search_js_page_entry()
|
/AliOS-Things-master/components/amp/engine/duktape_engine/startup/ |
A D | page_entry.c | 38 int json_fd = -1; in search_js_page_entry() local 48 if ((json_fd = aos_open(app_file_path, O_RDONLY)) < 0) { in search_js_page_entry() 54 file_len = aos_lseek(json_fd, 0, SEEK_END); in search_js_page_entry() 59 aos_close(json_fd); in search_js_page_entry() 60 json_fd = -1; in search_js_page_entry() 63 aos_lseek(json_fd, 0, SEEK_SET); in search_js_page_entry() 64 aos_read(json_fd, json_data, file_len); in search_js_page_entry() 65 aos_close(json_fd); in search_js_page_entry()
|
/AliOS-Things-master/components/py_engine/modules/driver/ |
A D | board_mgr.c | 648 int json_fd = -1; in board_get_json_buff() local 656 if (json_fd < 0) { in board_get_json_buff() 669 aos_close(json_fd); in board_get_json_buff() 675 aos_close(json_fd); in board_get_json_buff() 968 int json_fd = -1; in py_board_mgr_init() local 982 if (json_fd >= 0) { in py_board_mgr_init() 983 aos_close(json_fd); in py_board_mgr_init() 989 if (json_fd >= 0) { in py_board_mgr_init() 990 aos_close(json_fd); in py_board_mgr_init() 997 if (json_fd >= 0) { in py_board_mgr_init() [all …]
|
/AliOS-Things-master/components/py_engine/adapter/ |
A D | main.c | 250 FILE *json_fd = fopen(data_root_path, "r"); in get_logLevel() local 251 if (json_fd != NULL) { in get_logLevel() 252 fclose(json_fd); in get_logLevel()
|
/AliOS-Things-master/components/amp/services/board_mgr/ |
A D | board_mgr.c | 1184 int json_fd = -1; in board_get_json_buff() local 1191 json_fd = aos_open(json_path, O_RDONLY); in board_get_json_buff() 1192 if (json_fd < 0) { in board_get_json_buff() 1197 len = aos_lseek(json_fd, 0, HAL_SEEK_END); in board_get_json_buff() 1202 aos_close(json_fd); in board_get_json_buff() 1206 aos_lseek(json_fd, 0, HAL_SEEK_SET); in board_get_json_buff() 1208 aos_read(json_fd, json_data, len); in board_get_json_buff() 1210 aos_close(json_fd); in board_get_json_buff()
|
Completed in 13 milliseconds