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

1234567

/osnet-11/usr/src/lib/libslp/clib/
H A DSLPOpen.c39 slp_handle_impl_t *hp; local
46 if (!(hp = malloc(sizeof (*hp)))) {
52 hp->pending_outcall = SLP_FALSE;
53 (void) mutex_init(&(hp->outcall_lock), NULL, NULL);
54 (void) cond_init(&(hp->outcall_cv), NULL, NULL);
55 hp->close_on_end = SLP_FALSE;
56 hp->consumer_tid = 0;
59 if (!(hp->locale = SLPGetProperty(SLP_CONFIG_LOCALE))) {
60 hp
98 slp_cleanup_handle(slp_handle_impl_t *hp) argument
111 slp_handle_impl_t *hp = (slp_handle_impl_t *)hSLP; local
[all...]
H A Dslp_ua_common.c39 slp_handle_impl_t *hp; member in struct:thr_call_args
53 slp_handle_impl_t *hp; local
61 hp = (slp_handle_impl_t *)hSLP;
64 if ((err = slp_new_target_list(hp, scopes, &targets)) != SLP_OK)
66 if ((err = check_message_fit(hp, targets)) != SLP_OK) {
78 args->hp = hp;
88 hp->q = q;
98 hp->producer_tid = tid;
100 if (hp
125 slp_handle_impl_t *hp; local
237 check_message_fit(slp_handle_impl_t *hp, slp_target_list_t *targets) argument
[all...]
H A DSLPGetRefreshInterval.c46 slp_handle_impl_t *hp; /* SLP handle for this request */ local
55 if ((err = SLPOpen("en", SLP_FALSE, (void **)&hp)) != SLP_OK) {
62 hp->internal_call = SLP_TRUE;
78 (void) slp_UnpackAttrReply(hp, reply, refresh_interval_cb,
82 (void) slp_UnpackAttrReply(hp, NULL, refresh_interval_cb,
89 SLPClose(hp);
H A Dslp_net.c68 slp_handle_impl_t *hp; member in struct:tcp_rqst
124 void slp_uc_tcp_send(slp_handle_impl_t *hp, slp_target_t *target, argument
130 if (!hp->tcp_lock) {
131 if (!(hp->tcp_lock = malloc(sizeof (*(hp->tcp_lock))))) {
136 (void) mutex_init(hp->tcp_lock, NULL, NULL);
138 if (!hp->tcp_wait) {
139 if (!(hp->tcp_wait = malloc(sizeof (*(hp->tcp_wait))))) {
144 (void) cond_init(hp
172 slp_tcp_wait(slp_handle_impl_t *hp) argument
188 slp_uc_udp_send(slp_handle_impl_t *hp, slp_target_t *target, const char *scopes) argument
331 slp_mc_send(slp_handle_impl_t *hp, const char *scopes) argument
462 slp_handle_impl_t *hp; local
634 make_header(slp_handle_impl_t *hp, char *header, const char *scopes) argument
696 make_mc_target(slp_handle_impl_t *hp, struct sockaddr_in *sin, char *header, struct pollfd **fds, nfds_t *nfds, struct bc_ifs *bcifs) argument
895 make_bc_target(slp_handle_impl_t *hp, struct in_addr *given_ifs, int num_givenifs, struct bc_ifs *bcifs) argument
1003 mc_recvmsg(struct pollfd *pfd, nfds_t nfds, slp_handle_impl_t *hp, const char *scopes, char *header, void **collator, unsigned long long final_to, unsigned long long sent, unsigned long long *now, int *noresults, int *anyresults, int timeout) argument
1119 tcp_handoff(slp_handle_impl_t *hp, const char *scopes, struct sockaddr_in *sin, unsigned short xid) argument
[all...]
H A DSLPFindSrvs.c60 slp_handle_impl_t *hp = (slp_handle_impl_t *)hSLP; local
85 hp->force_multicast = SLP_TRUE;
88 hp->force_multicast = SLP_TRUE;
94 err = slp_packSrvRqst(pcServiceType, pcSearchFilter, hp);
106 SLPBoolean slp_unpackSrvReply(slp_handle_impl_t *hp, char *reply, argument
119 if (!hp->async) {
120 traverse_surls(hp, cb, cookie, *collator);
122 cb(hp, NULL, 0, SLP_LAST_CALL, cookie);
133 return (cb(hp, NULL, 0, errCode, cookie));
141 for (i = 0; i < urlCount && !hp
224 unpackDAAdvert_srv(slp_handle_impl_t *hp, char *reply, SLPSrvURLCallback cb, void *cookie, void **collator, int *numResults) argument
282 unpackSAAdvert_srv(slp_handle_impl_t *hp, char *reply, SLPSrvURLCallback cb, void *cookie, void **collator, int *numResults) argument
328 slp_packSrvRqst(const char *type, const char *filter, slp_handle_impl_t *hp) argument
[all...]
/osnet-11/usr/src/lib/libdtrace/common/
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...]
H A Ddt_strtab.c101 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...]
/osnet-11/usr/src/lib/scsi/libscsi/common/
H A Dscsi_subr.c68 libscsi_set_errno(libscsi_hdl_t *hp, libscsi_errno_t err) argument
70 hp->lsh_errno = err;
71 hp->lsh_errmsg[0] = '\0';
83 libscsi_verror(libscsi_hdl_t *hp, libscsi_errno_t err, const char *fmt, argument
99 errmsg = alloca(sizeof (hp->lsh_errmsg));
100 (void) vsnprintf(errmsg, sizeof (hp->lsh_errmsg), fmt, ap);
101 (void) libscsi_set_errno(hp, err);
108 bcopy(errmsg, hp->lsh_errmsg, n + 1);
115 libscsi_error(libscsi_hdl_t *hp, libscsi_errno_t err, const char *fmt, ...) argument
120 return (libscsi_set_errno(hp, er
130 libscsi_errno(libscsi_hdl_t *hp) argument
136 libscsi_errmsg(libscsi_hdl_t *hp) argument
146 libscsi_alloc(libscsi_hdl_t *hp, size_t size) argument
162 libscsi_zalloc(libscsi_hdl_t *hp, size_t size) argument
175 libscsi_strdup(libscsi_hdl_t *hp, const char *str) argument
188 libscsi_free(libscsi_hdl_t *hp, void *ptr) argument
196 libscsi_hdl_t *hp; local
211 libscsi_fini(libscsi_hdl_t *hp) argument
230 libscsi_cmd_cdblen(libscsi_hdl_t *hp, uint8_t cmd) argument
271 libscsi_process_inquiry_string(libscsi_hdl_t *hp, const char *raw, size_t len) argument
293 libscsi_get_inquiry(libscsi_hdl_t *hp, libscsi_target_t *tp) argument
[all...]
H A Dscsi_engine.c43 get_engine(libscsi_hdl_t *hp, const char *name) argument
57 for (eip = hp->lsh_engines; eip != NULL; eip = eip->lsei_next) {
98 (void) libscsi_error(hp, ESCSI_NOENGINE,
108 (void) libscsi_error(hp, ESCSI_NOENGINE,
114 if ((ep = init(hp)) == NULL) {
121 if (ep->lse_libversion != hp->lsh_version) {
123 (void) libscsi_error(hp, ESCSI_ENGINE_VER, "engine "
125 engine_lib, ep->lse_libversion, hp->lsh_version);
129 eip = libscsi_zalloc(hp, sizeof (libscsi_engine_impl_t));
136 eip->lsei_next = hp
163 libscsi_open(libscsi_hdl_t *hp, const char *engine, const void *target) argument
220 libscsi_close(libscsi_hdl_t *hp, libscsi_target_t *tp) argument
504 libscsi_action_alloc(libscsi_hdl_t *hp, spc3_cmd_t cmd, uint_t flags, void *buf, size_t buflen) argument
628 libscsi_hdl_t *hp = aip->lsai_hdl; local
[all...]
/osnet-11/usr/src/lib/libshell/common/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...]
/osnet-11/usr/src/cmd/sendmail/db/db/
H A Ddb_dispatch.c208 DB_TXNHEAD *hp; local
216 hp = (DB_TXNHEAD *)listp;
217 LIST_INSERT_HEAD(&hp->head, elp, links);
218 if (txnid > hp->maxid)
219 hp->maxid = txnid;
220 elp->generation = hp->generation;
237 DB_TXNHEAD *hp; local
240 if ((hp = (DB_TXNHEAD *)listp) == NULL)
243 for (p = hp->head.lh_first; p != NULL; p = p->links.le_next)
244 if (p->txnid == txnid && hp
260 DB_TXNHEAD *hp; local
282 DB_TXNHEAD *hp; local
307 DB_TXNHEAD *hp; local
[all...]
/osnet-11/usr/src/lib/libshell/common/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))
/osnet-11/usr/src/lib/libnwam/common/
H A Dlibnwam_object.c169 struct nwam_handle *hp; local
174 if (nwam_read(type, dbname, name, 0, &hp) == NWAM_SUCCESS) {
175 nwam_free(hp, B_TRUE);
187 nwam_get_name(struct nwam_handle *hp, char **namep) argument
189 assert(hp != NULL && namep != NULL);
191 if ((*namep = strdup(hp->nwh_name)) == NULL) {
199 nwam_set_name(struct nwam_handle *hp, const char *name) argument
201 assert(hp != NULL && name != NULL);
203 if (hp->nwh_committed)
206 if (strlen(name) >= sizeof (hp
217 struct nwam_handle *hp = *arg; local
248 nwam_free(struct nwam_handle *hp, boolean_t free_data) argument
266 struct nwam_handle *hp; local
291 nwam_walk_props(struct nwam_handle *hp, int (*cb)(const char *, nwam_value_t, void *), void *data, uint64_t flags, int *retp) argument
335 nwam_commit(const char *dbname, struct nwam_handle *hp, uint64_t flags) argument
412 nwam_is_active(struct nwam_handle *hp) argument
422 nwam_destroy(const char *dbname, struct nwam_handle *hp, uint64_t flags) argument
498 nwam_enable(const char *parent, struct nwam_handle *hp) argument
505 nwam_disable(const char *parent, struct nwam_handle *hp) argument
512 nwam_offline(const char *parent, struct nwam_handle *hp) argument
519 nwam_online(const char *parent, struct nwam_handle *hp) argument
527 nwam_get_state(const char *parent, struct nwam_handle *hp, nwam_state_t *statep, nwam_aux_state_t *auxp) argument
696 nwam_validate_prop(struct nwam_prop_table table, struct nwam_handle *hp, const char *propname, nwam_value_t value) argument
711 nwam_validate(struct nwam_prop_table table, struct nwam_handle *hp, const char **errpropp) argument
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsn2princ.c136 struct hostent *hp = NULL; local
159 hp = res_getipnodebyname(hostname, addr_family, 0, &err);
160 if (!hp) {
176 remote_host = strdup(hp ? hp->h_name : hostname);
178 if (hp != NULL)
179 res_freehostent(hp);
195 hp2 = res_getipnodebyaddr(hp->h_addr, hp->h_length,
196 hp
[all...]
/osnet-11/usr/src/lib/scsi/plugins/scsi/engines/uscsi/
H A Duscsi.c48 uscsi_open(libscsi_hdl_t *hp, const void *target) argument
53 if ((dp = libscsi_zalloc(hp, sizeof (struct uscsi_dev))) == NULL)
56 if ((dp->dev = libscsi_strdup(hp, target_name)) == NULL) {
57 libscsi_free(hp, dp);
62 (void) libscsi_error(hp, ESCSI_BADTARGET, "failed to open %s "
64 libscsi_free(hp, dp->dev);
65 libscsi_free(hp, dp);
73 uscsi_close(libscsi_hdl_t *hp, void *private) argument
83 libscsi_free(hp, dp->dev);
84 libscsi_free(hp, d
88 xlate_flags(libscsi_hdl_t *hp, uint_t flags, int *uf) argument
152 uscsi_exec(libscsi_hdl_t *hp, void *private, libscsi_action_t *ap) argument
233 uscsi_target_name(libscsi_hdl_t *hp, void *private) argument
255 libscsi_uscsi_init(libscsi_hdl_t *hp) argument
[all...]
/osnet-11/usr/src/lib/libcmd/common/
H A Dtee.c75 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...]
/osnet-11/usr/src/cmd/sendmail/libsm/
H A Dheap.c530 SM_HEAP_ITEM_T *hi, **hp; local
543 for (hp = &SmHeapTable[ptrhash(ptr)]; *hp != NULL; hp = &(**hp).hi_next)
545 if ((**hp).hi_ptr == ptr)
549 hi = *hp;
564 *hp = hi->hi_next;
567 hp = &SmHeapTable[ptrhash(newptr)];
568 hi->hi_next = *hp;
598 SM_HEAP_ITEM_T *hi, **hp; local
665 SM_HEAP_ITEM_T **hp; local
727 SM_HEAP_ITEM_T *hp; local
[all...]
/osnet-11/usr/src/lib/libshell/amd64/include/ast/
H A Dhistory.h65 #define hist_min(hp) ((_Hist=((int)((hp)->histind-(hp)->histsize)))>=0?_Hist:0)
66 #define hist_max(hp) ((int)((hp)->histind))
/osnet-11/usr/src/lib/libshell/i386/include/ast/
H A Dhistory.h65 #define hist_min(hp) ((_Hist=((int)((hp)->histind-(hp)->histsize)))>=0?_Hist:0)
66 #define hist_max(hp) ((int)((hp)->histind))
/osnet-11/usr/src/lib/libshell/sparc/include/ast/
H A Dhistory.h65 #define hist_min(hp) ((_Hist=((int)((hp)->histind-(hp)->histsize)))>=0?_Hist:0)
66 #define hist_max(hp) ((int)((hp)->histind))
/osnet-11/usr/src/lib/libshell/sparcv9/include/ast/
H A Dhistory.h65 #define hist_min(hp) ((_Hist=((int)((hp)->histind-(hp)->histsize)))>=0?_Hist:0)
66 #define hist_max(hp) ((int)((hp)->histind))
/osnet-11/usr/src/lib/libdhcpdu/common/
H A Drfc2136.c75 struct hostent *hp; member in struct:childstat
149 dns_puthostent(struct hostent *hp, time_t timeout) argument
163 if (hp == NULL) {
164 dprint("hp is NULL - return -1\n");
167 if (hp->h_addr_list == NULL) {
169 freehost(hp);
172 if (hp->h_addr_list[0] == NULL) {
174 freehost(hp);
177 if (hp->h_name == NULL) {
179 freehost(hp);
306 struct hostent *hp; local
380 HEADER *hp; local
620 send_update(struct hostent *hp, struct in_addr *to_server) argument
910 freehost(struct hostent *hp) argument
[all...]
/osnet-11/usr/src/lib/libwrap/
H A Dworkarounds.c227 struct hostent *hp; local
234 if ((hp = gethostbyname(name)) && !hp->h_addr_list[1] && hp->h_aliases[1]) {
235 for (o_aliases = n_addr_list = hp->h_aliases; *o_aliases; o_aliases++) {
237 memcpy(*n_addr_list++, (char *) &addr, hp->h_length);
242 o_addr_list = hp->h_addr_list;
243 memcpy(*n_addr_list++, *o_addr_list, hp->h_length);
245 hp->h_addr_list = hp
[all...]
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_mh.c69 mhd_handle_t *hp
72 assert(hp != NULL);
73 if (hp->hostname != NULL) {
74 Free(hp->hostname);
76 if (hp->clientp != NULL) {
77 auth_destroy(hp->clientp->cl_auth);
78 clnt_destroy(hp->clientp);
80 Free(hp);
93 mhd_handle_t *hp; local
113 hp
192 mhd_handle_t *hp = NULL; local
322 mhd_handle_t *hp = NULL; local
444 mhd_handle_t *hp = NULL; local
654 mhd_handle_t *hp = NULL; local
[all...]
H A Dmeta_med.c135 med_handle_t *hp
138 assert(hp != NULL);
139 if (hp->hostname != NULL) {
140 Free(hp->hostname);
142 if (hp->clntp != NULL) {
143 auth_destroy(hp->clntp->cl_auth);
144 clnt_destroy(hp->clntp);
146 Free(hp);
160 med_handle_t *hp; local
185 hp
259 med_handle_t *hp = NULL; local
352 med_handle_t *hp; local
393 med_handle_t *hp; local
450 med_handle_t *hp; local
504 med_handle_t *hp; local
572 med_handle_t *hp; local
643 med_handle_t *hp; local
712 med_handle_t *hp; local
782 med_handle_t *hp; local
834 struct hostent *hp; local
[all...]

Completed in 61 milliseconds

1234567