/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | printhashdata.c | 12 printhashdata(hp, opts) 13 iphtable_t *hp; 18 if ((hp->iph_type & IPHASH_ANON) == IPHASH_ANON) 19 PRINTF("# 'anonymous' table refs %d\n", hp->iph_ref); 20 if ((hp->iph_flags & IPHASH_DELETE) == IPHASH_DELETE) 22 switch (hp->iph_type & ~IPHASH_ANON) 29 if (hp->iph_flags & FR_INQUE) 31 else if (hp->iph_flags & FR_OUTQUE) 37 PRINTF("%#x", hp->iph_type); 43 ISDIGIT(*hp [all...] |
H A D | printhash_live.c | 13 printhash_live(hp, fd, name, opts, fields) 14 iphtable_t *hp; 25 if ((name != NULL) && strncmp(name, hp->iph_name, FR_GROUPLEN)) 26 return hp->iph_next; 29 printhashdata(hp, opts); 31 if ((hp->iph_flags & IPHASH_DELETE) != 0) 46 iter.ili_unit = hp->iph_unit; 47 strncpy(iter.ili_name, hp->iph_name, FR_GROUPLEN); 58 (void) printhashnode(hp, &entry, bcopywrap, opts, fields); 69 return hp [all...] |
/freebsd-11-stable/sbin/hastd/ |
H A D | hooks.c | 86 static void hook_remove(struct hookproc *hp); 87 static void hook_free(struct hookproc *hp); 151 struct hookproc *hp; local 156 while ((hp = TAILQ_FIRST(&hookprocs)) != NULL) { 157 PJDLOG_ASSERT(hp->hp_magic == HOOKPROC_MAGIC_ONLIST); 158 PJDLOG_ASSERT(hp->hp_pid > 0); 160 hook_remove(hp); 161 hook_free(hp); 173 struct hookproc *hp; local 176 hp 201 hook_add(struct hookproc *hp, pid_t pid) argument 215 hook_remove(struct hookproc *hp) argument 227 hook_free(struct hookproc *hp) argument 240 struct hookproc *hp; local 258 struct hookproc *hp; local 286 struct hookproc *hp, *hp2; local 344 struct hookproc *hp; local [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/common/ctf/ |
H A D | ctf_hash.c | 35 ctf_hash_create(ctf_hash_t *hp, ulong_t nelems) argument 45 bzero(hp, sizeof (ctf_hash_t)); 46 hp->h_buckets = (ushort_t *)_CTF_EMPTY; 47 hp->h_nbuckets = 1; 51 hp->h_nbuckets = 211; /* use a prime number of hash buckets */ 52 hp->h_nelems = nelems + 1; /* we use index zero as a sentinel */ 53 hp->h_free = 1; /* first free element is index 1 */ 55 hp->h_buckets = ctf_alloc(sizeof (ushort_t) * hp->h_nbuckets); 56 hp 70 ctf_hash_size(const ctf_hash_t *hp) argument 95 ctf_hash_insert(ctf_hash_t *hp, ctf_file_t *fp, ushort_t type, uint_t name) argument 132 ctf_hash_define(ctf_hash_t *hp, ctf_file_t *fp, ushort_t type, uint_t name) argument 145 ctf_hash_lookup(ctf_hash_t *hp, ctf_file_t *fp, const char *key, size_t len) argument 167 ctf_hash_destroy(ctf_hash_t *hp) argument [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_inttab.c | 57 dt_inthash_t *hp, *np; local 59 for (hp = ip->int_head; hp != NULL; hp = np) { 60 np = hp->inh_next; 61 dt_free(ip->int_hdl, hp); 72 dt_inthash_t *hp; local 75 for (hp = ip->int_hash[h]; hp != NULL; hp 111 const dt_inthash_t *hp; local [all...] |
H A D | dt_strtab.c | 104 dt_strhash_t *hp, *hq; local 108 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { 109 hq = hp->str_next; 110 free(hp); 148 dt_strtab_compare(dt_strtab_t *sp, dt_strhash_t *hp, argument 151 ulong_t b = hp->str_buf; 152 const char *buf = hp->str_data; 212 dt_strhash_t *hp; local 232 dt_strhash_t *hp; local [all...] |
/freebsd-11-stable/libexec/bootpd/ |
H A D | dumptab.c | 56 struct host *hp; local 114 for (hp = (struct host *) hash_FirstEntry(nmhashtable); hp != NULL; 115 hp = (struct host *) hash_NextEntry(nmhashtable)) { 116 dump_host(fp, hp); 129 * Dump all the available information on the host pointed to by "hp". 134 dump_host(fp, hp) 136 struct host *hp; 139 if (hp) { 140 fprintf(fp, "%s:", (hp [all...] |
H A D | dovend.c | 48 dovend_rfc1497(hp, buf, len) 49 struct host *hp; 60 hp->hostname->string, MSG); \ 77 if (hp->flags.time_offset) { 81 insert_u_long(htonl(hp->time_offset), &vp); /* -4 bytes */ 87 if (hp->flags.swap_server) { 92 insert_u_long(hp->swap_server.s_addr, &vp); /* -4 bytes */ 95 if (hp->flags.root_path) { 100 len = strlen(hp->root_path->string); 104 bcopy(hp [all...] |
H A D | dovend.h | 4 extern int dovend_rfc1497(struct host *hp, u_char *buf, int len);
|
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-hsrp.c | 98 const struct hsrp *hp = (const struct hsrp *) bp; local 100 ND_TCHECK(hp->hsrp_version); 101 ND_PRINT((ndo, "HSRPv%d", hp->hsrp_version)); 102 if (hp->hsrp_version != 0) 104 ND_TCHECK(hp->hsrp_op_code); 106 ND_PRINT((ndo, "%s ", tok2strary(op_code_str, "unknown (%d)", hp->hsrp_op_code))); 108 ND_TCHECK(hp->hsrp_state); 109 ND_PRINT((ndo, "state=%s ", tok2str(states, "Unknown (%d)", hp->hsrp_state))); 110 ND_TCHECK(hp->hsrp_group); 111 ND_PRINT((ndo, "group=%d ", hp [all...] |
/freebsd-11-stable/usr.sbin/lpr/pac/ |
H A D | pac.c | 216 register struct hent *hp; local 234 hp = lookup(cp); 235 if (hp == NULL) { 238 hp = enter(cp); 240 hp->h_feetpages += t; 242 hp->h_count += ic; 244 hp->h_count++; 256 register struct hent *hp, **ap; local 261 hp = hashtab[0]; 263 base = (struct hent **) calloc(sizeof hp, hcoun 294 register struct hent *hp; local 334 register struct hent *hp; local 360 register struct hent *hp; local [all...] |
/freebsd-11-stable/usr.bin/talk/ |
H A D | get_addrs.c | 49 struct hostent *hp; local 54 hp = gethostbyname(his_machine_name); 55 if (hp == NULL) 57 bcopy(hp->h_addr, (char *) &his_machine_addr, hp->h_length);
|
/freebsd-11-stable/contrib/amd/fsinfo/ |
H A D | wr_bparam.c | 68 write_boot_info(FILE *ef, host *hp) argument 72 fprintf(ef, "%s\troot=", hp->h_hostname); 73 errors += write_nfsname(ef, hp->h_netroot, hp->h_hostname); 75 errors += write_nfsname(ef, hp->h_netswap, hp->h_hostname); 93 host *hp; local 94 ITER(hp, host, q) 95 if (hp->h_netroot && hp [all...] |
H A D | wr_exportfs.c | 85 host *hp; local 88 ITER(hp, host, q) { 89 if (hp->h_disk_fs) { 90 FILE *ef = pref_open(exportfs_pref, hp->h_hostname, gen_hdr, hp->h_hostname); 92 show_new(hp->h_hostname); 93 errors += write_dkexports(ef, hp->h_disk_fs);
|
H A D | wr_fstab.c | 101 char *hp = xstrdup(dp->d_host->h_hostname); local 102 char *p = strchr(hp, '.'); 115 XFREE(hp); 123 char *hp = xstrdup(h); local 124 char *p = strchr(hp, '.'); 131 hp, 139 XFREE(hp); 258 find_fstab_type(host *hp) argument 265 if (ISSET(hp->h_mask, HF_OS)) 266 os_name = hp 312 host *hp; local [all...] |
H A D | wr_dumpset.c | 77 host *hp; local 79 ITER(hp, host, q) { 80 if (hp->h_disk_fs) { 81 errors += write_dumpset_info(ef, hp->h_disk_fs);
|
/freebsd-11-stable/sbin/atm/atmconfig/ |
H A D | main.c | 107 help_next_file(struct help_file *hp) argument 112 if (hp->file_state == 3) 115 if (hp->file_state == 0) 120 if (hp->file_state == 0 || hp->file_state == 1) { 122 hp->p_start = PATH_HELP; 123 hp->file_state++; 127 if (hp->dir != NULL) { 129 while ((ent = readdir(hp->dir)) != NULL) { 132 if (asprintf(&hp 194 help_file_tell(struct help_file *hp, struct help_pos *pos) argument 213 help_file_seek(struct help_file *hp, struct help_pos *pos) argument 251 help_file_rewind(struct help_file *hp) argument 278 help_next_line(struct help_file *hp) argument 303 help_get_0topics(struct help_file *hp) argument [all...] |
/freebsd-11-stable/contrib/atf/test-programs/ |
H A D | srcdir_test.sh | 42 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 i [all...] |
/freebsd-11-stable/lib/libc/rpc/ |
H A D | getrpcport.c | 59 struct hostent *hp; local 63 if ((hp = gethostbyname(host)) == NULL) 69 if (hp->h_length > addr.sin_len) 70 hp->h_length = addr.sin_len; 71 memcpy(&addr.sin_addr.s_addr, hp->h_addr, (size_t)hp->h_length);
|
/freebsd-11-stable/lib/msun/src/ |
H A D | e_remainder.c | 37 int32_t hx,hp; local 42 EXTRACT_WORDS(hp,lp,p); 44 hp &= 0x7fffffff; 48 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */ 50 ((hp>=0x7ff00000)&& /* p is NaN */ 51 (((hp-0x7ff00000)|lp)!=0))) 55 if (hp<=0x7fdfffff) x = __ieee754_fmod(x,p+p); /* now x < 2p */ 56 if (((hx-hp)|(lx-lp))==0) return zero*x; 59 if (hp<0x00200000) {
|
H A D | e_remainderf.c | 28 int32_t hx,hp; local 33 GET_FLOAT_WORD(hp,p); 35 hp &= 0x7fffffff; 39 if(hp==0) return (x*p)/(x*p); /* p = 0 */ 41 ((hp>0x7f800000))) /* p is NaN */ 45 if (hp<=0x7effffff) x = __ieee754_fmodf(x,p+p); /* now x < 2p */ 46 if ((hx-hp)==0) return zero*x; 49 if (hp<0x01000000) {
|
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | strtab.c | 69 strhash_t *hp, *hq; local 73 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { 74 hq = hp->str_next; 75 free(hp); 107 strtab_compare(strtab_t *sp, strhash_t *hp, const char *str, size_t len) argument 109 ulong_t b = hp->str_buf; 110 const char *buf = hp->str_data; 157 strhash_t *hp; local 233 const strhash_t *hp; local [all...] |
/freebsd-11-stable/libexec/bootpd/tools/bootpef/ |
H A D | bootpef.c | 134 struct host *hp; 242 hp = (struct host *) hash_Lookup(nmhashtable, 245 if (!hp) { 249 if (!hp->flags.exten_file) { 253 mktagfile(hp); 260 hp = (struct host *) hash_FirstEntry(nmhashtable); 261 while (hp != NULL) { 262 mktagfile(hp); 263 hp = (struct host *) hash_NextEntry(nmhashtable); 277 mktagfile(hp) 131 struct host *hp; local [all...] |
/freebsd-11-stable/contrib/apr/include/ |
H A D | apr_ring.h | 155 * @param hp The head of the ring 159 #define APR_RING_SENTINEL(hp, elem, link) \ 160 (struct elem *)((char *)(&(hp)->next) - APR_OFFSETOF(struct elem, link)) 164 * @param hp The head of the ring 166 #define APR_RING_FIRST(hp) (hp)->next 169 * @param hp The head of the ring 171 #define APR_RING_LAST(hp) (hp)->prev 188 * @param hp Th [all...] |
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | numtohost.c | 25 struct hostent *hp; local 35 || ((hp = gethostbyaddr((char *)&netnum, sizeof netnum, AF_INET)) 40 strlcpy(bp, hp->h_name, LIB_BUFLENGTH);
|