Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 10 of 10) sorted by relevance

/openthread-latest/third_party/mbedtls/repo/programs/fuzz/
Donefile.c14 FILE *fp; in main() local
24 fp = fopen(argv[1], "rb"); in main()
25 if (fp == NULL) { in main()
30 if (fseek(fp, 0L, SEEK_END) != 0) { in main()
33 fclose(fp); in main()
36 Size = ftell(fp); in main()
40 fclose(fp); in main()
43 if (fseek(fp, 0L, SEEK_SET) != 0) { in main()
46 fclose(fp); in main()
53 fclose(fp); in main()
[all …]
/openthread-latest/src/posix/platform/
Dconfig_file.cpp66 FILE *fp = nullptr; in Get() local
72 VerifyOrExit((fp = fopen(mFilePath, "r")) != nullptr, error = OT_ERROR_NOT_FOUND); in Get()
73 VerifyOrDie(fseek(fp, aIterator, SEEK_SET) == 0, OT_EXIT_ERROR_ERRNO); in Get()
75 while ((ret = fgets(line, sizeof(line), fp)) != nullptr) in Get()
117 VerifyOrDie((pos = ftell(fp)) >= 0, OT_EXIT_ERROR_ERRNO); in Get()
121 if (fp != nullptr) in Get()
123 fclose(fp); in Get()
132 FILE *fp = nullptr; in Add() local
146 VerifyOrDie((fp = fopen(mFilePath, "at")) != NULL, OT_EXIT_ERROR_ERRNO); in Add()
147 VerifyOrDie(fprintf(fp, "%s=%s\n", aKey, aValue) > 0, OT_EXIT_ERROR_ERRNO); in Add()
[all …]
Dresolver.cpp88 std::ifstream fp; in LoadDnsServerListFromConf() local
94 fp.open(kResolvConfFullPath); in LoadDnsServerListFromConf()
96 while (fp.good() && std::getline(fp, line) && mUpstreamDnsServerCount < kMaxUpstreamServerCount) in LoadDnsServerListFromConf()
/openthread-latest/third_party/mbedtls/repo/programs/test/
Dzeroize.c38 FILE *fp; in main() local
50 fp = fopen(argv[1], "r"); in main()
51 if (fp == NULL) { in main()
56 while ((c = fgetc(fp)) != EOF && p < end - 1) { in main()
68 fclose(fp); in main()
/openthread-latest/third_party/mbedtls/repo/tests/scripts/
Dcheck_files.py491 ascii_filepaths = map(lambda fp: fp.decode('ascii'), bytes_filepaths)
496 ascii_filepaths = [fp for fp in ascii_filepaths
497 if os.path.isfile(fp)]
501 return [fp if os.path.dirname(fp) else os.path.join(os.curdir, fp)
502 for fp in ascii_filepaths]
Dgenerate_pkcs7_tests.py57 with open(file, "r", encoding='UTF-8') as fp:
58 data = fp.read()
Dcheck_names.py425 with open(filename, "r", encoding="utf-8") as fp:
426 for line_no, line in enumerate(fp):
/openthread-latest/examples/platforms/simulation/
Duart.c297 FILE *fp; in otPlatDebugUart_putchar_raw() local
305 fp = posix_logfile; in otPlatDebugUart_putchar_raw()
307 if (fp != NULL) in otPlatDebugUart_putchar_raw()
310 fputc(c, fp); in otPlatDebugUart_putchar_raw()
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dmain_test.function161 TestWrapper_t fp = NULL;
164 fp = test_funcs[func_idx];
165 if (fp) {
170 fp(params);
199 TestWrapper_t fp = NULL;
202 fp = test_funcs[func_idx];
203 if (fp == NULL) {
/openthread-latest/tests/scripts/thread-cert/pktverify/
Dverify.py50 with open(json_file, 'rt') as fp:
51 test_info = json.load(fp)