/glibc-2.36/posix/ |
D | tst-getaddrinfo5.c | 36 char *host = hosts[i]; in test() local 37 size_t len = strlen (host); in test() 42 host[len-1] = 0; in test() 43 if (getaddrinfo (host, NULL, NULL, &ai) != 0) in test() 45 printf ("resolving \"%s\" failed, skipping this hostname\n", host); in test() 48 printf ("resolving \"%s\" worked, proceeding to test\n", host); in test() 53 host[len-1] = '.'; in test() 54 if (getaddrinfo (host, NULL, NULL, &ai) == 0) in test() 56 printf ("resolving \"%s\" worked, test failed\n", host); in test() 59 printf ("resolving \"%s\" failed, test passed\n", host); in test()
|
/glibc-2.36/inet/ |
D | getnameinfo.c | 234 char *host, socklen_t hostlen, int flags) in gni_host_inet_name() argument 320 memcpy (host, h_name, len); in gni_host_inet_name() 335 char *host, socklen_t hostlen, int flags) in gni_host_inet_numeric() argument 340 if (inet_ntop (AF_INET6, &sin6p->sin6_addr, host, hostlen) == NULL) in gni_host_inet_numeric() 346 size_t used_hostlen = __strnlen (host, hostlen); in gni_host_inet_numeric() 348 char *scope_start = host + used_hostlen; in gni_host_inet_numeric() 367 if (inet_ntop (AF_INET, &sinp->sin_addr, host, hostlen) == NULL) in gni_host_inet_numeric() 377 char *host, socklen_t hostlen, int flags) in gni_host_inet() argument 382 (tmpbuf, sa, addrlen, host, hostlen, flags); in gni_host_inet() 391 (tmpbuf, sa, addrlen, host, hostlen, flags); in gni_host_inet() [all …]
|
D | inet_mkadr.c | 39 __inet_makeaddr (in_addr_t net, in_addr_t host) in __inet_makeaddr() argument 44 in.s_addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST); in __inet_makeaddr() 46 in.s_addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST); in __inet_makeaddr() 48 in.s_addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST); in __inet_makeaddr() 50 in.s_addr = net | host; in __inet_makeaddr()
|
D | ruserpass.c | 93 ruserpass (const char *host, const char **aname, const char **apass) in ruserpass() argument 139 if (__strcasecmp(host, tokval) == 0) in ruserpass() 148 if ((tmp = strchr(host, '.')) != NULL && in ruserpass() 150 __strncasecmp(host, tokval, tmp - host) == 0 && in ruserpass() 151 tokval[tmp - host] == '\0') in ruserpass()
|
D | getnetgrent_r.c | 219 datap->val.triple.host = get_nonempty_val (datap->cursor); in nscd_getnetgrent() 329 *hostp = (char *) datap->val.triple.host; in __internal_getnetgrent_r() 358 innetgr (const char *netgroup, const char *host, const char *user, in weak_alias() 369 int result = __nscd_innetgr (netgroup, host, user, domain); in weak_alias() 448 if ((entry.val.triple.host == NULL || host == NULL in weak_alias() 449 || __strcasecmp (entry.val.triple.host, host) == 0) in weak_alias()
|
D | tst-if_index-long.c | 50 char *host = xasprintf ("fea0::%%%s", name); in do_test() local 53 TEST_COMPARE (getaddrinfo (host, NULL, &hints, &ai), EAI_NONAME); in do_test()
|
/glibc-2.36/resolv/ |
D | compat-gethnamaddr.c | 81 static struct hostent host; variable 155 host.h_name = NULL; in getanswer() 198 host.h_name = bp; in getanswer() 202 qname = host.h_name; in getanswer() 206 host.h_aliases = host_aliases; in getanswer() 209 host.h_addr_list = h_addr_ptrs; in getanswer() 263 host.h_name = bp; in getanswer() 319 host.h_name = bp; in getanswer() 336 if (strcasecmp(host.h_name, bp) != 0) { in getanswer() 340 if (n != host.h_length) { in getanswer() [all …]
|
D | tst-resolv-rotate.c | 173 char host[200]; in check_forward_1() local 175 host, sizeof (host), in check_forward_1() 186 TEST_VERIFY (strcmp (host, "host.example") == 0); in check_forward_1() 188 TEST_VERIFY (strcmp (host, "2.host.example") == 0); in check_forward_1()
|
D | tst-resolv-res_init-skeleton.c | 187 char host[NI_MAXHOST]; in print_resp() local 206 host, sizeof (host), service, sizeof (service), in print_resp() 217 fprintf (fp, "nameserver %s\n", host); in print_resp() 244 char host[NI_MAXHOST]; in print_resp() local 247 host, sizeof (host), service, sizeof (service), in print_resp() 258 fprintf (fp, "; nameserver[%zu]: [%s]:%s\n", i, host, service); in print_resp()
|
D | tst-resolv-ai_idn-common.c | 282 char host[1024]; in gni_test() local 285 host, sizeof (host), service, sizeof (service), in gni_test() 304 else if (strcmp (host, expected) != 0 || strcmp (service, "80") != 0) in gni_test() 312 (int) code, flags, expected, host, service); in gni_test()
|
/glibc-2.36/nss/nss_files/ |
D | files-netgrp.c | 190 const char *host, *user, *domain; in _nss_netgroup_parseline() local 229 host = ++cp; in _nss_netgroup_parseline() 250 if (cp - host > buflen) in _nss_netgroup_parseline() 257 memcpy (buffer, host, cp - host); in _nss_netgroup_parseline() 260 buffer[(user - host) - 1] = '\0'; /* Replace ',' with '\0'. */ in _nss_netgroup_parseline() 261 result->val.triple.host = strip_whitespace (buffer); in _nss_netgroup_parseline() 263 buffer[(domain - host) - 1] = '\0'; /* Replace ',' with '\0'. */ in _nss_netgroup_parseline() 264 result->val.triple.user = strip_whitespace (buffer + (user - host)); in _nss_netgroup_parseline() 266 buffer[(cp - host) - 1] = '\0'; /* Replace ')' with '\0'. */ in _nss_netgroup_parseline() 267 result->val.triple.domain = strip_whitespace (buffer + (domain - host)); in _nss_netgroup_parseline()
|
/glibc-2.36/nss/ |
D | getent.c | 271 print_hosts (struct hostent *host) in print_hosts() argument 275 for (cnt = 0; host->h_addr_list[cnt] != NULL; ++cnt) in print_hosts() 278 const char *ip = inet_ntop (host->h_addrtype, host->h_addr_list[cnt], in print_hosts() 281 printf ("%-15s %s", ip, host->h_name); in print_hosts() 284 for (i = 0; host->h_aliases[i] != NULL; ++i) in print_hosts() 287 fputs_unlocked (host->h_aliases[i], stdout); in print_hosts() 298 struct hostent *host; in hosts_keys() local 303 while ((host = gethostent ()) != NULL) in hosts_keys() 304 print_hosts (host); in hosts_keys() 311 struct hostent *host = NULL; in hosts_keys() local [all …]
|
D | bug-erange.c | 14 const char *host = "www.gnu.org"; in main() local 28 while ((res = gethostbyname_r (host, &hostbuf, tmphstbuf, hstbuflen, in main()
|
/glibc-2.36/sysdeps/mach/hurd/ |
D | munlock.c | 30 mach_port_t host; in munlock() local 34 err = __get_privileged_ports (&host, NULL); in munlock() 36 host = __mach_host_self(); in munlock() 41 err = __vm_wire (host, __mach_task_self (), page, len, VM_PROT_NONE); in munlock() 42 if (host != __mach_host_self()) in munlock() 43 __mach_port_deallocate (__mach_task_self (), host); in munlock()
|
D | mlock.c | 31 mach_port_t host; in mlock() local 35 err = __get_privileged_ports (&host, NULL); in mlock() 37 host = __mach_host_self(); in mlock() 42 err = __vm_wire (host, __mach_task_self (), page, len, VM_PROT_READ); in mlock() 43 if (host != __mach_host_self()) in mlock() 44 __mach_port_deallocate (__mach_task_self (), host); in mlock()
|
D | munlockall.c | 30 mach_port_t host; in munlockall() local 33 err = __get_privileged_ports (&host, NULL); in munlockall() 37 err = __vm_wire_all (host, __mach_task_self (), VM_WIRE_NONE); in munlockall() 38 __mach_port_deallocate (__mach_task_self (), host); in munlockall()
|
D | mlockall.c | 32 mach_port_t host; in mlockall() local 35 err = __get_privileged_ports (&host, NULL); in mlockall() 39 err = __vm_wire_all (host, __mach_task_self (), flags); in mlockall() 40 __mach_port_deallocate (__mach_task_self (), host); in mlockall()
|
/glibc-2.36/sunrpc/ |
D | clnt_simp.c | 55 callrpc (const char *host, u_long prognum, u_long versnum, u_long procnum, in callrpc() argument 77 && strcmp (crp->oldhost, host) == 0) in callrpc() 95 if (__libc_rpc_gethostbyname (host, &server_addr) != 0) in callrpc() 106 (void) strncpy (crp->oldhost, host, 255); in callrpc()
|
D | netname.c | 60 host2netname (char netname[MAXNETNAMELEN + 1], const char *host, in libc_hidden_nolink_sunrpc() 71 if (host == NULL) in libc_hidden_nolink_sunrpc() 75 strncpy (hostname, host, MAXHOSTNAMELEN); in libc_hidden_nolink_sunrpc()
|
D | getrpcport.c | 61 getrpcport (const char *host, u_long prognum, u_long versnum, u_int proto) in getrpcport() argument 65 if (__libc_rpc_gethostbyname (host, &addr) != 0) in getrpcport()
|
/glibc-2.36/nscd/ |
D | nscd_netgroup.c | 165 __nscd_innetgr (const char *netgroup, const char *host, const char *user, in __nscd_innetgr() argument 168 size_t key_len = (strlen (netgroup) + strlen (host ?: "") in __nscd_innetgr() 181 if (host != NULL) in __nscd_innetgr() 184 wp = stpcpy (wp, host) + 1; in __nscd_innetgr()
|
D | netgroupcache.c | 204 const char *nhost = data.val.triple.host; in addgetnetgrentX() 458 const char *host = *key++ ? key : NULL; in addinnetgrX() local 459 if (host != NULL) in addinnetgrX() 470 group, host ?: "", user ?: "", domain ?: ""); in addinnetgrX() 473 group, host ?: "", user ?: "", domain ?: ""); in addinnetgrX() 539 if (host != NULL && *triplets != '\0') in addinnetgrX() 540 success = strcmp (host, triplets) == 0; in addinnetgrX()
|
/glibc-2.36/scripts/ |
D | cross-test-ssh.sh | 111 host="$1"; shift 158 $ssh "$host" /bin/sh -c "$full_command"
|
/glibc-2.36/login/ |
D | logwtmp.c | 27 __logwtmp (const char *line, const char *name, const char *host) in __logwtmp() argument 37 strncpy (ut.ut_host, host, sizeof ut.ut_host); in __logwtmp()
|
/glibc-2.36/include/ |
D | netdb.h | 193 extern int ruserpass (const char *host, const char **aname, 237 (struct hostent *host, char *buffer, size_t buflen, \ 240 (const char *name, int af, struct hostent *host, \ 244 (const char *name, struct hostent *host, char *buffer, \ 248 struct hostent *host, char *buffer, size_t buflen, \
|