Home
last modified time | relevance | path

Searched refs:hname (Results 1 – 22 of 22) sorted by relevance

/external/ltp/testcases/kernel/syscalls/sethostname/
Dsethostname01.c81 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()
Dsethostname03.c84 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()
Dsethostname02.c93 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/
Dgethostname01.c126 char hname[100]; /* host name */ in main() local
136 TEST(gethostname(hname, sizeof(hname))); in main()
/external/toybox/toys/pending/
Dtar.c169 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 …]
Ddhcp.c887 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/
Dgrpc.go231 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/
Dhistrap.c67 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/
DSIPHeader.java53 protected SIPHeader(String hname) { in SIPHeader() argument
54 headerName = hname; in SIPHeader()
DSIPHeaderList.java76 protected SIPHeaderList(Class<HDR> objclass, String hname) { in SIPHeaderList() argument
78 this.headerName = hname; in SIPHeaderList()
/external/mdnsresponder/mDNSPosix/
Dparselog.py216 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/
DSipUri.java206 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/
DHostNameParser.java65 public HostNameParser(String hname) { in HostNameParser() argument
66 this.lexer = new LexerCore("charLexer", hname); in HostNameParser()
/external/tcpdump/
Daddrtoname.c107 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/
Dtzregts.cpp503 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/
DTimeZoneRegressionTest.java359 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/
DTimeZoneRegressionTest.java362 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/
Dtarfile.py1051 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/
Dtarfile.py859 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/
Dtest_socket.py361 hname, aliases, ipaddrs = socket.gethostbyaddr(ip)
365 all_host_names = [hostname, hname] + aliases
/external/openssh/
Dssh-keygen.c1375 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/
Dtest_socket.py869 hname, aliases, ipaddrs = socket.gethostbyaddr(ip)
873 all_host_names = [hostname, hname] + aliases