/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_ucast_file.c | 125 char *file_name; in do_ucast_file_load() local 135 file_name = p_osm->subn.opt.lfts_file; in do_ucast_file_load() 136 if (!file_name) { in do_ucast_file_load() 143 file = fopen(file_name, "r"); in do_ucast_file_load() 146 "Can't open ucast dump file \'%s\': %m\n", file_name); in do_ucast_file_load() 176 file_name, lineno); in do_ucast_file_load() 185 file_name, lineno, p); in do_ucast_file_load() 205 file_name, lineno, p); in do_ucast_file_load() 216 file_name, lineno, p); in do_ucast_file_load() 238 file_name, lineno, p); in do_ucast_file_load() [all …]
|
H A D | osm_db_files.c | 93 char *file_name; member 143 free(p_domain_imp->file_name); in osm_db_domain_destroy() 245 p_domain_imp->file_name = malloc(path_len); in osm_db_domain_init() 246 if (p_domain_imp->file_name == NULL) { in osm_db_domain_init() 254 snprintf(p_domain_imp->file_name, path_len, "%s/%s", in osm_db_domain_init() 258 p_file = fopen(p_domain_imp->file_name, "a+"); in osm_db_domain_init() 262 p_domain_imp->file_name); in osm_db_domain_init() 308 p_file = fopen(p_domain_imp->file_name, "r"); in osm_db_restore() 313 p_domain_imp->file_name); in osm_db_restore() 350 p_domain_imp->file_name); in osm_db_restore() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | rsend.kshlib | 379 file_name="/$fs/file-$maxsize-$((i+$file_id_offset))" 389 truncate -s $file_size $file_name || \ 390 log_fail "Failed to create $file_name" 391 dd if=/dev/urandom of=$file_name \ 395 log_fail "Failed to create $file_name" 397 dd if=/dev/urandom of=$file_name \ 399 log_fail "Failed to create $file_name" 400 dd if=/dev/zero of=$file_name \ 404 log_fail "Failed to create $file_name" 452 file_name="/$fs/file-$i" [all …]
|
/freebsd/contrib/sendmail/contrib/ |
H A D | qtool.pl | 366 my $file_name = shift; 387 $result = sysopen(FILE_TO_LOCK, $file_name, Fcntl::O_RDWR); 390 return (undef, "Unable to open '$file_name': $!"); 396 return (undef, "Could not obtain lock on '$file_name': $!"); 404 return (undef, "Could not obtain fcntl lock on '$file_name': $!"); 502 $self->{file_name} = $queue_dir . '/' . $qprefix . $self->{id}; 658 ($lock_handle, $result) = ::lock_file($self->{file_name}); 693 $result = open(QUEUE_FILE, $self->{file_name}); 719 $result = unlink($self->{file_name}); 754 $self->{file_name} = $data_dir . '/df' . $self->{id}; [all …]
|
/freebsd/contrib/ofed/libibumad/ |
H A D | sysfs.c | 58 int sys_read_string(const char *dir_name, const char *file_name, char *str, int max_len) in sys_read_string() argument 63 snprintf(path, sizeof(path), "%s/%s", dir_name, file_name); in sys_read_string() 77 int sys_read_guid(const char *dir_name, const char *file_name, __be64 *net_guid) in sys_read_guid() argument 83 if ((r = sys_read_string(dir_name, file_name, buf, sizeof(buf))) < 0) in sys_read_guid() 99 int sys_read_gid(const char *dir_name, const char *file_name, in sys_read_gid() argument 106 if ((r = sys_read_string(dir_name, file_name, buf, sizeof(buf))) < 0) in sys_read_gid() 118 int sys_read_uint64(const char *dir_name, const char *file_name, uint64_t * u) in sys_read_uint64() argument 123 if ((r = sys_read_string(dir_name, file_name, buf, sizeof(buf))) < 0) in sys_read_uint64() 131 int sys_read_uint(const char *dir_name, const char *file_name, unsigned *u) in sys_read_uint() argument 136 if ((r = sys_read_string(dir_name, file_name, buf, sizeof(buf))) < 0) in sys_read_uint()
|
H A D | sysfs.h | 44 extern int sys_read_string(const char *dir_name, const char *file_name, char *str, int len); 45 extern int sys_read_guid(const char *dir_name, const char *file_name, __be64 * net_guid); 46 extern int sys_read_gid(const char *dir_name, const char *file_name, 48 extern int sys_read_uint64(const char *dir_name, const char *file_name, uint64_t * u); 49 extern int sys_read_uint(const char *dir_name, const char *file_name, unsigned *u);
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_write_format_zip_stream.c | 86 const char *file_name = "file"; in DEFINE_TEST() local 104 archive_entry_copy_pathname(ae, file_name); in DEFINE_TEST() 150 assertEqualInt(i2(p + 28), strlen(file_name)); /* Pathname length */ in DEFINE_TEST() 157 assertEqualMem(p + 46, file_name, strlen(file_name)); /* Pathname */ in DEFINE_TEST() 158 p = extension_start = central_header + 46 + strlen(file_name); in DEFINE_TEST() 206 assertEqualInt(i2(p + 26), strlen(file_name)); /* Pathname length */ in DEFINE_TEST() 208 assertEqualMem(p + 30, file_name, strlen(file_name)); /* Pathname */ in DEFINE_TEST() 209 p = extension_start = local_header + 30 + strlen(file_name); in DEFINE_TEST()
|
H A D | test_write_format_zip_file.c | 89 const char *file_name = "file"; in DEFINE_TEST() 114 archive_entry_copy_pathname(ae, file_name); in DEFINE_TEST() 161 assertEqualInt(i2(p + 28), strlen(file_name)); /* Pathname length */ in DEFINE_TEST() 168 assertEqualMem(p + 46, file_name, strlen(file_name)); /* Pathname */ in DEFINE_TEST() 169 p = extension_start = central_header + 46 + strlen(file_name); in DEFINE_TEST() 209 assertEqualInt(i2(p + 26), strlen(file_name)); /* Pathname length */ in DEFINE_TEST() 211 assertEqualMem(p + 30, file_name, strlen(file_name)); /* Pathname */ in DEFINE_TEST() 212 p = extension_start = local_header + 30 + strlen(file_name); in DEFINE_TEST() 90 const char *file_name = "file"; DEFINE_TEST() local [all...] |
H A D | test_write_format_zip_entry_size_unset.c | 30 static const char file_name[] = "file"; variable 87 archive_entry_set_pathname(entry, file_name); in write_archive() 152 assertEqualInt(i2(central_directory + 28), strlen(file_name)); in verify_contents() 166 assertEqualMem(central_directory + 46, file_name, strlen(file_name)); in verify_contents() 188 assertEqualInt(i2(local_file_header + 26), strlen(file_name)); in verify_contents() 192 assertEqualMem(local_file_header + 30, file_name, strlen(file_name)); in verify_contents() 195 const char *data = local_file_header + i2(local_file_header + 28) + strlen(file_name) + 30; in verify_contents() 212 …l_directory_folder_entry = central_directory + 46 + i2(local_file_header + 28) + strlen(file_name); in verify_contents()
|
H A D | test_write_format_zip_file_zip64.c | 91 const char *file_name = "file"; in DEFINE_TEST() 117 archive_entry_copy_pathname(ae, file_name); in DEFINE_TEST() 164 assertEqualInt(i2(p + 28), strlen(file_name)); /* Pathname length */ in DEFINE_TEST() 171 assertEqualMem(p + 46, file_name, strlen(file_name)); /* Pathname */ in DEFINE_TEST() 172 p = extension_start = central_header + 46 + strlen(file_name); in DEFINE_TEST() 237 assertEqualInt(i2(p + 26), strlen(file_name)); /* Pathname length */ in DEFINE_TEST() 239 assertEqualMem(p + 30, file_name, strlen(file_name)); /* Pathname */ in DEFINE_TEST() 240 p = extension_start = local_header + 30 + strlen(file_name); in DEFINE_TEST() 92 const char *file_name = "file"; DEFINE_TEST() local [all...] |
H A D | test_write_format_zip_compression_store.c | 33 static const char file_name[] = "file"; 84 archive_entry_set_pathname(entry, file_name); in verify_write_uncompressed() 185 assertEqualInt(i2(p + 28), strlen(file_name)); /* Pathname length */ in verify_uncompressed_contents() 192 assertEqualMem(p + 46, file_name, strlen(file_name)); /* Pathname */ in verify_uncompressed_contents() 193 p = p + 46 + strlen(file_name); in verify_uncompressed_contents() 217 assertEqualInt(i2(q + 26), strlen(file_name)); /* Pathname length */ in verify_uncompressed_contents() 219 assertEqualMem(q + 30, file_name, strlen(file_name)); /* Pathname */ in verify_uncompressed_contents() 220 extra_start = q = q + 30 + strlen(file_name); in verify_uncompressed_contents() 34 static const char file_name[] = "file"; global() variable [all...] |
/freebsd/contrib/diff/lib/ |
H A D | error.c | 70 extern void __error_at_line (int status, int errnum, const char *file_name, 239 error_at_line (int status, int errnum, const char *file_name, in error_at_line() argument 250 && (file_name == old_file_name in error_at_line() 251 || strcmp (old_file_name, file_name) == 0)) in error_at_line() 255 old_file_name = file_name; in error_at_line() 283 if (file_name != NULL) in error_at_line() 287 __fwprintf (stderr, L"%s:%d: ", file_name, line_number); in error_at_line() 290 fprintf (stderr, "%s:%d: ", file_name, line_number); in error_at_line()
|
/freebsd/contrib/ofed/opensm/libvendor/ |
H A D | osm_vendor_mlx_hca_pfs.c | 133 char file_name[256]; in __parse_ca_info_file() local 146 sprintf(file_name, "/proc/infiniband/core/ca%d/info", idx); in __parse_ca_info_file() 147 info_file = open(file_name, O_RDONLY); in __parse_ca_info_file() 152 file_name); in __parse_ca_info_file() 264 char file_name[256]; in __parse_port_info_file() local 279 sprintf(file_name, "/proc/infiniband/core/ca%d/port%d/info", hca_idx, in __parse_port_info_file() 281 info_file = open(file_name, O_RDONLY); in __parse_port_info_file() 286 hca_idx, port_num, file_name); in __parse_port_info_file() 416 char file_name[256]; in __get_port_guid_from_port_gid_tbl() local 430 sprintf(file_name, "/proc/infiniband/core/ca%d/port%d/gid_table", in __get_port_guid_from_port_gid_tbl() [all …]
|
H A D | osm_vendor_mlx_hca_sim.c | 179 char file_name[256]; in __parse_ca_info_file() local 192 sprintf(file_name, "%s/ca%d/info", __get_simulator_dir(), idx); in __parse_ca_info_file() 193 info_file = open(file_name, O_RDONLY); in __parse_ca_info_file() 198 file_name); in __parse_ca_info_file() 310 char file_name[256]; in __parse_port_info_file() local 325 sprintf(file_name, "%s/ca%d/port%d/info", __get_simulator_dir(), in __parse_port_info_file() 327 info_file = open(file_name, O_RDONLY); in __parse_port_info_file() 332 hca_idx, port_num, file_name); in __parse_port_info_file() 462 char file_name[256]; in __get_port_guid_from_port_gid_tbl() local 476 sprintf(file_name, "%s/ca%d/port%d/gid_table", in __get_port_guid_from_port_gid_tbl() [all …]
|
/freebsd/usr.bin/tail/ |
H A D | forward.c | 245 printfn(file->file_name, 1); in show() 255 ierr(file->file_name); in show() 320 printfn(file->file_name, 1); in follow() 321 forward(file->fp, file->file_name, style, off, &file->st); in follow() 347 fileargs_fopen(fa, file->file_name, in follow() 361 ftmp = fileargs_fopen(fa, file->file_name, "r"); in follow() 365 ierr(file->file_name); in follow() 422 ierr(file->file_name); in follow()
|
H A D | tail.c | 209 filep->file_name = fn; in main() 210 filep->fp = fileargs_fopen(fa, filep->file_name, "r"); in main() 218 ierr(filep->file_name); in main() 261 file.file_name = fn; in main()
|
/freebsd/contrib/ofed/opensm/complib/ |
H A D | cl_nodenamemap.c | 53 static int parse_node_map_wrap(const char *file_name, 171 static int parse_node_map_wrap(const char *file_name, in parse_node_map_wrap() argument 180 if (!(f = fopen(file_name, "r"))) in parse_node_map_wrap() 225 int parse_node_map(const char *file_name, in parse_node_map() argument 228 return parse_node_map_wrap(file_name, create, cxt, NULL, 0); in parse_node_map()
|
/freebsd/contrib/llvm-project/lldb/source/Interpreter/ |
H A D | OptionValueFileColonLine.cpp | 87 llvm::StringRef file_name; in SetValueFromString() local 90 std::tie(file_name, middle_piece) = left_of_last_piece.rsplit(':'); in SetValueFromString() 96 file_name = left_of_last_piece; in SetValueFromString() 115 m_file_spec.SetFile(file_name, FileSpec::Style::native); in SetValueFromString()
|
/freebsd/contrib/kyua/store/ |
H A D | testdata_v1.sql | 99 INSERT INTO test_case_files (test_case_id, file_name, file_id) 104 INSERT INTO test_case_files (test_case_id, file_name, file_id) 234 INSERT INTO test_case_files (test_case_id, file_name, file_id) 257 INSERT INTO test_case_files (test_case_id, file_name, file_id) 295 INSERT INTO test_case_files (test_case_id, file_name, file_id) 300 INSERT INTO test_case_files (test_case_id, file_name, file_id)
|
H A D | testdata_v2.sql | 121 INSERT INTO test_case_files (test_case_id, file_name, file_id) 126 INSERT INTO test_case_files (test_case_id, file_name, file_id) 302 INSERT INTO test_case_files (test_case_id, file_name, file_id) 347 INSERT INTO test_case_files (test_case_id, file_name, file_id) 396 INSERT INTO test_case_files (test_case_id, file_name, file_id) 401 INSERT INTO test_case_files (test_case_id, file_name, file_id)
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | hs20_supplicant.c | 305 icon_entry->file_name = os_malloc(payload_len + 1); in hs20_anqp_send_req() 306 if (!icon_entry->file_name) { in hs20_anqp_send_req() 310 os_memcpy(icon_entry->file_name, payload, payload_len); in hs20_anqp_send_req() 311 icon_entry->file_name[payload_len] = '\0'; in hs20_anqp_send_req() 323 const char *file_name) in hs20_find_icon() argument 329 os_strcmp(icon->file_name, file_name) == 0 && icon->image) in hs20_find_icon() 338 const char *file_name, size_t offset, size_t size, in hs20_get_icon() argument 348 MAC2STR(bssid), file_name, (unsigned int) offset, in hs20_get_icon() 351 icon = hs20_find_icon(wpa_s, bssid, file_name); in hs20_get_icon() 379 icon->file_name ? icon->file_name : "N/A", in hs20_free_icon_entry() [all …]
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | googletest-test-part-test.cc | 64 EXPECT_STREQ("some_file.cc", result.file_name()); in TEST_F() 112 TEST_F(TestPartResultTest, file_name) { in TEST_F() argument 113 EXPECT_STREQ("foo/bar.cc", r1_.file_name()); in TEST_F() 114 EXPECT_STREQ(nullptr, r3_.file_name()); in TEST_F() 115 EXPECT_STREQ("foo/bar.cc", r4_.file_name()); in TEST_F()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
H A D | CompileUnitIndex.cpp | 231 StringIdRecord file_name; in GetMainSourceFile() local 237 TypeDeserializer::deserializeAs<StringIdRecord>(file_cvt, file_name)); in GetMainSourceFile() 242 if (llvm::sys::path::is_absolute(file_name.String, style)) in GetMainSourceFile() 243 return file_name.String; in GetMainSourceFile() 246 llvm::sys::path::append(absolute_path, file_name.String); in GetMainSourceFile()
|
/freebsd/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectSource.cpp | 70 file_name = std::string(option_arg); in SetOptionValue() 93 file_name.clear(); in OptionParsingStarting() 108 std::string file_name; member in CommandObjectSourceInfo::CommandOptions 485 FileSpec file_spec(m_options.file_name); in DumpLinesForFile() 486 const char *filename = m_options.file_name.c_str(); in DumpLinesForFile() 585 } else if (!m_options.file_name.empty()) { in DoExecute() 634 file_name = std::string(option_arg); in SetOptionValue() 664 file_name = value.GetFileSpec().GetPath(); in SetOptionValue() 680 file_name.clear(); in OptionParsingStarting() 696 std::string file_name; member in CommandObjectSourceList::CommandOptions [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_file.cpp | 129 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size, in ReadFileToBuffer() argument 144 fd_t fd = OpenFile(file_name, RdOnly, errno_p); in ReadFileToBuffer() 173 bool ReadFileToVector(const char *file_name, in ReadFileToVector() argument 180 fd_t fd = OpenFile(file_name, RdOnly, errno_p); in ReadFileToVector()
|