Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 207) sorted by relevance

123456789

/lib/lwip/lwip/src/apps/http/
A Dfs.c61 file->len = f->len; in fs_open()
72 file->state = fs_state_init(file, name); in fs_open()
87 fs_close_custom(file); in fs_close()
91 fs_state_free(file, file->state); in fs_close()
93 LWIP_UNUSED_ARG(file); in fs_close()
106 if (file->index == file->len) { in fs_read_async()
123 read = file->len - file->index; in fs_read_async()
128 MEMCPY(buffer, (file->data + file->index), read); in fs_read_async()
129 file->index += read; in fs_read_async()
139 if (file != NULL) { in fs_is_file_ready()
[all …]
A Dhttpd.c1173 hs->file = hs->buf;
1205 hs->file += len;
1243 hs->file += len;
1311 hs->file += ssi->parsed - hs->file;
1560 hs->file += len;
2161 if (file != NULL) {
2260 if (file == NULL) {
2309 if (file == NULL) {
2335 if (file != NULL) {
2379 hs->file = file->data;
[all …]
/lib/lwip/lwip/src/apps/http/makefsdata/
A Dmakefsdata8 while($file = <FILES>) {
11 if($file =~ /(CVS|~)/) {
15 chop($file);
18 if($file =~ /404/) {
24 if($file =~ /\.html$/) {
42 unless($file =~ /\.plain$/ || $file =~ /cgi/) {
45 system("cp $file /tmp/file");
52 $file =~ s/\.//;
53 $fvar = $file;
79 push(@files, $file);
[all …]
A Dtinydir.h551 file->path, &file->_s) == -1) in tinydir_open()
556 _tinydir_get_ext(file); in tinydir_open()
558 file->is_dir = in tinydir_open()
562 S_ISDIR(file->_s.st_mode); in tinydir_open()
564 file->is_reg = in tinydir_open()
601 _tinydir_get_ext(file); in tinydir_open()
715 memset(file, 0, sizeof * file); in tinydir_open()
716 file->is_dir = 1; in tinydir_open()
717 file->is_reg = 0; in tinydir_open()
719 file->extension = file->path + _tinydir_strlen(file->path); in tinydir_open()
[all …]
/lib/lwip/lwip/contrib/examples/httpd/genfiles_example/
A Dgenfiles_example.c108 if (file->pextension != NULL) { in fs_open_custom()
111 file->data = (const char *)file->pextension; in fs_open_custom()
113 file->index = file->len; in fs_open_custom()
123 fs_close_custom(struct fs_file *file) in fs_close_custom() argument
125 if (file && file->pextension) { in fs_close_custom()
126 mem_free(file->pextension); in fs_close_custom()
127 file->pextension = NULL; in fs_close_custom()
135 LWIP_UNUSED_ARG(file); in fs_canread_custom()
144 LWIP_UNUSED_ARG(file); in fs_wait_read_custom()
157 LWIP_UNUSED_ARG(file); in fs_read_async_custom()
[all …]
/lib/lwip/lwip/contrib/examples/httpd/fs_example/
A Dfs_example.c137 file->len = len; in fs_open_custom()
141 file->pextension = data; in fs_open_custom()
151 fs_close_custom(struct fs_file *file) in fs_close_custom() argument
153 if (file && file->pextension) { in fs_close_custom()
165 fs_canread_custom(struct fs_file *file) in fs_canread_custom() argument
176 LWIP_ASSERT("transfer complete", file->index == file->len); in fs_canread_custom()
184 LWIP_ASSERT("", file->len == 0); in fs_canread_custom()
200 LWIP_UNUSED_ARG(file); in fs_canread_custom()
235 LWIP_UNUSED_ARG(file); in fs_wait_read_custom()
286 file->index += len; in fs_read_async_custom()
[all …]
/lib/mbedtls/external/mbedtls/tests/suites/
A Dtest_suite_hmac_drbg.misc.data37 HMAC_DRBG write/update seed file SHA-1 [#1]
41 HMAC_DRBG write/update seed file SHA-1 [#2]
45 HMAC_DRBG write/update seed file SHA-224 [#1]
49 HMAC_DRBG write/update seed file SHA-224 [#2]
53 HMAC_DRBG write/update seed file SHA-256 [#1]
57 HMAC_DRBG write/update seed file SHA-256 [#2]
61 HMAC_DRBG write/update seed file SHA-384 [#1]
65 HMAC_DRBG write/update seed file SHA-384 [#2]
69 HMAC_DRBG write/update seed file SHA-512 [#1]
73 HMAC_DRBG write/update seed file SHA-512 [#2]
[all …]
A Dtest_suite_debug.function18 memcpy(p, file, strlen(file));
19 p += strlen(file);
55 void debug_print_msg_threshold(int threshold, int level, char *file,
81 mbedtls_debug_print_msg(&ssl, level, file, line,
94 void mbedtls_debug_print_ret(char *file, int line, char *text, int value,
118 mbedtls_debug_print_ret(&ssl, 0, file, line, text, value);
130 void mbedtls_debug_print_buf(char *file, int line, char *text,
166 void mbedtls_debug_print_crt(char *crt_file, char *file, int line,
193 mbedtls_debug_print_crt(&ssl, 0, file, line, prefix, &crt);
206 void mbedtls_debug_print_mpi(char *value, char *file, int line,
[all …]
/lib/mbedtls/external/mbedtls/library/
A Ddebug.c54 const char *file, int line, in mbedtls_debug_print_msg() argument
84 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_msg()
88 const char *file, int line, in mbedtls_debug_print_ret() argument
112 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_ret()
133 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_buf()
166 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_buf()
203 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_ec_coord()
229 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_ec_coord()
285 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_mpi()
327 debug_send_line(ssl, level, file, line, in debug_print_pk()
[all …]
A Ddebug_internal.h31 const char *file, int line,
50 const char *file, int line,
71 const char *file, int line, const char *text,
92 const char *file, int line,
114 const char *file, int line,
135 const char *file, int line,
166 const char *file, int line,
A Dplatform.c295 FILE *file; in mbedtls_platform_std_nv_seed_read() local
303 mbedtls_setbuf(file, NULL); in mbedtls_platform_std_nv_seed_read()
305 if ((n = fread(buf, 1, buf_len, file)) != buf_len) { in mbedtls_platform_std_nv_seed_read()
306 fclose(file); in mbedtls_platform_std_nv_seed_read()
311 fclose(file); in mbedtls_platform_std_nv_seed_read()
317 FILE *file; in mbedtls_platform_std_nv_seed_write() local
320 if ((file = fopen(MBEDTLS_PLATFORM_STD_NV_SEED_FILE, "w")) == NULL) { in mbedtls_platform_std_nv_seed_write()
325 mbedtls_setbuf(file, NULL); in mbedtls_platform_std_nv_seed_write()
327 if ((n = fwrite(buf, 1, buf_len, file)) != buf_len) { in mbedtls_platform_std_nv_seed_write()
328 fclose(file); in mbedtls_platform_std_nv_seed_write()
[all …]
A Dentropy_poll.c151 FILE *file; in mbedtls_platform_entropy_poll() local
170 ((void) file); in mbedtls_platform_entropy_poll()
181 file = fopen("/dev/urandom", "rb"); in mbedtls_platform_entropy_poll()
182 if (file == NULL) { in mbedtls_platform_entropy_poll()
187 mbedtls_setbuf(file, NULL); in mbedtls_platform_entropy_poll()
189 read_len = fread(output, 1, len, file); in mbedtls_platform_entropy_poll()
191 fclose(file); in mbedtls_platform_entropy_poll()
195 fclose(file); in mbedtls_platform_entropy_poll()
/lib/mbedtls/external/mbedtls/docs/architecture/
A Dmbed-crypto-storage-specification.md49 ### Key file format for 0.1.0
53 The layout of a key file is:
119 ### Key file format for 1.0.0
179 * [Some changes in the key file format](#key-file-format-for-1.1.0).
192 ### Key file format for 1.1.0
203 The layout of a key file is:
258 ### Key file format for TBD
262 The layout of a key file is:
317 ### Key file format for TBD
321 The layout of a key file is:
[all …]
A Dpsa-storage-resilience.md26 * `remove()` removes a file (returning a specific error code if the file does not exist).
171 3. Write the key file.
184 3. Remove the key file.
201 4. Write the key file.
207 2. Remove the key file.
225 3. Write the key file.
233 3. Remove the key file.
323 * If the file `id` exists:
339 * If the file `id` exists:
414 2. Add _A_ [to the transaction list file](#transaction-list-file-manipulation).
[all …]
/lib/lwip/lwip/src/include/lwip/apps/
A Dfs.h89 err_t fs_open(struct fs_file *file, const char *name);
90 void fs_close(struct fs_file *file);
95 int fs_read(struct fs_file *file, char *buffer, int count);
99 int fs_is_file_ready(struct fs_file *file, fs_wait_cb callback_fn, void *callback_arg);
101 int fs_bytes_left(struct fs_file *file);
105 void *fs_state_init(struct fs_file *file, const char *name);
107 void fs_state_free(struct fs_file *file, void *state);
124 int fs_open_custom(struct fs_file *file, const char *name);
125 void fs_close_custom(struct fs_file *file);
127 u8_t fs_canread_custom(struct fs_file *file);
[all …]
/lib/lwip/lwip/contrib/ports/unix/posixlib/
A DUninstall.cmake8 file(STRINGS ${MANIFEST} files)
9 foreach(file ${files})
10 if(EXISTS ${file} OR IS_SYMLINK ${file})
11 message(STATUS "Removing: ${file}")
14 COMMAND rm -f ${file}
19 message(WARNING "Failed to remove: ${file}")
22 endforeach(file)
/lib/efi_selftest/
A Defi_selftest_block_device.c310 struct efi_file_handle *root, *file; in execute() local
443 ret = root->open(root, &file, u"hello.txt", EFI_FILE_MODE_READ, in execute()
449 ret = file->setpos(file, 1); in execute()
455 ret = file->read(file, &buf_size, buf); in execute()
469 ret = file->getpos(file, &pos); in execute()
479 ret = file->close(file); in execute()
520 ret = file->write(file, &buf_size, buf); in execute()
525 ret = file->getpos(file, &pos); in execute()
535 ret = file->close(file); in execute()
550 ret = file->read(file, &buf_size, buf); in execute()
[all …]
A Defi_selftest_loadimage.c120 .file = FILE_NAME,
248 *new_handle = &file; in efi_st_open()
257 if (this == &file) in efi_st_close()
269 if (this != &file) in efi_st_delete()
278 if (this != &file) in efi_st_read()
295 if (this != &file) in efi_st_write()
303 if (this != &file) in efi_st_getpos()
313 if (this != &file) in efi_st_setpos()
325 if (this == &file) { in efi_st_getinfo()
356 if (this != &file) in efi_st_setinfo()
[all …]
/lib/lwip/lwip/contrib/apps/LwipMibCompiler/LwipSnmpCodeGeneration/
A DMibCFile.cs106 string file = cGenerator.FileName; in Save()
107 if (!String.IsNullOrWhiteSpace(file)) in Save()
109 string ext = System.IO.Path.GetExtension(file); in Save()
111 …string headerFile = !String.IsNullOrEmpty(ext) ? file.Substring(0, file.Length - ext.Length) : fil… in Save()
158 public static string GetPreservedCode(string file) in GetPreservedCode() argument
160 if (File.Exists(file)) in GetPreservedCode()
162 using (StreamReader fileStream = new StreamReader(file)) in GetPreservedCode()
/lib/efi_loader/
A Ddtbdump.c405 ret = file->getinfo(file, &efi_file_info_guid, &buffer_size, NULL); in do_load()
415 ret = file->getinfo(file, &efi_file_info_guid, &buffer_size, info); in do_load()
434 ret = file->read(file, &buffer_size, dtb); in do_load()
457 ret = file->setpos(file, 0); in do_load()
462 ret = file->read(file, &buffer_size, dtb); in do_load()
483 if (file) { in do_load()
484 ret2 = file->close(file); in do_load()
506 struct efi_file_handle *root, *file; in do_save() local
536 file->close(file); in do_save()
553 ret = file->write(file, &dtb_size, dtb); in do_save()
[all …]
A Defi_fdt.c113 struct efi_device_path *file; in efi_load_distro_fdt() local
118 file = efi_dp_from_file(dp, buf); in efi_load_distro_fdt()
119 if (!file) in efi_load_distro_fdt()
121 ret = efi_load_image_from_path(true, file, fdt, fdt_size); in efi_load_distro_fdt()
122 efi_free_pool(file); in efi_load_distro_fdt()
124 log_debug("Fdt %pD loaded\n", file); in efi_load_distro_fdt()
/lib/mbedtls/external/mbedtls/scripts/
A Dgenerate_driver_wrappers.py63 with open(file=os.path.join(output_dir, os.path.splitext(template_file_name)[0]),
86 " for driver " + driver_prefix, str(err), file=sys.stderr)
96 " ".format(driverjson_data, _schema, str(err)), file=sys.stderr)
102 with open(file=driver_file, mode='r', encoding='UTF-8') as f:
129 with open(file=file_path, mode='r', encoding='UTF-8') as file:
130 driver_schema[key] = json.load(file)
142 with open(file=os.path.join(json_directory, jsondriver_list),
152 def trace_exception(e: Exception, file=sys.stderr) -> None: argument
156 ), file)
/lib/mbedtls/external/mbedtls/docs/architecture/testing/
A Dtest-framework.md13 … the test does. The first non-comment line of each paragraph in a `.data` file is the test descrip…
16 … that process test descriptions (`generate_test_code.py`, [outcome file](#outcome-file) tools) sim…
17 * Test descriptions must be unique within a `.data` file. If you can't think of a better descriptio…
18 …a failure log to the test data. Avoid confusion between cases in the [outcome file](#outcome-file).
45 ### Outcome file
47 #### Generating an outcome file argument
49 … outcome file**. This feature is enabled if the environment variable `MBEDTLS_TEST_OUTCOME_FILE` i…
51 If you run `all.sh --outcome-file test-outcome.csv`, this collects the outcome of all the test case…
53 #### Outcome file format argument
55 The outcome file is in a CSV format using `;` (semicolon) as the delimiter and no quoting. This mea…
[all …]
/lib/lwip/lwip/contrib/examples/snmp/snmp_private_mib/
A Dlwip_prvmib.c100 char file[SENSOR_NAME_LEN + 1]; member
222 strncpy(&sensors[idx].file[0], dp->d_name, SENSOR_NAME_LEN); in lwip_privmib_init()
223 printf("%s\n", sensors[idx].file); in lwip_privmib_init()
238 snprintf(sensors[i].file, sizeof(sensors[i].file), "%d.txt", i); in lwip_privmib_init()
354 sensors[i].file, in sensor_table_get_value()
367 MEMCPY(value, sensors[i].file, strlen(sensors[i].file)); in sensor_table_get_value()
368 return (s16_t)strlen(sensors[i].file); in sensor_table_get_value()
384 sensors[i].file, in sensor_table_set_value()
/lib/lzma/
A Dlzma.txt39 To compile C++ version of file->file LZMA encoding, go to directory
78 LzmaUtil - LZMA Utility (file->file LZMA encoder/decoder).
120 LzmaAlone - file->file LZMA compression/decompression
169 e: encode file
238 1) LZMA e file.bin file.lzma -d16 -lc0
245 2) LZMA e file.bin file.lzma -lc0 -lp2
247 compresses file.bin to file.lzma with settings suitable
250 3) LZMA d file.lzma file.bin
252 decompresses file.lzma to file.bin.
406 When to use: file->file decompressing
[all …]

Completed in 58 milliseconds

123456789