/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-hsrp.c | 103 struct hsrp *hp = (struct hsrp *) bp; local 105 TCHECK(hp->hsrp_version); 106 printf("HSRPv%d", hp->hsrp_version); 107 if (hp->hsrp_version != 0) 109 TCHECK(hp->hsrp_op_code); 111 printf("%s ", tok2strary(op_code_str, "unknown (%d)", hp->hsrp_op_code)); 113 TCHECK(hp->hsrp_state); 114 printf("state=%s ", tok2str(states, "Unknown (%d)", hp->hsrp_state)); 115 TCHECK(hp->hsrp_group); 116 printf("group=%d ", hp [all...] |
/freebsd-9.3-release/contrib/ipfilter/lib/ |
H A D | printhashdata.c | 13 void printhashdata(hp, opts) 14 iphtable_t *hp; 19 if ((hp->iph_type & IPHASH_ANON) == IPHASH_ANON) 21 if ((hp->iph_flags & IPHASH_DELETE) == IPHASH_DELETE) 23 switch (hp->iph_type & ~IPHASH_ANON) 30 if (hp->iph_flags & FR_INQUE) 32 else if (hp->iph_flags & FR_OUTQUE) 38 PRINTF("%#x", hp->iph_type); 44 isdigit(*hp->iph_name) ? "Number" : "Name", 45 hp [all...] |
H A D | printhash_live.c | 15 iphtable_t *printhash_live(hp, fd, name, opts) 16 iphtable_t *hp; 26 if ((name != NULL) && strncmp(name, hp->iph_name, FR_GROUPLEN)) 27 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); 65 (void) printhashnode(hp, node, bcopywrap, opts); 76 return hp [all...] |
H A D | hostname.c | 18 struct hostent *hp; local 32 hp = gethostbyaddr(ip, 4, AF_INET); 33 if (hp != NULL && hp->h_name != NULL && 34 *hp->h_name != '\0') { 35 strncpy(hostbuf, hp->h_name, sizeof(hostbuf));
|
/freebsd-9.3-release/sbin/hastd/ |
H A D | hooks.c | 85 static void hook_remove(struct hookproc *hp); 86 static void hook_free(struct hookproc *hp); 150 struct hookproc *hp; local 155 while ((hp = TAILQ_FIRST(&hookprocs)) != NULL) { 156 PJDLOG_ASSERT(hp->hp_magic == HOOKPROC_MAGIC_ONLIST); 157 PJDLOG_ASSERT(hp->hp_pid > 0); 159 hook_remove(hp); 160 hook_free(hp); 172 struct hookproc *hp; local 175 hp 200 hook_add(struct hookproc *hp, pid_t pid) argument 214 hook_remove(struct hookproc *hp) argument 226 hook_free(struct hookproc *hp) argument 239 struct hookproc *hp; local 257 struct hookproc *hp; local 285 struct hookproc *hp, *hp2; local 343 struct hookproc *hp; local [all...] |
/freebsd-9.3-release/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-9.3-release/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 | 101 dt_strhash_t *hp, *hq; local 105 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { 106 hq = hp->str_next; 107 free(hp); 145 dt_strtab_compare(dt_strtab_t *sp, dt_strhash_t *hp, argument 148 ulong_t b = hp->str_buf; 149 const char *buf = hp->str_data; 209 dt_strhash_t *hp; local 229 dt_strhash_t *hp; local [all...] |
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/contrib/amd/fsinfo/ |
H A D | wr_bparam.c | 72 write_boot_info(FILE *ef, host *hp) argument 76 fprintf(ef, "%s\troot=", hp->h_hostname); 77 errors += write_nfsname(ef, hp->h_netroot, hp->h_hostname); 79 errors += write_nfsname(ef, hp->h_netswap, hp->h_hostname); 97 host *hp; local 98 ITER(hp, host, q) 99 if (hp->h_netroot && hp [all...] |
H A D | wr_exportfs.c | 89 host *hp; local 92 ITER(hp, host, q) { 93 if (hp->h_disk_fs) { 94 FILE *ef = pref_open(exportfs_pref, hp->h_hostname, gen_hdr, hp->h_hostname); 96 show_new(hp->h_hostname); 97 errors += write_dkexports(ef, hp->h_disk_fs);
|
H A D | wr_dumpset.c | 81 host *hp; local 83 ITER(hp, host, q) { 84 if (hp->h_disk_fs) { 85 errors += write_dumpset_info(ef, hp->h_disk_fs);
|
H A D | wr_fstab.c | 105 char *hp = strdup(dp->d_host->h_hostname); local 106 char *p = strchr(hp, '.'); 119 XFREE(hp); 127 char *hp = strdup(h); local 128 char *p = strchr(hp, '.'); 135 hp, 143 XFREE(hp); 262 find_fstab_type(host *hp) argument 269 if (ISSET(hp->h_mask, HF_OS)) 270 os_name = hp 316 host *hp; local [all...] |
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/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);
|
/freebsd-9.3-release/sys/fs/hpfs/ |
H A D | hpfs_subr.c | 528 struct hpfsnode *hp) 532 struct hpfsmount *hpmp = hp->h_hpmp; 540 hp->h_no, hp->h_fn.fn_parent)); 542 if (hp->h_no == hp->h_fn.fn_parent) { 543 dhp = hp; 545 error = VFS_VGET(hpmp->hpm_mp, hp->h_fn.fn_parent, 589 if (hp->h_no == dep->de_fnode) { 611 if (hp 527 hpfs_validateparent( struct hpfsnode *hp) argument 675 hpfs_updateparent( struct hpfsnode *hp) argument 731 hpfs_update( struct hpfsnode *hp) argument 759 hpfs_truncate( struct hpfsnode *hp, u_long size) argument 798 hpfs_extend( struct hpfsnode *hp, u_long size) argument [all...] |
/freebsd-9.3-release/lib/libc/net/ |
H A D | map_v4v6.c | 96 _map_v4v6_hostent(struct hostent *hp, char **bpp, char *ep) { argument 99 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ) 101 hp->h_addrtype = AF_INET6; 102 hp->h_length = IN6ADDRSZ; 103 for (ap = hp->h_addr_list; *ap; ap++) {
|