Searched refs:file_name (Results 1 - 25 of 27) sorted by relevance

12

/vpp/src/vppinfra/linux/
H A Dsysfs.h21 clib_error_t *clib_sysfs_write (char *file_name, char *fmt, ...);
23 clib_error_t *clib_sysfs_read (char *file_name, char *fmt, ...);
H A Dsysfs.c26 clib_sysfs_write (char *file_name, char *fmt, ...) argument
32 fd = open (file_name, O_WRONLY);
34 return clib_error_return_unix (0, "open `%s'", file_name);
42 error = clib_error_return_unix (0, "write `%s'", file_name);
50 clib_sysfs_read (char *file_name, char *fmt, ...) argument
58 fd = open (file_name, O_RDONLY);
60 return clib_error_return_unix (0, "open `%s'", file_name);
69 return clib_error_return_unix (0, "read `%s'", file_name);
/vpp/src/vppinfra/
H A Dmpcap.c34 * .file_name = "/tmp/ip4",
72 if (truncate (pm->file_name, actual_size) < 0)
94 if (!pm->file_name)
95 pm->file_name = "/tmp/vppinfra.mpcap";
100 fd = open (pm->file_name, O_CREAT | O_TRUNC | O_RDWR, 0664);
104 pm->file_name);
118 (void) unlink (pm->file_name);
125 (void) unlink (pm->file_name);
135 (void) unlink (pm->file_name);
175 fd = open (pm->file_name, O_RDONL
[all...]
H A Dpcap.c53 * .file_name = "/tmp/ip4",
98 if (!pm->file_name)
99 pm->file_name = "/tmp/vnet.pcap";
102 open (pm->file_name, O_CREAT | O_TRUNC | O_WRONLY, 0664);
106 clib_error_return_unix (0, "failed to open `%s'", pm->file_name);
129 pm->file_name);
133 pm->file_name);
148 error = clib_error_return_unix (0, "write `%s'", pm->file_name);
183 fd = open (pm->file_name, O_RDONLY);
186 error = clib_error_return_unix (0, "open `%s'", pm->file_name);
[all...]
H A Delf_clib.c106 char *file_name, void *link_address)
118 fd = open (file_name, 0);
121 error = clib_error_return_unix (0, "open `%s'", file_name);
127 error = clib_error_return_unix (0, "fstat `%s'", file_name);
135 error = clib_error_return_unix (0, "mmap `%s'", file_name);
105 clib_elf_parse_file(clib_elf_main_t * cem, char *file_name, void *link_address) argument
H A Dpcap.h162 char *file_name; member in struct:__anon21
H A Dmpcap.h108 char *file_name; member in struct:__anon7
H A Delf.c985 char *save = em->file_name;
987 em->file_name = save;
998 return clib_error_return (0, "`%s': bad magic", em->file_name);
1329 elf_read_file (elf_main_t * em, char *file_name) argument
1339 fd = open (file_name, 0);
1342 error = clib_error_return_unix (0, "open `%s'", file_name);
1348 error = clib_error_return_unix (0, "fstat `%s'", file_name);
1356 error = clib_error_return_unix (0, "mmap `%s'", file_name);
1362 em->file_name = file_name;
1754 elf_write_file(elf_main_t * em, char *file_name) argument
[all...]
H A Delf.h889 char *file_name; member in struct:__anon664
1033 clib_error_t *elf_read_file (elf_main_t * em, char *file_name);
1034 clib_error_t *elf_write_file (elf_main_t * em, char *file_name);
/vpp/src/plugins/nat/extras/
H A Dnat_static_gen_cfg.py10 file_name = 'nat_static_%s' % (args.static_map_num[0]) variable
11 outfile = open(file_name, 'w')
/vpp/src/vpp/api/
H A Dplugin.c134 u8 *file_name; local
144 file_name = format (0, "%s/%s%c", plugin_path[i], entry->d_name, 0);
148 if (stat ((char *) file_name, &statb) < 0)
151 vec_free (file_name);
165 pi->filename = file_name;
170 vec_free (file_name);
/vpp/test/
H A Ddiscover_tests.py42 def print_callback(file_name, cls, method):
43 print("%s.%s.%s" % (file_name, cls.__name__, method))
H A Drun_tests.py481 def __call__(self, file_name, cls, method):
483 if self.filter_callback(file_name, cls.__name__, method):
484 self.suite_name = file_name + cls.__name__
557 def __call__(self, file_name, class_name, func_name):
559 fn_match = fnmatch.fnmatch(file_name, self.filter_file_name)
573 def __call__(self, file_name, class_name, func_name):
574 return '.'.join([file_name, class_name]) in self.classes_with_filenames
/vpp/src/vlib/unix/
H A Dunix.h154 u8 * file_name),
H A Dutil.c51 u8 * file_name), void *arg,
49 foreach_directory_file(char *dir_name, clib_error_t * (*f) (void *arg, u8 * path_name, u8 * file_name), void *arg, int scan_dirs) argument
H A Dcli.c3357 char *file_name; local
3362 file_name = 0;
3366 if (!unformat (input, "%s", &file_name))
3373 fd = open (file_name, O_RDONLY);
3376 error = clib_error_return_unix (0, "failed to open `%s'", file_name);
3386 error = clib_error_return_unix (0, "failed to stat `%s'", file_name);
3392 error = clib_error_return (0, "not a regular file `%s'", file_name);
3405 vec_free (file_name);
/vpp/src/vnet/unix/
H A Dpcap2cinit.c104 pm->file_name = (char *) input_file;
H A Dpcap2pg.c156 pm->file_name = (char *) input_file;
/vpp/src/vnet/lisp-gpe/
H A Dlisp_gpe.c638 lisp_gpe_test_send_nsh_packet (u8 * file_name) argument
646 if (!file_name)
650 pm.file_name = (char *) file_name;
691 u8 *file_name = 0; local
695 if (unformat (input, "pcap %v", &file_name))
697 error = lisp_gpe_test_send_nsh_packet (file_name);
/vpp/src/vlib/linux/
H A Dpci.c577 scan_uio_dir (void *arg, u8 * path_name, u8 * file_name) argument
582 unformat_init_string (&input, (char *) file_name, vec_len (file_name));
1057 u8 *file_name; local
1059 file_name = format (0, "%s/%U/resource%d%c", sysfs_pci_dev_path,
1062 _fd = open ((char *) file_name, O_RDWR);
1065 error = clib_error_return_unix (0, "open `%s'", file_name);
1066 vec_free (file_name);
1072 error = clib_error_return_unix (0, "fstat `%s'", file_name);
1073 vec_free (file_name);
[all...]
/vpp/src/vnet/pg/
H A Dcli.c105 pi->pcap_main.file_name = (char *) pi->pcap_file_name;
266 pg_pcap_read (pg_stream_t * s, char *file_name) argument
274 pm.file_name = file_name;
/vpp/src/plugins/acl/
H A Dacl_test.c589 char *file_name = NULL; local
594 if (unformat (input, "filename %s", &file_name))
618 if (file_name == NULL)
621 fd = open(file_name, O_RDONLY);
624 clib_warning("Could not open file '%s'", file_name);
723 vec_free(file_name);
/vpp/src/plugins/unittest/
H A Dmpcap_node.c25 .file_name = "/tmp/mpcap_unittest.pcap",
/vpp/src/vnet/
H A Dinterface_cli.c1927 vlib_cli_output (vm, "capture to file %s", pm->file_name);
1967 vec_free (pm->file_name);
1989 pm->file_name = (char *) a->filename;
2014 pm->n_packets_captured, pm->file_name);
/vpp/src/vlib/
H A Dmain.c2290 vlib_cli_output (vm, "capture to file %s", pm->file_name);
2341 vec_free (pm->file_name);
2352 pm->file_name = (char *) a->filename;
2371 pm->n_packets_captured, pm->file_name);

Completed in 30 milliseconds

12