/AliOS-Things-master/components/py_engine/external/app_mgr/ |
A D | app_mgr.c | 45 memset(transferpath, 0, path_len); in pyamp_check_file_path() 46 memcpy(transferpath, path, path_len); in pyamp_check_file_path() 61 if (path_len != 0) { in pyamp_save_file_path() 62 save_path_len = path_len; in pyamp_save_file_path() 63 memset(save_path, 0, path_len); in pyamp_save_file_path() 64 memcpy(save_path, path, path_len); in pyamp_save_file_path() 66 save_path_len = path_len; in pyamp_save_file_path() 73 memcpy(path, save_path, path_len); in pyamp_get_file_path() 83 int path_len = 0; in pyamp_apppack_init() local 84 path_len = pyamp_get_file_path(path, 256); in pyamp_apppack_init() [all …]
|
A D | app_mgr.h | 19 int pyamp_check_file_path(unsigned char *path, int32_t path_len); 20 void pyamp_save_file_path(unsigned char *path, int32_t path_len); 21 int pyamp_get_file_path(unsigned char *path, int32_t path_len);
|
/AliOS-Things-master/components/amp_adapter/platform/aos/ |
A D | aos_fs.c | 25 int path_len; in aos_rmdir_r() local 33 path_len = strlen(path) + 1; in aos_rmdir_r() 34 dir = aos_malloc(path_len); in aos_rmdir_r() 38 memcpy(dir, path, path_len); in aos_rmdir_r()
|
/AliOS-Things-master/components/amp_adapter/platform/linux/ |
A D | aos_fs.c | 116 int path_len; in aos_rmdir_r() local 124 path_len = strlen(path) + 1; in aos_rmdir_r() 125 dir = aos_malloc(path_len); in aos_rmdir_r() 130 memcpy(dir, path, path_len); in aos_rmdir_r()
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/tools/ |
A D | tiffsplit.c | 74 size_t path_len; in main() local 79 path_len = strlen(fname) + sizeof(TIFF_SUFFIX); in main() 80 path = (char *) _TIFFmalloc(path_len); in main() 81 strncpy(path, fname, path_len); in main() 82 path[path_len - 1] = '\0'; in main() 83 strncat(path, TIFF_SUFFIX, path_len - strlen(path) - 1); in main()
|
/AliOS-Things-master/components/http/src/ |
A D | http_client.c | 42 size_t path_len; in httpclient_parse_url() local 99 path_len = fragment_ptr - path_ptr; in httpclient_parse_url() 101 path_len = strlen(path_ptr); in httpclient_parse_url() 104 if ( max_path_len < path_len + 1 ) { /* including NULL-terminating char */ in httpclient_parse_url() 105 http_err("Path str is too small (%d >= %d)", max_path_len, path_len + 1); in httpclient_parse_url() 108 memcpy(path, path_ptr, path_len); in httpclient_parse_url() 109 path[path_len] = '\0'; in httpclient_parse_url()
|
/AliOS-Things-master/components/linkkit/infra/ |
A D | infra_httpc.c | 60 uint32_t path_len; in _utils_parse_url() local 83 path_len = fragment_ptr - path_ptr; in _utils_parse_url() 85 path_len = strlen(path_ptr); in _utils_parse_url() 88 memcpy(path, path_ptr, path_len); in _utils_parse_url() 89 path[path_len] = '\0'; in _utils_parse_url()
|
/AliOS-Things-master/components/linksdk/components/ota/ |
A D | aiot_ota_api.c | 761 uint32_t path_len; in _download_parse_url() local 787 path_len = fragment_ptr - path_ptr; in _download_parse_url() 789 path_len = strlen(path_ptr); in _download_parse_url() 792 if (path_len >= max_path_len) { in _download_parse_url() 796 memcpy(path, path_ptr, path_len); in _download_parse_url() 797 path[path_len] = '\0'; in _download_parse_url()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | run-test262.c | 195 int path_len, name_len; in compose_path() local 201 path_len = strlen(path); in compose_path() 203 d = malloc(path_len + 1 + name_len + 1); in compose_path() 206 memcpy(q, path, path_len); in compose_path() 207 q += path_len; in compose_path() 208 if (path[path_len - 1] != '/') in compose_path()
|
A D | quickjs-libc.c | 2665 size_t filename_len, path_len; in my_execvpe() local 2685 path_len = strlen(p); in my_execvpe() 2688 path_len = p1 - p; in my_execvpe() 2691 if ((path_len + 1 + filename_len + 1) > PATH_MAX) in my_execvpe() 2693 memcpy(buf, p, path_len); in my_execvpe() 2694 buf[path_len] = '/'; in my_execvpe() 2695 memcpy(buf + path_len + 1, filename, filename_len); in my_execvpe() 2696 buf[path_len + 1 + filename_len] = '\0'; in my_execvpe()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/libc/ |
A D | quickjs_libc.c | 2930 size_t filename_len, path_len; in my_execvpe() local 2952 path_len = strlen(p); in my_execvpe() 2955 path_len = p1 - p; in my_execvpe() 2958 if ((path_len + 1 + filename_len + 1) > PATH_MAX) { in my_execvpe() 2961 memcpy(buf, p, path_len); in my_execvpe() 2962 buf[path_len] = '/'; in my_execvpe() 2963 memcpy(buf + path_len + 1, filename, filename_len); in my_execvpe() 2964 buf[path_len + 1 + filename_len] = '\0'; in my_execvpe()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | settings.c | 1431 … encode_mod_path(struct bt_mesh_model *mod, bool vnd, const char *key, char *path, size_t path_len) in encode_mod_path() argument 1436 snprintk(path, path_len, "bt/mesh/v/%x/%s", mod_key, key); in encode_mod_path() 1438 snprintk(path, path_len, "bt/mesh/s/%x/%s", mod_key, key); in encode_mod_path()
|