/macosx-10.10/BerkeleyDB-21/db/mp/ |
H A D | mp_alloc.c | 36 DB_MPOOL_HASH *dbht, *hp, *hp_end, *hp_saved, *hp_tmp; local 151 hp = &dbht[c_mp->last_checked++]; 152 if (hp >= hp_end) { 154 hp = &dbht[c_mp->last_checked++]; 226 if (SH_TAILQ_FIRST(&hp->hash_bucket, __bh) == NULL) 231 MUTEX_LOCK(env, hp->mtx_hash); 252 SH_TAILQ_FOREACH(t1bhp, &hp->hash_bucket, hq, __bh) { 302 retry_obsolete: if (BH_OBSOLETE(t3bhp, hp->old_reader, vlsn)) { 308 env, &hp->old_reader)) != 0) 330 if (c_mp->lru_reset != 0 && c_mp->lru_reset <= hp [all...] |
H A D | mp_sync.c | 46 DB_MPOOL_HASH *hp; local 53 hp = R_ADDR(dbmp->reginfo, mp->ftab); 54 for (i = 0; i < MPOOL_FILE_BUCKETS; i++, hp++) { 55 MUTEX_LOCK(env, hp->mtx_hash); 56 SH_TAILQ_FOREACH(mfp, &hp->hash_bucket, q, __mpoolfile) { 63 MUTEX_UNLOCK(env, hp->mtx_hash); 259 DB_MPOOL_HASH *hp; local 306 hp = R_ADDR(&dbmp->reginfo[n_cache], c_mp->htab); 307 for (i = 0; i < c_mp->htab_buckets; i++, hp++) { 316 if (SH_TAILQ_FIRST(&hp 778 DB_MPOOL_HASH *hp; local 839 DB_MPOOL_HASH *hp; local [all...] |
H A D | mp_bh.c | 28 __memp_bhwrite(dbmp, hp, mfp, bhp, open_extents) 30 DB_MPOOL_HASH *hp; 48 return (__memp_pgwrite(env, NULL, hp, bhp)); 168 ret = __memp_pgwrite(env, dbmfp, hp, bhp); 193 __memp_pgread(dbmfp, hp, bhp, can_create) 195 DB_MPOOL_HASH *hp; 215 MUTEX_UNLOCK(env, hp->mtx_hash); 270 err: MUTEX_LOCK(env, hp->mtx_hash); 283 if (F_ISSET(hp, IO_WAITER)) { 284 F_CLR(hp, IO_WAITE [all...] |
/macosx-10.10/dtrace-147/libdtrace/ |
H A D | dt_strtab.c | 100 dt_strhash_t *hp, *hq; local 104 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { 105 hq = hp->str_next; 106 free(hp); 144 dt_strtab_compare(dt_strtab_t *sp, dt_strhash_t *hp, argument 147 ulong_t b = hp->str_buf; 148 const char *buf = hp->str_data; 208 dt_strhash_t *hp; local 228 dt_strhash_t *hp; local [all...] |
/macosx-10.10/dyld-353.2.1/unit-tests/test-cases/dlopen-NULL-RTLD_FIRST/ |
H A D | main.c | 57 static void dlsym_should_fail(info hp, const char* symbol) argument 59 void* sym = dlsym(hp.handle, symbol); 61 FAIL("dlsym-NULL-RTLD_FIRST: dlsym(handle-%s, \"%s\") should have failed", hp.path, symbol); 66 static void dlsym_should_succeed(info hp, const char* symbol) argument 68 void* sym = dlsym(hp.handle, symbol); 70 FAIL("dlsym-NULL-RTLD_FIRST: dlsym(handle-%s, \"%s\") failed", hp.path, symbol);
|
/macosx-10.10/tcl-105/tcl/tcl/unix/ |
H A D | tclUnixSock.c | 50 struct hostent *hp; 54 hp = TclpGetHostByName(u.nodename); /* INTL: Native. */ 55 if (hp == NULL) { 69 hp = TclpGetHostByName(node); 73 if (hp != NULL) { 74 native = hp->h_name; 49 struct hostent *hp; local
|
/macosx-10.10/tcl-105/tcl84/tcl/unix/ |
H A D | tclUnixSock.c | 71 struct hostent *hp; 87 hp = TclpGetHostByName(u.nodename); /* INTL: Native. */ 88 if (hp == NULL) { 99 hp = TclpGetHostByName(node); 103 if (hp != NULL) { 104 native = hp->h_name; 70 struct hostent *hp; local
|
/macosx-10.10/mail_cmds-30/mail/ |
H A D | send.c | 304 mail1(hp, printheaders) 305 struct header *hp; 319 if ((mtf = collect(hp, printheaders)) == NULL) 324 grabh(hp, GCC); 326 grabh(hp, GBCC); 335 if (hp->h_subject == NULL) 346 to = usermap(cat(hp->h_bcc, cat(hp->h_to, hp->h_cc))); 355 to = outof(to, mtf, hp); [all...] |
/macosx-10.10/bind9-45.101/bind9/contrib/idn/idnkit-1.0-src/tools/runidn/ |
H A D | resolver.c | 127 static struct hostent *copy_decode_hostent_static(struct hostent *hp, 132 static struct hostent *copy_decode_hostent_dynamic(struct hostent *hp, 134 static void free_copied_hostent(struct hostent *hp); 218 copy_decode_hostent_static(struct hostent *hp, struct hostent *newhp, argument 222 * Copy "struct hostent" data referenced by 'hp' to 'newhp'. 223 * It's a deep-copy, meaning all the data referenced by 'hp' are 225 * The domain names ('hp->h_name' and 'hp->h_aliases') are 233 if (hp == NULL) 236 *newhp = *hp; 393 copy_decode_hostent_dynamic(struct hostent *hp, int *errp) argument 481 free_copied_hostent(struct hostent *hp) argument 539 struct hostent *hp; local 567 struct hostent *hp; local 594 struct hostent *hp; local 789 struct hostent *hp, he; local 840 struct hostent *hp, he; local 884 struct hostent *hp; local 915 struct hostent *hp; local 939 freehostent(struct hostent *hp) argument [all...] |
/macosx-10.10/libresolv-57/ |
H A D | res_mkquery.c | 112 register HEADER *hp; local 134 hp = (HEADER *) buf; 136 hp->id = res_randomid(); 138 hp->id = htons(++statp->id); 140 hp->opcode = op; 141 hp->rd = (statp->options & RES_RECURSE) != 0; 142 hp->rcode = ns_r_noerror; 165 hp->qdcount = htons(1); 185 hp->arcount = htons(1); 207 hp 230 register HEADER *hp; local [all...] |
/macosx-10.10/dtrace-147/tools/ctfconvert/ |
H A D | dump.c | 148 ref_to_str(uint_t name, const ctf_header_t *hp, const ctf_data_t *cd) argument 151 const char *s = cd->cd_ctfdata + hp->cth_stroff + offset; 156 if (offset >= hp->cth_strlen) 159 if (hp->cth_stroff + offset >= cd->cd_ctflen) 219 print_header(const ctf_header_t *hp, const ctf_data_t *cd) argument 223 (void) printf(" cth_magic = 0x%04x\n", hp->cth_magic); 224 (void) printf(" cth_version = %u\n", hp->cth_version); 225 (void) printf(" cth_flags = 0x%02x\n", hp->cth_flags); 227 ref_to_str(hp->cth_parlabel, hp, c 241 print_labeltable(const ctf_header_t *hp, const ctf_data_t *cd) argument 414 read_data(const ctf_header_t *hp, const ctf_data_t *cd) argument 458 read_funcs(const ctf_header_t *hp, const ctf_data_t *cd) argument 535 read_types(const ctf_header_t *hp, const ctf_data_t *cd) argument 780 read_strtab(const ctf_header_t *hp, const ctf_data_t *cd) argument 814 clean_strtab(ctf_header_t *hp, ctf_data_t *cd, strtab_t *strtab, char **syms, int nsyms) argument 850 ctf_data_to_ctf_buf(ctf_header_t *hp, ctf_data_t *cd, ctf_buf_t *cb) argument 868 write_ctfdata(int srcfd, Elf *srcelf, const char *srcname, const char *dstname, ctf_header_t *hp, ctf_buf_t *buf) argument 1063 ctf_header_t *hp; local [all...] |
/macosx-10.10/ksh-23/ksh/src/lib/libcmd/ |
H A D | tee.c | 75 register int* hp = ((Tee_t*)handle)->fd; local 89 } while ((fd = *hp++) >= 0); 96 register int* hp; local 104 for (hp = tp->fd; (n = *hp) >= 0; hp++) 114 register int* hp; local 177 hp = tp->fd; 180 while ((*hp = open(cp, oflag, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0 && errno == EINTR) 182 if (*hp < [all...] |
/macosx-10.10/bind9-45.101/bind9/contrib/idn/idnkit-1.0-src/wsock/common/ |
H A D | dump.c | 78 dumpHost(const struct hostent FAR *hp, char *buff, size_t size) { argument 82 if (strlen(hp->h_name) + 1 < size) { 83 sprintf(p, "%s ", hp->h_name); 87 dumpAddr(hp->h_addr_list[0], hp->h_length, p, size);
|
/macosx-10.10/bind9-45.101/bind9/contrib/query-loc-0.4.0/ |
H A D | query-loc.c | 24 struct hostent *hp; local 70 hp = (struct hostent *) gethostbyaddr 72 if (hp) 76 hp->h_name); 77 loc = getlocbyname (hp->h_name, FALSE);
|
/macosx-10.10/OpenSSH-189/openssh/openbsd-compat/ |
H A D | fake-rfc2553.c | 51 struct hostent *hp; local 70 hp = gethostbyaddr((char *)&sin->sin_addr, 72 if (hp == NULL) 75 if (strlcpy(host, hp->h_name, hostlen) >= hostlen) 158 struct hostent *hp; local 209 hp = gethostbyname(hostname); 210 if (hp && hp->h_name && hp->h_name[0] && hp [all...] |
/macosx-10.10/tcsh-65/tcsh/ |
H A D | sh.hist.c | 63 struct Hist *hp, *np; local 80 for (hp = &Histlist; (np = hp->Hnext) != NULL;) 82 hp->Hnext = np->Hnext, hfree(np); 84 hp = np; 115 /* masaoki@akebono.tky.hp.com (Kobayashi Masaoki) */ 200 hfree(struct Hist *hp) argument 203 freelex(&hp->Hlex); 204 if (hp->histline) 205 xfree(hp 252 struct Hist *np, *hp; local 272 dohist1(struct Hist *hp, int *np, int hflg) argument 296 phist(struct Hist *hp, int hflg) argument 344 struct Hist *hp = ptr; local [all...] |
/macosx-10.10/dyld-353.2.1/unit-tests/test-cases/dlopen-RTLD_FIRST/ |
H A D | main.c | 57 static void dlsym_should_fail(info hp, const char* symbol) argument 59 void* sym = dlsym(hp.handle, symbol); 61 FAIL("dlopen-RTLD_FIRST: dlsym(handle-%s, \"%s\") should have failed", hp.path, symbol); 66 static void dlsym_should_succeed(info hp, const char* symbol) argument 68 void* sym = dlsym(hp.handle, symbol); 70 FAIL("dlopen-RTLD_FIRST: dlsym(handle-%s, \"%s\") failed", hp.path, symbol);
|
/macosx-10.10/postfix-255/postfix/src/global/ |
H A D | header_opts.c | 98 const HEADER_OPTS *hp; local 107 for (hp = header_opts; hp < header_opts + HEADER_OPTS_SIZE; hp++) { 109 for (cp = hp->name; *cp; cp++) 112 htable_enter(header_hash, vstring_str(header_key), (char *) hp);
|
/macosx-10.10/ntp-92/scripts/ |
H A D | hpadjtime.sh | 6 hp-ux) case "$3" in
|
/macosx-10.10/BerkeleyDB-21/db/rpc_server/c/ |
H A D | db_server_util.c | 691 home_entry *hp, *homep; local 694 if ((ret = __os_malloc(NULL, sizeof(home_entry), &hp)) != 0) 696 if ((ret = __os_malloc(NULL, strlen(home)+1, &hp->home)) != 0) 698 memcpy(hp->home, home, strlen(home)+1); 699 hp->dir = home; 700 hp->passwd = NULL; 703 * to assure hp->name points to the last component. 705 hp->name = __db_rpath(home); 706 if (hp->name != NULL) { 707 *(hp 739 home_entry *hp; local 764 home_entry *hp; local 780 home_entry *hp; local [all...] |
/macosx-10.10/remote_cmds-47/timed.tproj/timedc.tproj/ |
H A D | cmds.c | 70 struct hostent *hp; variable in typeref:struct:hostent 200 hp = gethostbyname(*argv); 201 if (hp == NULL) { 206 server.sin_family = hp->h_addrtype; 207 bcopy(hp->h_addr, &server.sin_addr.s_addr, hp->h_length); 219 printf("%s is down\n", hp->h_name); 223 hp->h_name); 226 printf("%s is unreachable\n", hp->h_name); 236 dayaddr.sin_family = hp [all...] |
/macosx-10.10/BerkeleyDB-21/db/rpc_server/cxx/ |
H A D | db_server_cxxutil.cpp | 628 home_entry *hp, *homep; local 631 if ((ret = __os_malloc(NULL, sizeof(home_entry), &hp)) != 0) 633 if ((ret = __os_malloc(NULL, strlen(home)+1, &hp->home)) != 0) 635 memcpy(hp->home, home, strlen(home)+1); 636 hp->dir = home; 637 hp->passwd = NULL; 640 * to assure hp->name points to the last component. 642 hp->name = __db_rpath(home); 643 if (hp->name != NULL) { 644 *(hp 673 home_entry *hp; local 694 home_entry *hp; local 710 home_entry *hp; local [all...] |
/macosx-10.10/libutil-38/ |
H A D | realhostname.c | 54 struct hostent *hp; local 57 hp = gethostbyaddr((const char *)ip, sizeof(*ip), AF_INET); 59 if (hp != NULL) { 60 strlcpy(trimmed, hp->h_name, sizeof(trimmed)); 65 strncpy(lookup, hp->h_name, sizeof(lookup) - 1); 67 hp = gethostbyname(lookup); 68 if (hp == NULL) 70 else for (; ; hp->h_addr_list++) { 71 if (*hp->h_addr_list == NULL) { 75 if (!memcmp(*hp [all...] |
/macosx-10.10/curl-83.1.2/curl/tests/unit/ |
H A D | unit1305.c | 43 static struct curl_hash *hp; variable in typeref:struct:curl_hash 53 hp = Curl_mk_dnscache(); 54 if(!hp) { 71 Curl_hash_destroy(hp); 133 nodep = Curl_hash_add(hp, data_key, key_len+1, data_node);
|
/macosx-10.10/remote_cmds-47/rlogin.tproj/ |
H A D | kcmd.c | 117 struct hostent *hp; local 123 hp = gethostbyname(*ahost); 124 if (hp == NULL) { 129 host_save = malloc(strlen(hp->h_name) + 1); 130 strcpy(host_save, hp->h_name); 152 sin.sin_family = hp->h_addrtype; 154 bcopy(hp->h_addr, (caddr_t)&sin.sin_addr, hp->h_length); 156 bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, hp [all...] |