Searched refs:hp (Results 1 - 25 of 436) sorted by relevance

1234567891011>>

/macosx-10.9.5/bootp-268.1/bootplib/
H A Dhostlist.c56 hostinsert(struct hosts * * hosts, struct hosts * hp) argument
58 hp->next = *hosts;
59 hp->prev = NULL;
61 (*hosts)->prev = hp;
62 *hosts = hp;
66 hostremove(struct hosts * * hosts, struct hosts * hp) argument
68 if (hp->prev)
69 hp->prev->next = hp->next;
71 *hosts = hp
77 hostprint(struct hosts * hp) argument
118 struct hosts * hp; local
[all...]
H A Dhostlist.h54 void hostfree(struct hosts * * hosts, struct hosts * hp);
55 void hostinsert(struct hosts * * hosts, struct hosts * hp);
56 void hostprint(struct hosts * hp);
57 void hostremove(struct hosts * * hosts, struct hosts * hp);
65 struct hosts * hp; local
66 for (hp = hosts; hp; hp = hp->next) {
67 if (iaddr.s_addr == hp
77 struct hosts * hp; local
[all...]
/macosx-10.9.5/tcpdump-56/tcpdump/
H A Dprint-hsrp.c103 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...]
/macosx-10.9.5/dtrace-118.1/libctf/
H A Dctf_hash.c35 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...]
/macosx-10.9.5/dtrace-118.1/libdtrace/
H A Ddt_inttab.c57 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...]
/macosx-10.9.5/postfix-252/postfix/auxiliary/name-addr-test/
H A Dgethostbyname.c23 struct hostent *hp; local
29 if (hp = gethostbyname(argv[1])) {
30 printf("Hostname:\t%s\n", hp->h_name);
32 while (hp->h_aliases[0])
33 printf("%s ", *hp->h_aliases++);
36 while (hp->h_addr_list[0])
37 printf("%s ", inet_ntoa(*(struct in_addr *) * hp->h_addr_list++));
H A Dgethostbyaddr.c24 struct hostent *hp; local
32 if (hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET)) {
33 printf("Hostname:\t%s\n", hp->h_name);
35 while (hp->h_aliases[0])
36 printf("%s ", *hp->h_aliases++);
39 while (hp->h_addr_list[0])
40 printf("%s ", inet_ntoa(*(struct in_addr *) * hp->h_addr_list++));
/macosx-10.9.5/vim-53/src/
H A Dmemfile.c88 static int mf_write_block __ARGS((memfile_T *mfp, bhdr_T *hp, off_t offset, unsigned size));
248 bhdr_T *hp, *nextp; local
262 for (hp = mfp->mf_used_first; hp != NULL; hp = nextp)
264 total_mem_used -= hp->bh_page_count * mfp->mf_page_size;
265 nextp = hp->bh_next;
266 mf_free_bhdr(hp);
346 bhdr_T *hp; /* new bhdr_T */ local
354 hp
439 bhdr_T *hp; local
568 bhdr_T *hp; local
734 bhdr_T *hp; local
787 bhdr_T *hp; local
846 bhdr_T *hp; local
930 bhdr_T *hp; local
974 bhdr_T *hp; local
1020 bhdr_T *hp; local
[all...]
/macosx-10.9.5/ksh-20/ksh/src/cmd/ksh93/edit/
H A Dhistory.c71 #define hist_ind(hp,c) ((int)((c)&(hp)->histmask))
133 static int acctinit(History_t *hp) argument
136 Namval_t *np = nv_search("ACCTFILE",((Shell_t*)hp->histshell)->var_tree,0);
178 static int sh_checkaudit(History_t *hp, const char *name, char *logbuf, size_t len) argument
231 register History_t *hp; local
251 if(hp=wasopen)
255 shgd->hist_ptr = hist_ptr = hp;
256 if(strcmp(histname,hp->histname)==0)
309 if(!(hp
410 hist_close(register History_t *hp) argument
458 hist_trim(History_t *hp, int n) argument
554 hist_nearend(History_t *hp, Sfio_t *iop, register off_t size) argument
621 hist_eof(register History_t *hp) argument
747 hist_cancel(register History_t *hp) argument
764 hist_flush(register History_t *hp) argument
798 register History_t *hp = (History_t*)handle; local
898 hist_tell(register History_t *hp, int n) argument
906 hist_seek(register History_t *hp, int n) argument
917 hist_list(register History_t *hp,Sfio_t *outfile, off_t offset,int last, char *nl) argument
1008 hist_match(register History_t *hp,off_t offset,char *string,int *coffset) argument
1056 register History_t *hp = shgd->hist_ptr; local
1101 History_t *hp = hist_ptr; local
1136 hist_locate(History_t *hp,register int command,register int line,int lines) argument
1188 History_t *hp = (History_t*)handle; local
[all...]
/macosx-10.9.5/remote_cmds-41.90.1/talk.tproj/
H A Dget_addrs.c55 struct hostent *hp; local
60 hp = gethostbyname(his_machine_name);
61 if (hp == NULL)
63 bcopy(hp->h_addr, (char *) &his_machine_addr, hp->h_length);
/macosx-10.9.5/postfix-252/postfix/src/local/
H A Dbiff_notify.c57 struct hostent *hp; local
68 if ((hp = gethostbyname("localhost")) == 0) {
72 if ((int) hp->h_length > (int) sizeof(sin.sin_addr)) {
73 msg_warn("bad address size %d for localhost", hp->h_length);
76 sin.sin_family = hp->h_addrtype;
78 memcpy((char *) &sin.sin_addr, hp->h_addr_list[0], hp->h_length);
/macosx-10.9.5/bind9-45.100/bind9/contrib/idn/idnkit-1.0-src/wsock/common/
H A Dhook.c84 HOOKPTR hp; local
86 for (hp = hookList.next ; hp != &hookList ; hp = hp->next) {
87 if (hp->hWnd == hWnd && hp->wMsg == wMsg) {
88 return (hp);
96 HOOKPTR hp, prev, next; local
98 if ((hp
120 hookListDelete(HOOKPTR hp) argument
135 HOOKPTR hp; local
[all...]
/macosx-10.9.5/bind9-45.100/bind9/unit/atf-src/test-programs/
H A Dsrcdir_test.sh46 for hp in $(get_helpers); do
47 h=${hp##*/}
48 cp ${hp} tmp
51 atf_check -s eq:1 -o empty -e empty "${hp}" -r res srcdir_exists
68 for hp in $(get_helpers c_helpers cpp_helpers); do
69 h=${hp##*/}
70 cp ${hp} tmp
71 cp ${hp} tmp/.libs
74 atf_check -s eq:1 -o empty -e empty "${hp}" -r res srcdir_exists
78 for hp i
[all...]
/macosx-10.9.5/BerkeleyDB-21/db/db/
H A Ddb_dispatch.c461 #define FIND_GENERATION(hp, txnid, gen) do { \
463 for (__i = 0; __i <= (hp)->generation; __i++) \
465 if ((hp)->gen_array[__i].txn_min < \
466 (hp)->gen_array[__i].txn_max ? \
467 ((txnid) >= (hp)->gen_array[__i].txn_min && \
468 (txnid) <= (hp)->gen_array[__i].txn_max) : \
469 ((txnid) >= (hp)->gen_array[__i].txn_min || \
470 (txnid) <= (hp)->gen_array[__i].txn_max)) \
472 DB_ASSERT(env, __i <= (hp)->generation); \
473 gen = (hp)
[all...]
/macosx-10.9.5/Libinfo-449.1.3/rpc.subproj/
H A Dgetrpcport.c78 struct hostent *hp; local
80 if ((hp = gethostbyname(host)) == NULL)
83 bcopy(hp->h_addr, (char *) &addr.sin_addr, hp->h_length);
/macosx-10.9.5/ruby-104/ruby/missing/
H A Dalloca.c161 register header *hp; /* traverses linked list */ local
163 for (hp = last_alloca_header; hp != NULL;)
164 if (STACK_DIR > 0 && hp->h.deep > depth
165 || STACK_DIR < 0 && hp->h.deep < depth)
167 register header *np = hp->h.next;
169 xfree ((pointer) hp); /* collect garbage */
171 hp = np; /* -> next header */
176 last_alloca_header = hp; /* -> last valid storage */
/macosx-10.9.5/Libinfo-449.1.3/lookup.subproj/
H A Dils.c92 void *hp, *dp, *lp, *ils; local
330 hp = ils;
344 memset(hp, 0, pad);
345 hp += pad;
352 memset(hp, 0, sizeof(char *));
356 memcpy(hp, &dp, sizeof(char *));
362 hp += sizeof(char *);
371 memcpy(hp, &u8, sizeof(uint8_t));
372 hp += sizeof(uint8_t);
382 memset(hp,
[all...]
/macosx-10.9.5/dtrace-118.1/tools/ctfconvert/
H A Dstrtab.c84 strhash_t *hp, *hq; local
88 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) {
89 hq = hp->str_next;
90 free(hp);
122 strtab_compare(strtab_t *sp, strhash_t *hp, const char *str, size_t len) argument
124 ulong_t b = hp->str_buf;
125 const char *buf = hp->str_data;
172 strhash_t *hp; local
248 const strhash_t *hp; local
[all...]
/macosx-10.9.5/postfix-252/postfix/src/util/
H A Dfind_inet.c65 struct hostent *hp; local
69 if ((hp = gethostbyname(host)) == 0)
71 if (hp->h_addrtype != AF_INET)
72 msg_fatal("unexpected address family: %d", hp->h_addrtype);
73 if (hp->h_length != sizeof(addr))
74 msg_fatal("unexpected address length %d", hp->h_length);
75 memcpy((char *) &addr, hp->h_addr, hp->h_length);
/macosx-10.9.5/ksh-20/ksh/src/cmd/ksh93/include/
H A Dhistory.h56 #define hist_min(hp) ((_Hist=((int)((hp)->histind-(hp)->histsize)))>=0?_Hist:0)
57 #define hist_max(hp) ((int)((hp)->histind))
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/lib/
H A Dgetnameinfo.c73 struct hostent *hp; local
92 hp = gethostbyaddr((char *)&sin->sin_addr,
94 if (hp) {
95 if (strlen(hp->h_name) >= hostlen)
98 strcpy(host, hp->h_name);
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/saslauthd/
H A Dgetnameinfo.c71 struct hostent *hp; local
90 hp = gethostbyaddr((char *)&sin->sin_addr,
92 if (hp)
93 if (strlen(hp->h_name) >= hostlen)
96 strcpy(host, hp->h_name);
/macosx-10.9.5/Libinfo-449.1.3/gen.subproj/
H A Dmap_v4v6.c102 _map_v4v6_hostent(hp, bpp, lenp)
103 struct hostent *hp;
109 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ)
111 hp->h_addrtype = AF_INET6;
112 hp->h_length = IN6ADDRSZ;
113 for (ap = hp->h_addr_list; *ap; ap++) {
/macosx-10.9.5/apache-786.1/httpd/srclib/apr/include/
H A Dapr_ring.h155 * @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...]
/macosx-10.9.5/apr-30/apr/apr/include/
H A Dapr_ring.h155 * @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...]

Completed in 165 milliseconds

1234567891011>>