/dports/net/p5-Net-SSH-Perl/Net-SSH-Perl-2.14/lib/Net/SSH/Perl/Util/ |
H A D | Hosts.pm | 17 my($host, $port, $hostfile, $key) = @_; 25 open my $fh, '<', $hostfile or return HOST_NEW; 67 my($host, $port, $hostfile) = @_; 77 open my $fh, '<', $hostfile or return 0; 115 unless (-e $hostfile) { 133 open my $fh, '>>', $hostfile or croak "Can't write to $hostfile: $!"; 154 my($host, $port, $hostfile, $key) = @_; 155 return unless -e $hostfile; 164 open my $fh, '<', $hostfile or croak "Can't open $hostfile: $!"; 165 open my $fhw, '>', "$hostfile.new" or croak "Can't open $hostfile.new for writing: $!"; [all …]
|
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/sys/linux/net/ |
H A D | gethostbyht.c | 83 if (!*hostfile) in _sethosthtent_r() 84 *hostfile = fopen(_PATH_HOSTS, "r" ); in _sethosthtent_r() 86 rewind(*hostfile); in _sethosthtent_r() 93 if (*hostfile && !*hstayopen) { in _endhosthtent_r() 94 (void) fclose(*hostfile); in _endhosthtent_r() 95 *hostfile = NULL; in _endhosthtent_r() 137 if (!*hostfile && !(*hostfile = fopen(_PATH_HOSTS, "r" ))) { in gethostent_r() 212 FILE *hostfile = NULL; in _ht_gethostbyname() local 234 endhostent_r(&hostfile, &stayopen); in _ht_gethostbyname() 257 FILE *hostfile = NULL; in _ht_gethostbyaddr() local [all …]
|
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/sys/linux/net/ |
H A D | gethostbyht.c | 83 if (!*hostfile) in _sethosthtent_r() 84 *hostfile = fopen(_PATH_HOSTS, "r" ); in _sethosthtent_r() 86 rewind(*hostfile); in _sethosthtent_r() 93 if (*hostfile && !*hstayopen) { in _endhosthtent_r() 94 (void) fclose(*hostfile); in _endhosthtent_r() 95 *hostfile = NULL; in _endhosthtent_r() 137 if (!*hostfile && !(*hostfile = fopen(_PATH_HOSTS, "r" ))) { in gethostent_r() 212 FILE *hostfile = NULL; in _ht_gethostbyname() local 234 endhostent_r(&hostfile, &stayopen); in _ht_gethostbyname() 257 FILE *hostfile = NULL; in _ht_gethostbyaddr() local [all …]
|
/dports/net/mpich/mpich-3.4.3/src/pm/hydra/tools/bootstrap/external/ |
H A D | ll_query_node_list.c | 15 char *hostfile; in HYDT_bscd_ll_query_node_list() local 20 if (MPL_env2str("LOADL_HOSTFILE", (const char **) &hostfile) == 0) in HYDT_bscd_ll_query_node_list() 21 hostfile = NULL; in HYDT_bscd_ll_query_node_list() 23 if (hostfile == NULL) { in HYDT_bscd_ll_query_node_list() 27 status = HYDU_parse_hostfile(hostfile, node_list, HYDU_process_mfile_token); in HYDT_bscd_ll_query_node_list() 51 char *hostfile; in HYDTI_bscd_ll_query_node_count() local 56 if (MPL_env2str("LOADL_HOSTFILE", (const char **) &hostfile) == 0) in HYDTI_bscd_ll_query_node_count() 57 hostfile = NULL; in HYDTI_bscd_ll_query_node_count() 59 if (hostfile == NULL) { in HYDTI_bscd_ll_query_node_count() 63 status = HYDU_parse_hostfile(hostfile, NULL, process_mfile_count); in HYDTI_bscd_ll_query_node_count()
|
H A D | cobalt_query_node_list.c | 12 char *hostfile; in HYDT_bscd_cobalt_query_node_list() local 17 if (MPL_env2str("COBALT_NODEFILE", (const char **) &hostfile) == 0) in HYDT_bscd_cobalt_query_node_list() 18 hostfile = NULL; in HYDT_bscd_cobalt_query_node_list() 20 if (hostfile == NULL) { in HYDT_bscd_cobalt_query_node_list() 24 status = HYDU_parse_hostfile(hostfile, node_list, HYDU_process_mfile_token); in HYDT_bscd_cobalt_query_node_list()
|
H A D | pbs_query_node_list.c | 12 char *hostfile; in HYDT_bscd_pbs_query_node_list() local 17 if (MPL_env2str("PBS_NODEFILE", (const char **) &hostfile) == 0) in HYDT_bscd_pbs_query_node_list() 18 hostfile = NULL; in HYDT_bscd_pbs_query_node_list() 20 if (hostfile == NULL) { in HYDT_bscd_pbs_query_node_list() 24 status = HYDU_parse_hostfile(hostfile, node_list, HYDU_process_mfile_token); in HYDT_bscd_pbs_query_node_list()
|
H A D | sge_query_node_list.c | 46 char *hostfile; in HYDT_bscd_sge_query_node_list() local 51 if (MPL_env2str("PE_HOSTFILE", (const char **) &hostfile) == 0) in HYDT_bscd_sge_query_node_list() 52 hostfile = NULL; in HYDT_bscd_sge_query_node_list() 54 if (hostfile == NULL) { in HYDT_bscd_sge_query_node_list() 58 status = HYDU_parse_hostfile(hostfile, node_list, process_mfile_token); in HYDT_bscd_sge_query_node_list()
|
/dports/net/mpich2/mpich2-1.5/src/pm/hydra/tools/bootstrap/external/ |
H A D | ll_query_node_list.c | 16 char *hostfile; in HYDT_bscd_ll_query_node_list() local 21 if (MPL_env2str("LOADL_HOSTFILE", (const char **) &hostfile) == 0) in HYDT_bscd_ll_query_node_list() 22 hostfile = NULL; in HYDT_bscd_ll_query_node_list() 24 if (hostfile == NULL) { in HYDT_bscd_ll_query_node_list() 29 status = HYDU_parse_hostfile(hostfile, node_list, HYDU_process_mfile_token); in HYDT_bscd_ll_query_node_list() 57 char *hostfile; in HYDTI_bscd_ll_query_node_count() local 62 if (MPL_env2str("LOADL_HOSTFILE", (const char **) &hostfile) == 0) in HYDTI_bscd_ll_query_node_count() 63 hostfile = NULL; in HYDTI_bscd_ll_query_node_count() 65 if (hostfile == NULL) { in HYDTI_bscd_ll_query_node_count() 70 status = HYDU_parse_hostfile(hostfile, NULL, process_mfile_count); in HYDTI_bscd_ll_query_node_count()
|
H A D | pbs_query_node_list.c | 13 char *hostfile; in HYDT_bscd_pbs_query_node_list() local 18 if (MPL_env2str("PBS_NODEFILE", (const char **) &hostfile) == 0) in HYDT_bscd_pbs_query_node_list() 19 hostfile = NULL; in HYDT_bscd_pbs_query_node_list() 21 if (hostfile == NULL) { in HYDT_bscd_pbs_query_node_list() 26 status = HYDU_parse_hostfile(hostfile, node_list, HYDU_process_mfile_token); in HYDT_bscd_pbs_query_node_list()
|
H A D | sge_query_node_list.c | 48 char *hostfile; in HYDT_bscd_sge_query_node_list() local 53 if (MPL_env2str("PE_HOSTFILE", (const char **) &hostfile) == 0) in HYDT_bscd_sge_query_node_list() 54 hostfile = NULL; in HYDT_bscd_sge_query_node_list() 56 if (hostfile == NULL) { in HYDT_bscd_sge_query_node_list() 61 status = HYDU_parse_hostfile(hostfile, node_list, process_mfile_token); in HYDT_bscd_sge_query_node_list()
|
/dports/net/openmpi/openmpi-4.1.1/orte/util/ |
H A D | Makefile.am | 28 dist_ortedata_DATA += util/hostfile/help-hostfile.txt \ 32 nodist_man_MANS = util/hostfile/orte_hosts.7 38 $(nodist_man_MANS): util/hostfile/$(am__dirstamp) $(top_builddir)/opal/include/opal_config.h 55 util/hostfile/hostfile.h \ 56 util/hostfile/hostfile_lex.h \ 74 util/hostfile/hostfile_lex.l \ 75 util/hostfile/hostfile.c \ 87 rm -f util/hostfile/hostfile_lex.c
|
/dports/net/openmpi3/openmpi-3.1.6/orte/util/ |
H A D | Makefile.am | 28 dist_ortedata_DATA += util/hostfile/help-hostfile.txt \ 32 nodist_man_MANS = util/hostfile/orte_hosts.7 38 $(nodist_man_MANS): util/hostfile/$(am__dirstamp) $(top_builddir)/opal/include/opal_config.h 55 util/hostfile/hostfile.h \ 56 util/hostfile/hostfile_lex.h \ 74 util/hostfile/hostfile_lex.l \ 75 util/hostfile/hostfile.c \ 87 rm -f util/hostfile/hostfile_lex.c
|
/dports/net/cloud-init/cloud-init-21.4/tests/unittests/test_distros/ |
H A D | test_gentoo.py | 14 hostfile = self.tmp_path("hostfile") 15 distro._write_hostname(hostname, hostfile) 16 self.assertEqual('hostname="myhostname"\n', util.load_file(hostfile)) 22 hostfile = self.tmp_path("hostfile") 23 atomic_helper.write_file(hostfile, contents, omode="w") 24 distro._write_hostname(hostname, hostfile) 26 util.load_file(hostfile))
|
H A D | test_photon.py | 31 hostfile = self.tmp_path('previous-hostname') 32 self.distro._write_hostname(hostname, hostfile) 33 self.assertEqual(hostname, util.load_file(hostfile)) 35 ret = self.distro._read_hostname(hostfile) 39 hostfile += 'hostfile' 40 self.distro._write_hostname(hostname, hostfile) 43 ret = self.distro._read_hostname(hostfile)
|
/dports/comms/hylafax/hylafax-6.0.7/util/ |
H A D | faxdeluser.c | 49 char* hostfile = FAX_SPOOLDIR "/" FAX_PERMFILE; in main() local 58 hostfile = optarg; in main() 66 if ((hf = fopen(hostfile, "r+")) == NULL) { in main() 67 snprintf(buff, sizeof(buff), "Error - cannot open file: %s", hostfile); in main() 71 snprintf(newhostfile, sizeof(newhostfile), "%s.%i", hostfile, (int)getpid()); in main() 103 if (rename(newhostfile, hostfile)) { in main() 108 if (pw == NULL || chown(hostfile, pw->pw_uid, pw->pw_uid)) { in main()
|
/dports/math/cado-nfs/cado-nfs-f4284e2391121b2bfb97bc4880b6273c7250dc2f/tests/linalg/bwc/ |
H A D | bwc-dispatch-matmul.sh | 34 elif [[ "$1" =~ ^hostfile=(.+)$ ]] ; then 35 hostfile="${BASH_REMATCH[1]}" 36 if ! [ -f "$hostfile" ] ; then 37 echo "hostfile $hostfile does not exist" >&2 116 if [ "$hostfile" ] ; then 117 set "$@" hostfile="$hostfile"
|
/dports/sysutils/slurm-wlm/slurm-20.02.7/testsuite/expect/ |
H A D | test1.52 | 38 set hostfile "test$test_id.hostfile" 75 exec $bin_rm -f %hostfile 85 set env(SLURM_HOSTFILE) $hostfile 89 set file [open $hostfile "w"] 96 set env(SLURM_HOSTFILE) $hostfile 100 set file [open $hostfile "w"] 166 exec $bin_rm -f $hostfile
|
/dports/net/mpich/mpich-3.4.3/src/pm/hydra2/libhydra/rmk/pbs/ |
H A D | pbs_query_node_list.c | 12 char *hostfile; in HYDI_rmk_pbs_query_node_list() local 17 MPL_env2str("PBS_NODEFILE", (const char **) &hostfile); in HYDI_rmk_pbs_query_node_list() 19 if (hostfile == NULL) { in HYDI_rmk_pbs_query_node_list() 23 status = HYD_hostfile_parse(hostfile, node_count, nodes, HYD_hostfile_process_tokens); in HYDI_rmk_pbs_query_node_list()
|
/dports/net/mpich/mpich-3.4.3/src/pm/hydra2/libhydra/rmk/cobalt/ |
H A D | cobalt_query_node_list.c | 12 char *hostfile; in HYDI_rmk_cobalt_query_node_list() local 17 MPL_env2str("COBALT_NODEFILE", (const char **) &hostfile); in HYDI_rmk_cobalt_query_node_list() 19 if (hostfile == NULL) { in HYDI_rmk_cobalt_query_node_list() 23 status = HYD_hostfile_parse(hostfile, node_count, nodes, HYD_hostfile_process_tokens); in HYDI_rmk_cobalt_query_node_list()
|
/dports/biology/ncbi-cxx-toolkit/ncbi_cxx--25_2_0/src/dbapi/driver/ftds100/freetds/dblib/ |
H A D | bcp.c | 864 FILE *hostfile = NULL; in _bcp_exec_out() local 928 if (!(hostfile = fopen(dbproc->hostfileinfo->hostfile, "w"))) { in _bcp_exec_out() 988 if (fclose(hostfile) != 0) { in _bcp_exec_out() 992 hostfile = NULL; in _bcp_exec_out() 1013 if (hostfile) in _bcp_exec_out() 1014 fclose(hostfile); in _bcp_exec_out() 1101 assert(hostfile); in _bcp_read_hostfile() 1410 if (!(hostfile = fopen(dbproc->hostfileinfo->hostfile, "r"))) { in _bcp_exec_in() 1416 fclose(hostfile); in _bcp_exec_in() 1437 fclose(hostfile); in _bcp_exec_in() [all …]
|
/dports/biology/ncbi-cxx-toolkit/ncbi_cxx--25_2_0/src/dbapi/driver/ftds95/freetds/dblib/ |
H A D | bcp.c | 849 FILE *hostfile = NULL; in _bcp_exec_out() local 913 if (!(hostfile = fopen(dbproc->hostfileinfo->hostfile, "w"))) { in _bcp_exec_out() 973 if (fclose(hostfile) != 0) { in _bcp_exec_out() 977 hostfile = NULL; in _bcp_exec_out() 998 if (hostfile) in _bcp_exec_out() 999 fclose(hostfile); in _bcp_exec_out() 1086 assert(hostfile); in _bcp_read_hostfile() 1396 if (!(hostfile = fopen(dbproc->hostfileinfo->hostfile, "r"))) { in _bcp_exec_in() 1402 fclose(hostfile); in _bcp_exec_in() 1423 fclose(hostfile); in _bcp_exec_in() [all …]
|
/dports/net/mpich/mpich-3.4.3/src/pm/hydra2/libhydra/rmk/sge/ |
H A D | sge_query_node_list.c | 20 char *hostfile; in HYDI_rmk_sge_query_node_list() local 25 MPL_env2str("PE_HOSTFILE", (const char **) &hostfile); in HYDI_rmk_sge_query_node_list() 27 if (hostfile == NULL) { in HYDI_rmk_sge_query_node_list() 31 status = HYD_hostfile_parse(hostfile, node_count, nodes, process_mfile_tokens); in HYDI_rmk_sge_query_node_list()
|
/dports/net-mgmt/torrus/torrus-2.09/bin/ |
H A D | genddx.in | 36 our $hostfile; 73 'hostfile=s' => \$hostfile, 88 ( not $hostfile and scalar(@hosts) == 0 ) or 160 if( defined $hostfile ) 162 my $fh = IO::File->new($hostfile, 'r'); 165 print STDERR "Cannot open $hostfile: $!";
|
/dports/net/mpich/mpich-3.4.3/src/pm/hydra2/libhydra/rmk/ll/ |
H A D | ll_query_node_list.c | 12 char *hostfile; in HYDI_rmk_ll_query_node_list() local 27 MPL_env2str("LOADL_HOSTFILE", (const char **) &hostfile); in HYDI_rmk_ll_query_node_list() 29 if (hostfile == NULL) { in HYDI_rmk_ll_query_node_list() 33 status = HYD_hostfile_parse(hostfile, node_count, nodes, HYD_hostfile_process_tokens); in HYDI_rmk_ll_query_node_list()
|
/dports/databases/freetds-devel/freetds-dev.1.3.7/src/dblib/ |
H A D | bcp.c | 874 FILE *hostfile = NULL; in _bcp_exec_out() local 938 if (!(hostfile = fopen(dbproc->hostfileinfo->hostfile, "w"))) { in _bcp_exec_out() 998 if (fclose(hostfile) != 0) { in _bcp_exec_out() 1002 hostfile = NULL; in _bcp_exec_out() 1023 if (hostfile) in _bcp_exec_out() 1024 fclose(hostfile); in _bcp_exec_out() 1147 assert(hostfile); in _bcp_read_hostfile() 1453 if (!(hostfile = fopen(dbproc->hostfileinfo->hostfile, "r"))) { in _bcp_exec_in() 1459 fclose(hostfile); in _bcp_exec_in() 1490 fclose(hostfile); in _bcp_exec_in() [all …]
|