Home
last modified time | relevance | path

Searched refs:hp (Results 51 – 75 of 388) sorted by relevance

12345678910>>...16

/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dtee.c75 register int* hp = ((Tee_t*)handle)->fd; in tee_write() local
89 } while ((fd = *hp++) >= 0); in tee_write()
96 register int* hp; in tee_cleanup() local
104 for (hp = tp->fd; (n = *hp) >= 0; hp++) in tee_cleanup()
114 register int* hp; in b_tee() local
177 hp = tp->fd; in b_tee()
180 …while ((*hp = open(cp, oflag, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0 && errno == EI… in b_tee()
182 if (*hp < 0) in b_tee()
185 hp++; in b_tee()
187 if (hp == tp->fd) in b_tee()
[all …]
/illumos-gate/usr/src/lib/libslp/clib/
H A DSLPFindAttrs.c117 if (!hp->async) { in slp_UnpackAttrReply()
121 if (!hp->async && pcAttrList) { in slp_UnpackAttrReply()
170 if (!hp->async) { in slp_UnpackAttrReply()
203 if (!hp->async) { in unpackDAAdvert_attr()
207 if (!hp->async && attrs) { in unpackDAAdvert_attr()
224 if (!hp->async) { in unpackDAAdvert_attr()
259 if (!hp->async) { in unpackSAAdvert_attr()
263 if (!hp->async && attrs) { in unpackSAAdvert_attr()
276 if (!hp->async) { in unpackSAAdvert_attr()
301 slp_msg_t *msg = &(hp->msg); in slp_packAttrRqst()
[all …]
H A Dslp_utils.c102 (void) mutex_lock(&(hp->outcall_lock)); in slp_start_call()
103 if (hp->pending_outcall) { in slp_start_call()
107 hp->pending_outcall = SLP_TRUE; in slp_start_call()
108 (void) mutex_unlock(&(hp->outcall_lock)); in slp_start_call()
110 hp->cancel = 0; in slp_start_call()
114 void slp_end_call(slp_handle_impl_t *hp) { in slp_end_call() argument
115 (void) mutex_lock(&(hp->outcall_lock)); in slp_end_call()
116 if (hp->close_on_end) { in slp_end_call()
119 slp_cleanup_handle(hp); in slp_end_call()
123 hp->pending_outcall = SLP_FALSE; in slp_end_call()
[all …]
/illumos-gate/usr/src/common/ctf/
H A Dctf_open.c590 bcopy(ctfsect->cts_data, &hp, sizeof (hp)); in ctf_bufopen()
600 bzero(&hp, sizeof (hp)); in ctf_bufopen()
612 size = hp.cth_stroff + hp.cth_strlen; in ctf_bufopen()
616 if (hp.cth_lbloff > size || hp.cth_objtoff > size || in ctf_bufopen()
617 hp.cth_funcoff > size || hp.cth_typeoff > size || in ctf_bufopen()
621 if (hp.cth_lbloff > hp.cth_objtoff || in ctf_bufopen()
622 hp.cth_objtoff > hp.cth_funcoff || in ctf_bufopen()
623 hp.cth_funcoff > hp.cth_typeoff || in ctf_bufopen()
624 hp.cth_typeoff > hp.cth_stroff) in ctf_bufopen()
627 if ((hp.cth_lbloff & 3) || (hp.cth_objtoff & 1) || in ctf_bufopen()
[all …]
/illumos-gate/usr/src/lib/libwrap/
H A Dworkarounds.c228 struct hostent *hp; local
235 if ((hp = gethostbyname(name)) && !hp->h_addr_list[1] && hp->h_aliases[1]) {
236 for (o_aliases = n_addr_list = hp->h_aliases; *o_aliases; o_aliases++) {
238 memcpy(*n_addr_list++, (char *) &addr, hp->h_length);
243 o_addr_list = hp->h_addr_list;
244 memcpy(*n_addr_list++, *o_addr_list, hp->h_length);
246 hp->h_addr_list = hp->h_aliases;
247 hp->h_aliases = o_addr_list + 1;
250 return (hp);
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd_info.c247 di_hp_t hp, port_hp; in copy_hotplug() local
266 for (hp = DI_HP_NIL; (hp = di_hp_next(dev, hp)) != DI_HP_NIL; ) { in copy_hotplug()
281 (strcmp(di_hp_name(hp), connection) != 0)) in copy_hotplug()
306 for (hp = DI_HP_NIL; (hp = di_hp_next(dev, hp)) != DI_HP_NIL; ) { in copy_hotplug()
314 (strcmp(di_hp_name(hp), connection) != 0)) in copy_hotplug()
327 physnum = di_hp_connection(hp); in copy_hotplug()
491 new_hotplug_node(hp_node_t parent, di_hp_t hp) in new_hotplug_node() argument
500 node->hp_state = di_hp_state(hp); in new_hotplug_node()
501 node->hp_last_change = di_hp_last_change(hp); in new_hotplug_node()
502 if ((s = di_hp_name(hp)) != NULL) in new_hotplug_node()
[all …]
/illumos-gate/usr/src/ucbcmd/mkstr/
H A Dmkstr.c271 struct hash *hp; in hashit() local
284 for (hp = bucket[i]; hp != 0; hp = hp->hnext) in hashit()
285 if (hp->hval == hashval) { in hashit()
286 (void) fseek(mesgread, (long)hp->hpt, 0); in hashit()
291 if (!really || hp == 0) { in hashit()
292 hp = (struct hash *)calloc(1, sizeof (*hp)); in hashit()
293 hp->hnext = bucket[i]; in hashit()
294 hp->hval = hashval; in hashit()
295 hp->hpt = really ? ftell(mesgwrite) : fakept; in hashit()
301 bucket[i] = hp; in hashit()
[all …]
/illumos-gate/usr/src/cmd/backup/lib/
H A Dmyrcmd.c75 struct hostent *hp; in myrcmd() local
87 hp = gethostbyname(*ahost); in myrcmd()
88 if (hp == 0) { in myrcmd()
115 hp = &numhp; in myrcmd()
118 *ahost = hp->h_name; in myrcmd()
124 hp->h_length, sizeof (sin.sin_addr)); in myrcmd()
174 sin.sin_family = hp->h_addrtype; in myrcmd()
175 bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, hp->h_length); in myrcmd()
189 if (hp->h_addr_list[1] != NULL) { in myrcmd()
197 hp->h_addr_list++; in myrcmd()
[all …]
/illumos-gate/usr/src/cmd/acct/lib/
H A Dpnpsplit.c89 struct hours *hp; in pnpsplit() local
115 for (hp = h; tmless(hp, &cur); hp++); in pnpsplit()
116 for (; hp->h_sec >= 0; hp++) { in pnpsplit()
119 result[hp->h_type] += tend-tcur; in pnpsplit()
123 hours.tm_sec = hp->h_sec; in pnpsplit()
124 hours.tm_min = hp->h_min; in pnpsplit()
125 hours.tm_hour = hp->h_hour; in pnpsplit()
127 result[hp->h_type] += tmp; in pnpsplit()
129 cur.tm_sec = hp->h_sec; in pnpsplit()
130 cur.tm_min = hp->h_min; in pnpsplit()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dprinthash_live.c18 iphtable_t *printhash_live(hp, fd, name, opts) in printhash_live() argument
19 iphtable_t *hp; in printhash_live()
29 if ((name != NULL) && strncmp(name, hp->iph_name, FR_GROUPLEN))
30 return hp->iph_next;
32 printhashdata(hp, opts);
46 iter.ili_unit = hp->iph_unit;
47 strncpy(iter.ili_name, hp->iph_name, FR_GROUPLEN);
64 (void) printhashnode(hp, node, bcopywrap, opts);
78 return hp->iph_next;
/illumos-gate/usr/src/uts/sun4/io/efcode/
H A Dfc_subr.c503 for (hp = *head; hp; hp = hp->next) { in fc_dip_to_phandle()
504 if (hp->dip == dip) { in fc_dip_to_phandle()
546 for (hp = *head; hp; hp = hp->next) { in fc_add_dip_to_phandle()
547 if (hp->dip == dip) { in fc_add_dip_to_phandle()
667 while (hp) { in fc_find_node()
668 if (hp->dip == dip) in fc_find_node()
669 return (hp); in fc_find_node()
671 if (hp->child) in fc_find_node()
675 hp = hp->peer; in fc_find_node()
692 p = fc_find_node(child, hp); in fc_add_child()
[all …]
H A Dfc_ddi.c63 ddi_dma_impl_t *hp; in fc_ddi_dma_buf_bind_handle() local
68 hp = (ddi_dma_impl_t *)handle; in fc_ddi_dma_buf_bind_handle()
69 dip = hp->dmai_rdip; in fc_ddi_dma_buf_bind_handle()
118 ddi_dma_impl_t *hp; in fc_ddi_dma_unbind_handle() local
121 hp = (ddi_dma_impl_t *)handle; in fc_ddi_dma_unbind_handle()
122 dip = hp->dmai_rdip; in fc_ddi_dma_unbind_handle()
131 ddi_dma_impl_t *hp; in fc_ddi_dma_free_handle() local
134 hp = (ddi_dma_impl_t *)*handlep; in fc_ddi_dma_free_handle()
135 dip = hp->dmai_rdip; in fc_ddi_dma_free_handle()
143 ddi_dma_impl_t *hp = (ddi_dma_impl_t *)h; in fc_ddi_dma_sync() local
[all …]
/illumos-gate/usr/src/cmd/audio/utilities/
H A Dhdr_misc.c46 audio_bytes_to_secs(Audio_hdr *hp, unsigned int cnt) in audio_bytes_to_secs() argument
49 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) / in audio_bytes_to_secs()
50 (double)hp->samples_per_unit)); in audio_bytes_to_secs()
60 audio_secs_to_bytes(Audio_hdr *hp, double sec) in audio_secs_to_bytes() argument
65 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) / in audio_secs_to_bytes()
66 (double)hp->samples_per_unit))); in audio_secs_to_bytes()
69 offset -= (offset % (hp->bytes_per_unit * hp->channels)); in audio_secs_to_bytes()
/illumos-gate/usr/src/uts/sun4u/io/
H A Disadma.c631 ddi_acc_impl_t *hp; in isadma_map() local
662 ah_platform_private = hp; in isadma_map()
665 hp->ahi_get8 = isadma_get8; in isadma_map()
666 hp->ahi_get16 = isadma_get16; in isadma_map()
667 hp->ahi_get32 = isadma_noget32; in isadma_map()
668 hp->ahi_get64 = isadma_noget64; in isadma_map()
669 hp->ahi_put8 = isadma_put8; in isadma_map()
670 hp->ahi_put16 = isadma_put16; in isadma_map()
671 hp->ahi_put32 = isadma_noput32; in isadma_map()
672 hp->ahi_put64 = isadma_noput64; in isadma_map()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_fs.c79 struct heuristic *hp; in inuse_fs() local
104 for (hp = hlist; hp; hp = hp->next) { in inuse_fs()
105 if (has_fs(hp->prog, slice)) { in inuse_fs()
107 libdiskmgt_add_str(attrs, DM_USED_NAME, hp->type, errp); in inuse_fs()
238 struct heuristic *hp; in load_heuristics() local
240 hp = (struct heuristic *) in load_heuristics()
243 if (hp == NULL) { in load_heuristics()
249 if ((hp->prog = strdup(progpath)) == NULL) { in load_heuristics()
255 if ((hp->type = strdup(dp->d_name)) == NULL) { in load_heuristics()
261 hp->next = hlist; in load_heuristics()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ho.c200 struct hostent *hp; in ho_byname() local
207 if (hp) in ho_byname()
208 return (hp); in ho_byname()
216 struct hostent *hp; in ho_byname2() local
240 if (!hp) { in ho_byname2()
245 return (hp); in ho_byname2()
252 struct hostent *hp; in ho_byaddr() local
311 if (!hp) { in ho_byaddr()
316 return (hp); in ho_byaddr()
527 if (hp == NULL) { in ho_addrinfo()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/ff/
H A Dff.c456 struct htab *hp; in pass2() local
469 if (hp == 0) in pass2()
473 hp->h_pino = ino; in pass2()
596 struct htab *hp; in pname() local
620 struct htab *hp; in lookup() local
622 for (hp = &htab[(int)i%hsize]; hp->h_ino; ) { in lookup()
624 return (hp); in lookup()
626 hp = htab; in lookup()
635 hp->h_ino = i; in lookup()
636 return (hp); in lookup()
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp.c208 _NOTE(ARGUNUSED(hp)) in sbdp_get_board_num()
424 sbdp_handle_t *hp; in sbdp_update_bd_info() local
427 hp->h_board = bdp->bd; in sbdp_update_bd_info()
428 hp->h_wnode = bdp->wnode; in sbdp_update_bd_info()
429 hp->h_err = kmem_zalloc(sizeof (*hp->h_err), KM_SLEEP); in sbdp_update_bd_info()
449 kmem_free(hp->h_err, sizeof (*hp->h_err)); in sbdp_update_bd_info()
569 sbdp_handle_t handle, *hp; in sbdp_cleanup_bd() local
597 hp = &handle; in sbdp_cleanup_bd()
598 hp->h_board = bdp->bd; in sbdp_cleanup_bd()
599 hp->h_wnode = bdp->wnode; in sbdp_cleanup_bd()
[all …]
H A Dsbdp_mem.c258 _NOTE(ARGUNUSED(hp)) in sbdp_del_memlist()
304 s_bdp = sbdp_get_bd_info(hp->h_wnode, hp->h_board); in sbdp_move_memory()
1085 s_sbp = hp->s_bdp; in sbdp_copy_rename__relocatable()
1086 t_sbp = hp->t_bdp; in sbdp_copy_rename__relocatable()
1091 hp->ret = s_base; in sbdp_copy_rename__relocatable()
1169 hp->busy_mc = isp; in sbdp_copy_rename__relocatable()
1210 hp = hp; in sbdp_memory_rename()
1223 hp = hp; in sbdp_post_configure_mem()
1235 hp = hp; in sbdp_post_unconfigure_mem()
1262 _NOTE(ARGUNUSED(hp)) in sbdphw_get_base_physaddr()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/dr/
H A Ddr_io.c73 dr_lock_status(hp->h_bd); in dr_attach_io()
75 dr_unlock_status(hp->h_bd); in dr_attach_io()
116 dr_pre_attach_io(dr_handle_t *hp, in dr_pre_attach_io() argument
132 dr_post_attach_io(dr_handle_t *hp, in dr_post_attach_io() argument
158 dr_check_devices(dip, &ref, hp, NULL, NULL, in dr_check_io_refs()
170 hp->h_err = NULL; in dr_check_io_refs()
187 dr_pre_release_io(dr_handle_t *hp, in dr_pre_release_io() argument
199 if ((hp->h_err = drmach_io_pre_release( in dr_pre_release_io()
238 dr_pre_detach_io(dr_handle_t *hp, in dr_pre_detach_io() argument
302 bp = hp->h_bd; in dr_io_status()
[all …]
/illumos-gate/usr/src/uts/sun4u/ngdr/io/
H A Ddr_io.c95 dr_lock_status(hp->h_bd); in dr_attach_io()
97 dr_unlock_status(hp->h_bd); in dr_attach_io()
138 dr_pre_attach_io(dr_handle_t *hp, in dr_pre_attach_io() argument
154 dr_post_attach_io(dr_handle_t *hp, in dr_post_attach_io() argument
180 dr_check_devices(dip, &ref, hp, NULL, NULL, in dr_check_io_refs()
192 hp->h_err = NULL; in dr_check_io_refs()
209 dr_pre_release_io(dr_handle_t *hp, in dr_pre_release_io() argument
221 if ((hp->h_err = drmach_io_pre_release( in dr_pre_release_io()
260 dr_pre_detach_io(dr_handle_t *hp, in dr_pre_detach_io() argument
324 bp = hp->h_bd; in dr_io_status()
[all …]
/illumos-gate/usr/src/cmd/mail/
H A Dckdlivopts.c68 struct hdrs *hp; local
78 if ((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL) {
79 Dout(pn, 3, "H_DEFOPTS line = '%s'\n", hp->value);
80 getopts(hp->value, &defopts);
83 if ((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL) {
84 Dout(pn, 3, "H_TROPTS line = '%s'\n", hp->value);
85 getopts(hp->value, &tropts);
88 if ((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL) {
89 Dout(pn, 3,"H_TCOPY line = '%s'\n", hp->value);
90 getopts(hp->value, &toopts);
/illumos-gate/usr/src/lib/libresolv/
H A Dres_debug.c108 register HEADER *hp; local
114 hp = (HEADER *)msg;
121 if (hp->qr)
123 if (hp->aa)
125 if (hp->tc)
127 if (hp->rd)
129 if (hp->ra)
131 if (hp->pr)
140 if (n = ntohs(hp->qdcount)) {
157 if (n = ntohs(hp->ancount)) {
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop.c944 for (hp = snoop_hp; hp; hp = next) { in snoop_alarm()
945 next = hp->s_next; in snoop_alarm()
955 free((void *)hp); in snoop_alarm()
958 nalarm = now < hp->s_time ? hp->s_time : in snoop_alarm()
960 tp = hp; in snoop_alarm()
1036 for (hp = snoop_hp; hp; hp = hp->s_next) { in snoop_sigrecover()
1037 if (hp->s_time) { in snoop_sigrecover()
1054 for (hp = snoop_hp; hp; hp = hp->s_next) { in snoop_sigrecover()
1055 if (hp->s_time) { in snoop_sigrecover()
1058 if (hp->s_handler) in snoop_sigrecover()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Ddaemon.c2346 if (hp == NULL || hp->h_addr == NULL)
2430 hp->h_addrtype, hp->h_length);
2435 memmove(addr.sa.sa_data, hp->h_addr, hp->h_length);
2715 if (hp != NULL && hp->h_addr_list[addrno] != NULL &&
2791 hp = NULL;
3297 return hp;
3484 hp = NULL;
4036 hp = NULL;
4430 hp = NULL;
4445 if (hp != NULL && hp->h_name[0] != '['
[all …]

12345678910>>...16