Home
last modified time | relevance | path

Searched refs:hp (Results 1 – 12 of 12) sorted by relevance

/busybox-1.35.0/archival/
Dchksum_and_xwrite_tar_header.c12 void FAST_FUNC chksum_and_xwrite_tar_header(int fd, struct tar_header_t *hp) in chksum_and_xwrite_tar_header() argument
20 strcpy(hp->magic, "ustar "); in chksum_and_xwrite_tar_header()
27 memset(hp->chksum, ' ', sizeof(hp->chksum)); in chksum_and_xwrite_tar_header()
28 cp = (const unsigned char *) hp; in chksum_and_xwrite_tar_header()
30 size = sizeof(*hp); in chksum_and_xwrite_tar_header()
32 sprintf(hp->chksum, "%06o", chksum); in chksum_and_xwrite_tar_header()
34 xwrite(fd, hp, sizeof(*hp)); in chksum_and_xwrite_tar_header()
/busybox-1.35.0/networking/
Dhostname.c157 struct hostent *hp; in hostname_main() local
160 hp = xgethostbyname(buf); in hostname_main()
161 p = strchrnul(hp->h_name, '.'); in hostname_main()
163 puts(hp->h_name); in hostname_main()
166 puts(hp->h_name); in hostname_main()
171 if (hp->h_length == sizeof(struct in_addr)) { in hostname_main()
172 struct in_addr **h_addr_list = (struct in_addr **)hp->h_addr_list; in hostname_main()
Dtls.c1665 struct server_hello *hp; in get_server_hello() local
1672 hp = (void*)tls->inbuf; in get_server_hello()
1676 if (hp->type != HANDSHAKE_SERVER_HELLO in get_server_hello()
1677 || hp->len24_hi != 0 in get_server_hello()
1678 || hp->len24_mid != 0 in get_server_hello()
1680 || hp->proto_maj != TLS_MAJ in get_server_hello()
1681 || hp->proto_min != TLS_MIN in get_server_hello()
1686 cipherid = &hp->cipherid_hi; in get_server_hello()
1687 len24 = hp->len24_lo; in get_server_hello()
1688 if (hp->session_id_len != 32) { in get_server_hello()
[all …]
/busybox-1.35.0/libbb/
Dinet_common.c21 struct hostent *hp; in INET_resolve() local
42 hp = gethostbyname(name); in INET_resolve()
43 if (hp) { in INET_resolve()
44 memcpy(&s_in->sin_addr, hp->h_addr_list[0], in INET_resolve()
67 hp = gethostbyname(name); in INET_resolve()
68 if (!hp) { in INET_resolve()
71 memcpy(&s_in->sin_addr, hp->h_addr_list[0], sizeof(struct in_addr)); in INET_resolve()
Dlineedit.c1388 unsigned FAST_FUNC size_from_HISTFILESIZE(const char *hp) in size_from_HISTFILESIZE() argument
1391 if (hp) { in size_from_HISTFILESIZE()
1392 size = atoi(hp); in size_from_HISTFILESIZE()
/busybox-1.35.0/util-linux/
Dcal.c117 IF_UNICODE_SUPPORT(char *hp = day_headings;) in cal_main()
166 *hp++ = ' '; in cal_main()
169 strcpy(hp, two_wchars); in cal_main()
172 hp += strlen(hp); in cal_main()
173 *hp++ = ' '; in cal_main()
179 IF_UNICODE_SUPPORT(hp[-1] = '\0';) in cal_main()
Dmount.c1259 struct hostent *hp; in nfsmount() local
1321 hp = gethostbyname(hostname); in nfsmount()
1322 if (hp == NULL) { in nfsmount()
1326 if (hp->h_length != (int)sizeof(struct in_addr)) { in nfsmount()
1329 memcpy(&server_addr.sin_addr, hp->h_addr_list[0], sizeof(struct in_addr)); in nfsmount()
1616 hp = gethostbyname(mounthost); in nfsmount()
1617 if (hp == NULL) { in nfsmount()
1621 if (hp->h_length != (int)sizeof(struct in_addr)) { in nfsmount()
1625 memcpy(&mount_server_addr.sin_addr, hp->h_addr_list[0], sizeof(struct in_addr)); in nfsmount()
/busybox-1.35.0/archival/libarchive/bz/
Dblocksort.c477 int hp = 0; in mainSimpleSort() local
482 while (incs[hp] <= bigN) in mainSimpleSort()
483 hp++; in mainSimpleSort()
484 hp--; in mainSimpleSort()
487 for (; hp >= 0; hp--) { in mainSimpleSort()
491 h = incs[hp]; in mainSimpleSort()
/busybox-1.35.0/include/
Dbb_archive.h170 void chksum_and_xwrite_tar_header(int fd, struct tar_header_t *hp) FAST_FUNC;
Dlibbb.h1912 unsigned size_from_HISTFILESIZE(const char *hp) FAST_FUNC;
/busybox-1.35.0/shell/
Dhush.c10471 const char *hp = NULL; in hush_main() local
10489 if (!hp) { /* unless we looped on the "goto" already */ in hush_main()
10490 hp = get_local_var_value("HOME"); in hush_main()
10491 if (hp && hp[0]) { in hush_main()
10493 hp = concat_path_file(hp, ".profile"); in hush_main()
10494 input = hfopen(hp); in hush_main()
10495 free((char*)hp); in hush_main()
10650 const char *hp = get_local_var_value("HISTFILE"); in hush_main() local
10651 if (!hp) { in hush_main()
10652 hp = get_local_var_value("HOME"); in hush_main()
[all …]
Dash.c14648 const char *hp; in ash_main() local
14654 hp = lookupvar("HOME"); in ash_main()
14655 if (hp) in ash_main()
14694 const char *hp = lookupvar("HISTFILE"); in ash_main() local
14695 if (!hp) { in ash_main()
14696 hp = lookupvar("HOME"); in ash_main()
14697 if (hp) { in ash_main()
14699 hp = concat_path_file(hp, ".ash_history"); in ash_main()
14700 setvar0("HISTFILE", hp); in ash_main()
14701 free((char*)hp); in ash_main()
[all …]