/external/ltp/testcases/kernel/syscalls/sethostname/ |
D | sethostname01.c | 81 static char hname[MAX_LENGTH]; /* host name */ variable 132 if ((ret = gethostname(hname, sizeof(hname))) < 0) { in setup() 150 if ((ret = sethostname(hname, strlen(hname))) < 0) { in cleanup() 152 " hostname to \"%s\": %s", hname, strerror(errno)); in cleanup()
|
D | sethostname03.c | 84 static char hname[MAX_LENGTH]; variable 149 if ((ret = gethostname(hname, sizeof(hname))) < 0) { in setup() 174 if ((ret = sethostname(hname, strlen(hname))) < 0) { in cleanup() 176 " hostname to \"%s\"", hname); in cleanup()
|
D | sethostname02.c | 93 static char hname[MAX_LENGTH]; variable 168 if ((ret = gethostname(hname, sizeof(hname))) < 0) { in setup() 186 if ((ret = sethostname(hname, strlen(hname))) < 0) { in cleanup() 188 " hostname to \"%s\"", hname); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/gethostname/ |
D | gethostname01.c | 126 char hname[100]; /* host name */ in main() local 136 TEST(gethostname(hname, sizeof(hname))); in main()
|
/external/toybox/toys/pending/ |
D | tar.c | 169 char *c, *p, *name = *nam, *lnk, *hname, buf[512] = {0,}; in add_file() local 182 hname = name; in add_file() 184 if (*hname == '/') hname++; in add_file() 185 if (!*hname) return; in add_file() 186 while ((c = strstr(hname, "../"))) hname = c + 3; in add_file() 187 if (warn && hname != name) { in add_file() 189 "from member names\n", (int)(hname-name), name); in add_file() 194 strncpy(hdr.name, hname, sizeof(hdr.name)); in add_file() 202 if ((node = seen_inode(&TT.inodes, st, hname))) { in add_file() 206 write_longname(tar, hname, 'K'); //write longname LINK in add_file() [all …]
|
D | dhcp.c | 887 static uint8_t *dhcpc_addfdnname(uint8_t *optptr, char *hname) in dhcpc_addfdnname() argument 889 int size = strlen(hname); in dhcpc_addfdnname() 895 strcpy((char*)optptr, hname); // name in dhcpc_addfdnname()
|
/external/golang-protobuf/protoc-gen-go/grpc/ |
D | grpc.go | 231 hname := g.generateServerMethod(servName, fullServName, method) 232 handlerNames = append(handlerNames, hname) 397 hname := fmt.Sprintf("_%s_%s_Handler", servName, methName) 402 …g.P("func ", hname, "(srv interface{}, ctx ", contextPkg, ".Context, dec func(interface{}) error, … 416 return hname 419 g.P("func ", hname, "(srv interface{}, stream ", grpcPkg, ".ServerStream) error {") 475 return hname
|
/external/mksh/src/ |
D | histrap.c | 67 static char *hname; variable 536 if (hname && name && !strcmp(hname, name)) in sethistfile() 547 afree(hname, APERM); in sethistfile() 548 hname = NULL; in sethistfile() 777 if (((hname = str_val(global("HISTFILE"))) == NULL) || !*hname) { in hist_persist_init() 778 hname = NULL; in hist_persist_init() 781 strdupx(hname, hname, APERM); in hist_persist_init() 786 if ((fd = binopen3(hname, O_RDWR | O_CREAT | O_APPEND, 0600)) < 0) in hist_persist_init() 819 nhname = shf_smprintf("%s.%d", hname, (int)procpid); in hist_persist_init() 865 if (!unlink(hname) && hs != hist_init_retry) { in hist_persist_init() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | SIPHeader.java | 53 protected SIPHeader(String hname) { in SIPHeader() argument 54 headerName = hname; in SIPHeader()
|
D | SIPHeaderList.java | 76 protected SIPHeaderList(Class<HDR> objclass, String hname) { in SIPHeaderList() argument 78 this.headerName = hname; in SIPHeaderList()
|
/external/mdnsresponder/mDNSPosix/ |
D | parselog.py | 216 for ip,[height,hname,hinfo] in ipList.items(): 223 c.showTextAtPoint(pageRect.origin.x + 2 + typesize*8, height*typesize + 2, hname, len(hname))
|
/external/nist-sip/java/gov/nist/javax/sip/address/ |
D | SipUri.java | 206 String hname = (String) i.next(); in equals() local 208 String h1 = a.getHeader(hname); in equals() 209 String h2 = b.getHeader(hname); in equals() 216 … Header header1 = headerFactory.createHeader(hname, RFC2396UrlDecoder.decode(h1)); in equals() 217 … Header header2 = headerFactory.createHeader(hname, RFC2396UrlDecoder.decode(h2)); in equals()
|
/external/nist-sip/java/gov/nist/core/ |
D | HostNameParser.java | 65 public HostNameParser(String hname) { in HostNameParser() argument 66 this.lexer = new LexerCore("charLexer", hname); in HostNameParser()
|
/external/tcpdump/ |
D | addrtoname.c | 107 char hname[NI_MAXHOST]; in win32_gethostbyaddr() local 120 hname, sizeof(hname), NULL, 0, 0)) { in win32_gethostbyaddr() 123 strcpy(host.h_name, hname); in win32_gethostbyaddr()
|
/external/icu/icu4c/source/test/intltest/ |
D | tzregts.cpp | 503 UnicodeString hname = UnicodeString((h<0) ? "GMT-" : "GMT+") + in Test4151406() local 519 … logln(hname + ' ' + (UnicodeString)count + (UnicodeString)" e.g. " + *ids->snext(ec)); in Test4151406() 521 logln(hname + ' ' + count); in Test4151406()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneRegressionTest.java | 359 String hname = ((h<0) ? "GMT-" : "GMT+") + in Test4151406() local 366 logln(hname + ' ' + ids.length + in Test4151406() 369 errln(hname + ' ' + "Fail: " + e); in Test4151406()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneRegressionTest.java | 362 String hname = ((h<0) ? "GMT-" : "GMT+") + in Test4151406() local 369 logln(hname + ' ' + ids.length + in Test4151406() 372 errln(hname + ' ' + "Fail: " + e); in Test4151406()
|
/external/python/cpython2/Lib/ |
D | tarfile.py | 1051 for name, hname, length in ( 1055 if hname in pax_headers: 1065 pax_headers[hname] = val 1069 pax_headers[hname] = val
|
/external/python/cpython3/Lib/ |
D | tarfile.py | 859 for name, hname, length in ( 863 if hname in pax_headers: 871 pax_headers[hname] = info[name] 875 pax_headers[hname] = info[name]
|
/external/python/cpython2/Lib/test/ |
D | test_socket.py | 361 hname, aliases, ipaddrs = socket.gethostbyaddr(ip) 365 all_host_names = [hostname, hname] + aliases
|
/external/openssh/ |
D | ssh-keygen.c | 1375 do_print_resource_record(struct passwd *pw, char *fname, char *hname) in do_print_resource_record() argument 1392 export_dns_rr(hname, public, stdout, print_generic); in do_print_resource_record()
|
/external/python/cpython3/Lib/test/ |
D | test_socket.py | 869 hname, aliases, ipaddrs = socket.gethostbyaddr(ip) 873 all_host_names = [hostname, hname] + aliases
|