Home
last modified time | relevance | path

Searched full:hp (Results 1 – 25 of 986) sorted by relevance

12345678910>>...40

/freebsd/libexec/bootpd/
H A Ddumptab.c45 struct host *hp; in dumptab() local
103 for (hp = (struct host *) hash_FirstEntry(nmhashtable); hp != NULL; in dumptab()
104 hp = (struct host *) hash_NextEntry(nmhashtable)) { in dumptab()
105 dump_host(fp, hp); in dumptab()
117 * Dump all the available information on the host pointed to by "hp".
122 dump_host(FILE *fp, struct host *hp) in dump_host() argument
125 if (hp) { in dump_host()
126 fprintf(fp, "%s:", (hp->hostname ? in dump_host()
127 hp->hostname->string : "?")); in dump_host()
128 if (hp->flags.bootfile) { in dump_host()
[all …]
H A Ddovend.c37 dovend_rfc1497(struct host *hp, byte *buf, int len) in dovend_rfc1497() argument
46 hp->hostname->string, MSG); \ in dovend_rfc1497()
63 if (hp->flags.time_offset) { in dovend_rfc1497()
67 insert_u_long(htonl(hp->time_offset), &vp); /* -4 bytes */ in dovend_rfc1497()
73 if (hp->flags.swap_server) { in dovend_rfc1497()
78 insert_u_long(hp->swap_server.s_addr, &vp); /* -4 bytes */ in dovend_rfc1497()
81 if (hp->flags.root_path) { in dovend_rfc1497()
86 len = strlen(hp->root_path->string); in dovend_rfc1497()
90 bcopy(hp->root_path->string, vp, len); in dovend_rfc1497()
94 if (hp->flags.dump_file) { in dovend_rfc1497()
[all …]
H A Dreadfile.c308 struct host *hp; in readtab() local
377 hp = (struct host *) smalloc(sizeof(struct host)); in readtab()
378 bzero((char *) hp, sizeof(*hp)); in readtab()
384 if (process_entry(hp, buffer) < 0) { in readtab()
385 hp->linkcount = 1; in readtab()
386 free_host((hash_datum *) hp); in readtab()
394 if (goodname(hp->hostname->string)) { in readtab()
395 char *hn = hp->hostname->string; in readtab()
397 if (hp->flags.iaddr == 0) { in readtab()
402 hp->iaddr.s_addr = value; in readtab()
[all …]
/freebsd/sbin/hastd/
H A Dhooks.c83 static void hook_remove(struct hookproc *hp);
84 static void hook_free(struct hookproc *hp);
148 struct hookproc *hp; in hook_fini() local
153 while ((hp = TAILQ_FIRST(&hookprocs)) != NULL) { in hook_fini()
154 PJDLOG_ASSERT(hp->hp_magic == HOOKPROC_MAGIC_ONLIST); in hook_fini()
155 PJDLOG_ASSERT(hp->hp_pid > 0); in hook_fini()
157 hook_remove(hp); in hook_fini()
158 hook_free(hp); in hook_fini()
170 struct hookproc *hp; in hook_alloc() local
173 hp = malloc(sizeof(*hp)); in hook_alloc()
[all …]
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_hash.c35 ctf_hash_create(ctf_hash_t *hp, ulong_t nelems) in ctf_hash_create() argument
45 bzero(hp, sizeof (ctf_hash_t)); in ctf_hash_create()
46 hp->h_buckets = (uint_t *)_CTF_EMPTY; in ctf_hash_create()
47 hp->h_nbuckets = 1; in ctf_hash_create()
51 hp->h_nbuckets = 211; /* use a prime number of hash buckets */ in ctf_hash_create()
52 hp->h_nelems = nelems + 1; /* we use index zero as a sentinel */ in ctf_hash_create()
53 hp->h_free = 1; /* first free element is index 1 */ in ctf_hash_create()
55 hp->h_buckets = ctf_alloc(sizeof (uint_t) * hp->h_nbuckets); in ctf_hash_create()
56 hp->h_chains = ctf_alloc(sizeof (ctf_helem_t) * hp->h_nelems); in ctf_hash_create()
58 if (hp->h_buckets == NULL || hp->h_chains == NULL) { in ctf_hash_create()
[all …]
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_inttab.c57 dt_inthash_t *hp, *np; in dt_inttab_destroy() local
59 for (hp = ip->int_head; hp != NULL; hp = np) { in dt_inttab_destroy()
60 np = hp->inh_next; in dt_inttab_destroy()
61 dt_free(ip->int_hdl, hp); in dt_inttab_destroy()
72 dt_inthash_t *hp; in dt_inttab_insert() local
75 for (hp = ip->int_hash[h]; hp != NULL; hp = hp->inh_hash) { in dt_inttab_insert()
76 if (hp->inh_value == value && hp->inh_flags == flags) in dt_inttab_insert()
77 return (hp->inh_index); in dt_inttab_insert()
81 if ((hp = dt_alloc(ip->int_hdl, sizeof (dt_inthash_t))) == NULL) in dt_inttab_insert()
84 hp->inh_hash = ip->int_hash[h]; in dt_inttab_insert()
[all …]
H A Ddt_strtab.c104 dt_strhash_t *hp, *hq; in dt_strtab_destroy() local
108 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { in dt_strtab_destroy()
109 hq = hp->str_next; in dt_strtab_destroy()
110 free(hp); in dt_strtab_destroy()
148 dt_strtab_compare(dt_strtab_t *sp, dt_strhash_t *hp, in dt_strtab_compare() argument
151 ulong_t b = hp->str_buf; in dt_strtab_compare()
152 const char *buf = hp->str_data; in dt_strtab_compare()
219 dt_strhash_t *hp; in dt_strtab_index() local
228 for (hp = sp->str_hash[h]; hp != NULL; hp = hp->str_next) { in dt_strtab_index()
229 if (dt_strtab_compare(sp, hp, str, len + 1) == 0) in dt_strtab_index()
[all …]
/freebsd/sbin/ipf/libipf/
H A Dprinthashdata.c12 printhashdata(iphtable_t *hp, int opts) in printhashdata() argument
16 if ((hp->iph_type & IPHASH_ANON) == IPHASH_ANON) in printhashdata()
17 PRINTF("# 'anonymous' table refs %d\n", hp->iph_ref); in printhashdata()
18 if ((hp->iph_flags & IPHASH_DELETE) == IPHASH_DELETE) in printhashdata()
20 switch (hp->iph_type & ~IPHASH_ANON) in printhashdata()
27 if (hp->iph_flags & FR_INQUE) in printhashdata()
29 else if (hp->iph_flags & FR_OUTQUE) in printhashdata()
35 PRINTF("%#x", hp->iph_type); in printhashdata()
41 ISDIGIT(*hp->iph_name) ? "Number" : "Name", in printhashdata()
42 hp->iph_name); in printhashdata()
[all …]
/freebsd/usr.sbin/lpr/pac/
H A Dpac.c204 register struct hent *hp; in account() local
222 hp = lookup(cp); in account()
223 if (hp == NULL) { in account()
226 hp = enter(cp); in account()
228 hp->h_feetpages += t; in account()
230 hp->h_count += ic; in account()
232 hp->h_count++; in account()
244 register struct hent *hp, **ap; in dumpit() local
249 hp = hashtab[0]; in dumpit()
251 base = (struct hent **) calloc(sizeof hp, hcount); in dumpit()
[all …]
/freebsd/sys/dev/videomode/
H A Dvideomode.c19 #define HP VID_PHSYNC macro
30 M("640x350x85",640,350,31500,672,736,832,382,385,445,HP|VN),
39 M("800x600x56",800,600,36000,824,896,1024,601,603,625,HP|VP),
40 M("800x600x60",800,600,40000,840,968,1056,601,605,628,HP|VP),
41 M("800x600x72",800,600,50000,856,976,1040,637,643,666,HP|VP),
42 M("800x600x75",800,600,49500,816,896,1056,601,604,625,HP|VP),
43 M("800x600x85",800,600,56250,832,896,1048,601,604,631,HP|VP),
44 M("1024x768x87i",1024,768,44900,1032,1208,1264,768,776,817,HP|VP|I),
47 M("1024x768x75",1024,768,78750,1040,1136,1312,769,772,800,HP|VP),
48 M("1024x768x85",1024,768,94500,1072,1168,1376,769,772,808,HP|VP),
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dstrtab.c69 strhash_t *hp, *hq; in strtab_destroy() local
73 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { in strtab_destroy()
74 hq = hp->str_next; in strtab_destroy()
75 free(hp); in strtab_destroy()
107 strtab_compare(strtab_t *sp, strhash_t *hp, const char *str, size_t len) in strtab_compare() argument
109 ulong_t b = hp->str_buf; in strtab_compare()
110 const char *buf = hp->str_data; in strtab_compare()
157 strhash_t *hp; in strtab_insert() local
170 for (hp = sp->str_hash[h]; hp != NULL; hp = hp->str_next) { in strtab_insert()
171 if (strtab_compare(sp, hp, str, len + 1) == 0) in strtab_insert()
[all …]
/freebsd/contrib/atf/test-programs/
H A Dsrcdir_test.sh42 for hp in $(get_helpers); do
43 h=${hp##*/}
44 cp ${hp} tmp
47 atf_check -s eq:1 -o empty -e ignore "${hp}" -r res srcdir_exists
64 for hp in $(get_helpers c_helpers cpp_helpers); do
65 h=${hp##*/}
66 cp ${hp} tmp
67 cp ${hp} tmp/.libs
70 atf_check -s eq:1 -o empty -e ignore "${hp}" -r res srcdir_exists
74 for hp in $(get_helpers c_helpers cpp_helpers); do
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/dump/
H A Ddump.c112 ref_to_str(uint_t name, const ctf_header_t *hp, const ctf_data_t *cd) in ref_to_str() argument
115 const char *s = cd->cd_ctfdata + hp->cth_stroff + offset; in ref_to_str()
120 if (offset >= hp->cth_strlen) in ref_to_str()
123 if (hp->cth_stroff + offset >= cd->cd_ctflen) in ref_to_str()
183 print_header(const ctf_header_t *hp, const ctf_data_t *cd) in print_header() argument
187 (void) printf(" cth_magic = 0x%04x\n", hp->cth_magic); in print_header()
188 (void) printf(" cth_version = %u\n", hp->cth_version); in print_header()
189 (void) printf(" cth_flags = 0x%02x\n", hp->cth_flags); in print_header()
191 ref_to_str(hp->cth_parlabel, hp, cd)); in print_header()
193 ref_to_str(hp->cth_parname, hp, cd)); in print_header()
[all …]
/freebsd/lib/libc/net/
H A Dname6.c218 struct hostent *hp; in getipnodebyname() local
283 hp = gethostbyname2(name, af); in getipnodebyname()
284 hp = _hpcopy(hp, errp); in getipnodebyname()
287 hp = _hpreorder(hp); in getipnodebyname()
289 if (af == AF_INET6 && ((flags & AI_ALL) || hp == NULL) && in getipnodebyname()
292 if (hp == NULL) in getipnodebyname()
296 hp = _hpmapv6(hp2, errp); in getipnodebyname()
298 if (hp2 && strcmp(hp->h_name, hp2->h_name) == 0) { in getipnodebyname()
299 struct hostent *hpb = hp; in getipnodebyname()
300 hp = _hpmerge(hpb, hp2, errp); in getipnodebyname()
[all …]
/freebsd/contrib/file/magic/Magdir/
H A Dhp3 # $File: hp,v 1.25 2019/01/13 00:32:38 christos Exp $
4 # hp: file(1) magic for Hewlett Packard machines (see also "printer")
16 # HP magic is useful for reference, but using "long" magic is a better
20 # HP-UX 10.0's "/usr/include/sys/unistd.h" (68030, 68040, PA-RISC 1.1,
21 # 1.2, and 2.0). The 1.2 and 2.0 stuff isn't in the HP-UX 10.0
29 # 0 beshort 0x20c hp200/300 HP-UX binary
30 # 0 beshort 0x20d hp400 (68030) HP-UX binary
31 # 0 beshort 0x20e hp400 (68040?) HP-UX binary
32 # 0 beshort 0x20b PA-RISC1.0 HP-UX binary
33 # 0 beshort 0x210 PA-RISC1.1 HP-UX binary
[all …]
H A Dprinter80 # HP Printer Job Language
81 0 string \033%-12345X@PJL HP Printer Job Language data
82 # HP Printer Job Language
83 # The header found on Win95 HP plot files is the "Silliest Thing possible"
90 0 string \033%-12345X@PJL HP Printer Job Language data
108 # For HP Printers - ZJS stands for Zenographics ZJStream
109 0 string \033%-12345X@PJL HP Printer Job Language data
115 >0 search/10000 @PJL\ ENTER\ LANGUAGE=ZJS - HP ZJS
118 # URL: https://support.hp.com/us-en/drivers/selfservice/hp-envy-6000e-all-in-one-printer-series/21…
120 0 string @PJL\ ENTER\ LANGUAGE=FWUPDATE2 HP Printer firmware update
[all …]
/freebsd/usr.bin/xstr/
H A Dxstr.c333 struct hash *hp, *hp0; in hashit() local
335 hp = hp0 = &bucket[lastchr(str) & 0177]; in hashit()
336 while (hp->hnext) { in hashit()
337 hp = hp->hnext; in hashit()
338 i = istail(str, hp->hstr); in hashit()
340 return (hp->hpt + i); in hashit()
342 if ((hp = (struct hash *) calloc(1, sizeof (*hp))) == NULL) in hashit()
344 hp->hpt = mesgpt; in hashit()
345 if (!(hp->hstr = strdup(str))) in hashit()
347 mesgpt += strlen(hp->hstr) + 1; in hashit()
[all …]
/freebsd/usr.bin/mail/
H A Dsend.c283 mail1(struct header *hp, int printheaders) in mail1() argument
296 if ((mtf = collect(hp, printheaders)) == NULL) in mail1()
301 grabh(hp, GCC); in mail1()
303 grabh(hp, GBCC); in mail1()
312 if (hp->h_subject == NULL) in mail1()
323 to = usermap(cat(hp->h_bcc, cat(hp->h_to, hp->h_cc))); in mail1()
332 to = outof(to, mtf, hp); in mail1()
348 bcopy(hp->h_to, nsto, sizeof(struct name)); in mail1()
350 fixhead(hp, to); in mail1()
351 if ((mtf = infix(hp, mtf)) == NULL) { in mail1()
[all …]
/freebsd/contrib/libpcap/doc/
H A DREADME.hpux1 For HP-UX 11i (11.11) and later, there are no known issues with
2 promiscuous mode under HP-UX. If you are using a earlier version of
3 HP-UX and cannot upgrade, please continue reading.
5 HP-UX patches to fix packet capture problems
7 Note that packet-capture programs such as tcpdump may, on HP-UX, not be
15 Newsgroups: comp.sys.hp.hpux
43 http://groups.google.com/groups?selm=88cf4t%24p03%241%40web1.cup.hp.com
47 Newsgroups: comp.sys.hp.hpux
62 What you are seeing is expected, un-patched, behaviour for an HP-UX
76 Newsgroups: comp.sys.hp.hpux
[all …]
/freebsd/contrib/tcp_wrappers/
H A Dscaffold.c46 static struct hostent *dup_hostent(struct hostent *hp) in dup_hostent() argument
57 for (count = 0; hp->h_addr_list[count] != 0; count++) in dup_hostent()
61 + (hp->h_length + sizeof(char *)) * count)) == 0) { in dup_hostent()
66 hb->host.h_length = hp->h_length; in dup_hostent()
71 for (count = 0; (addr = hp->h_addr_list[count]) != 0; count++) { in dup_hostent()
72 hb->host.h_addr_list[count] = data + hp->h_length * count; in dup_hostent()
73 memcpy(hb->host.h_addr_list[count], addr, hp->h_length); in dup_hostent()
119 struct hostent *hp; in find_inet_addr() local
143 if ((hp = gethostbyname(host)) == 0) { in find_inet_addr()
147 if (hp->h_addrtype != AF_INET) { in find_inet_addr()
[all …]
/freebsd/usr.bin/rup/
H A Drup.c68 struct host_list *hp; in search_host() local
73 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host()
74 if (hp->addr.s_addr == addr.s_addr) in search_host()
83 struct host_list *hp; in remember_host() local
85 if (!(hp = (struct host_list *)malloc(sizeof(struct host_list)))) in remember_host()
87 hp->addr.s_addr = addr.s_addr; in remember_host()
88 hp->next = hosts; in remember_host()
89 hosts = hp; in remember_host()
100 struct hostent *hp; in rstat_reply() local
107 hp = gethostbyaddr((char *)&raddrp->sin_addr.s_addr, in rstat_reply()
[all …]
/freebsd/usr.bin/rusers/
H A Drusers.c69 struct host_list *hp; in search_host() local
74 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host()
75 if (hp->addr.s_addr == addr.s_addr) in search_host()
84 struct host_list *hp; in remember_host() local
86 if ((hp = (struct host_list *)malloc(sizeof(struct host_list))) == NULL) in remember_host()
88 hp->addr.s_addr = addr.s_addr; in remember_host()
89 hp->next = hosts; in remember_host()
90 hosts = hp; in remember_host()
99 struct hostent *hp; in rusers_reply() local
112 hp = gethostbyaddr((char *)&raddrp->sin_addr.s_addr, in rusers_reply()
[all …]
/freebsd/lib/libcasper/services/cap_net/
H A Dcap_net.c72 hostent_free(struct hostent *hp) in hostent_free() argument
76 free(hp->h_name); in hostent_free()
77 hp->h_name = NULL; in hostent_free()
78 if (hp->h_aliases != NULL) { in hostent_free()
79 for (ii = 0; hp->h_aliases[ii] != NULL; ii++) in hostent_free()
80 free(hp->h_aliases[ii]); in hostent_free()
81 free(hp->h_aliases); in hostent_free()
82 hp->h_aliases = NULL; in hostent_free()
84 if (hp->h_addr_list != NULL) { in hostent_free()
85 for (ii = 0; hp->h_addr_list[ii] != NULL; ii++) in hostent_free()
[all …]
/freebsd/sys/netgraph/
H A Dng_tag.c123 static int ng_tag_setdata_in(hook_p hook, const struct ng_tag_hookin *hp);
124 static int ng_tag_setdata_out(hook_p hook, const struct ng_tag_hookout *hp);
131 const struct ng_tag_hookin *hp; in ng_tag_hookinary_getLength() local
133 hp = (const struct ng_tag_hookin *) in ng_tag_hookinary_getLength()
135 return (hp->tag_len); in ng_tag_hookinary_getLength()
142 const struct ng_tag_hookout *hp; in ng_tag_hookoutary_getLength() local
144 hp = (const struct ng_tag_hookout *) in ng_tag_hookoutary_getLength()
146 return (hp->tag_len); in ng_tag_hookoutary_getLength()
360 hp = (struct ng_tag_hookin *)msg->data; in ng_tag_rcvmsg() local
364 if (msg->header.arglen < sizeof(*hp) || in ng_tag_rcvmsg()
[all …]
/freebsd/contrib/tcsh/
H A Dsh.hist.c75 /* Insert new element (hp) in history list after specified predecessor (pp). */
77 hinsert(struct Hist *hp, struct Hist *pp) in hinsert() argument
80 hp->Hnext = fp, hp->Hprev = pp; in hinsert()
81 pp->Hnext = hp; in hinsert()
83 fp->Hprev = hp; in hinsert()
85 histTail = hp; /* meaning hp->Hnext == NULL */ in hinsert()
91 hremove(struct Hist *hp) in hremove() argument
93 struct Hist *pp = hp->Hprev; in hremove()
95 pp->Hnext = hp->Hnext; in hremove()
96 if (hp->Hnext) in hremove()
[all …]

12345678910>>...40