Searched defs:shp (Results 76 - 84 of 84) sorted by relevance

1234

/osnet-11/usr/src/lib/libshell/common/edit/
H A Dedit.c590 Shell_t *shp = ep->sh; local
600 if(!(shp->sigflag[SIGWINCH]&SH_SIGFAULT))
603 shp->sigflag[SIGWINCH] |= SH_SIGFAULT;
605 pp = shp->st.trapcom[SIGWINCH];
606 shp->st.trapcom[SIGWINCH] = 0;
608 shp->st.trapcom[SIGWINCH] = pp;
619 if(!(last = shp->prompt))
621 shp->prompt = 0;
625 if(shp->gd->hist_ptr)
627 register History_t *hp = shp
811 Shell_t *shp = ep->sh; local
1560 Shell_t *shp = ep->sh; local
1792 ed_open(Shell_t *shp) argument
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dinit.c253 Shell_t *shp = nv_shell(np); local
254 if(*name=='E' && nv_getval(sh_scoped(shp,VISINOD)))
256 if(!(cp=val) && (*name=='E' || !(cp=nv_getval(sh_scoped(shp,EDITNOD)))))
280 Shell_t *shp = nv_shell(np); local
281 void *histopen = shp->gd->hist_ptr;
287 if(np==HISTSIZE && sh_arith(shp,val)==nv_getnum(HISTSIZE))
289 hist_close(shp->gd->hist_ptr);
295 sh_histinit(shp);
304 Shell_t *shp = nv_shell(np); local
305 shp
329 Shell_t *shp = nv_shell(np); local
374 Shell_t *shp = nv_shell(np); local
406 Shell_t *shp = nv_shell(np); local
506 Shell_t *shp; local
529 register Shell_t *shp = nv_shell(np); local
608 Shell_t *shp = nv_shell(np); local
692 Shell_t *shp = nv_shell(np); local
716 Shell_t *shp = nv_shell(np); local
726 Shell_t *shp = nv_shell(np); local
896 Shell_t *shp = sh_getinterp(); local
912 math_init(Shell_t *shp) argument
933 Shell_t *shp = nv_shell(np); local
944 Shell_t *shp = nv_shell(np); local
965 Shell_t *shp=nv_shell(np); local
1019 Shell_t *shp = sh_getinterp(); local
1181 Shell_t *shp; local
1515 Shell_t *shp = sh_getinterp(); local
1643 Shell_t *shp = sp->sh; local
1676 Shell_t *shp = sh_getinterp(); local
1692 stat_init(Shell_t *shp) argument
1723 nv_init(Shell_t *shp) argument
1850 inittree(Shell_t *shp,const struct shtable2 *name_vals) argument
1909 env_init(Shell_t *shp) argument
2059 Shell_t *shp = sh_getinterp(); local
[all...]
H A Dio.c400 int sh_iovalidfd(Shell_t *shp, int fd) argument
402 Sfio_t **sftable = shp->sftable;
403 int max,n, **fdptrs = shp->fdptrs;
404 unsigned char *fdstatus = shp->fdstatus;
407 if(fd < shp->gd->lim.open_max)
418 max = shp->gd->lim.open_max;
419 shp->sftable = (Sfio_t**)calloc(n*(sizeof(int*)+sizeof(Sfio_t*)+1),1);
421 memcpy(shp->sftable,sftable,max*sizeof(Sfio_t*));
422 shp->fdptrs = (int**)(&shp
434 sh_inuse(Shell_t *shp, int fd) argument
439 sh_ioinit(Shell_t *shp) argument
468 Shell_t *shp = ((struct Iodisc*)handle)->sh; local
511 sh_iostream(Shell_t *shp, register int fd) argument
587 io_preserve(Shell_t* shp, register Sfio_t *sp, register int f2) argument
629 sh_iorenumber(Shell_t *shp, register int f1,register int f2) argument
685 Shell_t *shp = sh_getinterp(); local
735 Shell_t *shp = sh_getinterp(); local
872 Shell_t *shp = sh_getinterp(); local
894 Shell_t *shp = sh_getinterp(); local
910 sh_coaccept(Shell_t *shp,int *pv,int out) argument
935 sh_copipe(Shell_t *shp, int *pv, int out) argument
985 io_patseek(Shell_t *shp, regex_t *rp, Sfio_t* sp, int flags) argument
1026 file_offset(Shell_t *shp, int fn, char *fname) argument
1125 sh_redirect(Shell_t *shp,struct ionod *iop, int flag) argument
1543 io_heredoc(Shell_t *shp,register struct ionod *iop, const char *name, int traceon) argument
1614 sh_iosave(Shell_t *shp, register int origfd, int oldtop, char *name) argument
1695 sh_iounsave(Shell_t* shp) argument
1715 sh_iorestore(Shell_t *shp, int last, int jmpval) argument
1794 Shell_t *shp = sh_getinterp(); local
1815 Shell_t *shp = ((struct Iodisc*)handle)->sh; local
1877 Shell_t *shp = (Shell_t*)handle; local
1897 Shell_t *shp = ((struct Iodisc*)handle)->sh; local
1925 Shell_t *shp = ((struct Iodisc*)handle)->sh; local
2005 sh_iocheckfd(Shell_t *shp, register int fd) argument
2085 io_prompt(Shell_t *shp,Sfio_t *iop,register int flag) argument
2175 Shell_t *shp = sh_getinterp(); local
2339 subopen(Shell_t *shp,Sfio_t* sp, off_t offset, long size) argument
2410 Shell_t *shp = sh_getinterp(); local
2468 Shell_t *shp = sh_getinterp(); local
2484 Shell_t *shp = sh_getinterp(); local
2500 Shell_t *shp = sh_getinterp(); local
2513 Shell_t *shp = sh_getinterp(); local
2532 Shell_t *shp = sh_getinterp(); local
2566 Shell_t *shp = sh_getinterp(); local
2580 Shell_t *shp = sh_getinterp(); local
2634 Shell_t *shp = sh_getinterp(); local
2655 Shell_t *shp = sh_getinterp(); local
[all...]
H A Dmacro.c66 Shell_t *shp; /* pointer to shell interpreter */ member in struct:_mac_
122 void *sh_macopen(Shell_t *shp) argument
126 mp->shp = shp;
133 char *sh_mactry(Shell_t *shp,register char *string) argument
138 int savexit = shp->savexit;
140 sh_pushcontext(shp,&buff,SH_JMPSUB);
143 string = sh_mactrim(shp,string,0);
144 sh_popcontext(shp,&buff);
145 shp
158 sh_mactrim(Shell_t *shp, char *str, register int mode) argument
200 sh_macexpand(Shell_t* shp, register struct argnod *argp, struct argnod **arghead,int flag) argument
267 sh_machere(Shell_t *shp,Sfio_t *infile, Sfio_t *outfile, char *string) argument
411 sh_macpat(Shell_t *shp,register struct argnod *arg, int flags) argument
904 getdolarg(Shell_t *shp, int n, int *size) argument
959 prefix(Shell_t *shp, char *id) argument
1027 sh_macfun(Shell_t *shp, const char *name, int offset) argument
2547 Shell_t *shp = ((Shbltin_t*)context)->shp; local
2559 tilde_expand2(Shell_t *shp, register int offset) argument
2611 sh_tilde(Shell_t *shp,register const char *string) argument
2648 special(Shell_t *shp,register int c) argument
[all...]
H A Dname.c212 Shell_t *shp = sh_getinterp(); local
213 register struct sh_type *sp = (struct sh_type*)shp->mktype;
216 if(sp->numnodes==0 && !nv_isnull(np) && shp->last_table)
219 Dt_t *root = nv_dict(shp->last_table);
238 Dt_t *root = nv_dict(shp->last_table);
295 Shell_t *shp = sh_getinterp(); local
298 char *trap=shp->st.trap[SH_DEBUGTRAP];
299 char *prefix = shp->prefix;
310 shtp.previous = shp->mktype;
311 shp
716 Shell_t *shp = sh_getinterp(); local
1249 Shell_t *shp = sh_getinterp(); local
1502 Shell_t *shp = sh_getinterp(); local
2097 Shell_t *shp = sh_getinterp(); local
2119 Shell_t *shp = sh_getinterp(); local
2212 sh_scope(Shell_t *shp, struct argnod *envlist, int fun) argument
2296 table_unset(Shell_t *shp, register Dt_t *root, int flags, Dt_t *oroot) argument
2353 Shell_t *shp = sh_getinterp(); local
2467 sh_scoped(Shell_t *shp, register Namval_t *np) argument
2548 Shell_t *shp = sh_getinterp(); local
2592 sh_optclear(Shell_t *shp, void *old) argument
2626 Shell_t *shp = sh_getinterp(); local
2750 Shell_t *shp = sh_getinterp(); local
2836 Shell_t *shp = sh_getinterp(); local
2976 Shell_t *shp = sh_getinterp(); local
3008 Shell_t *shp = sh_getinterp(); local
3024 Shell_t *shp = sh_getinterp(); local
3081 Shell_t *shp = sh_getinterp(); local
3202 Shell_t *shp = sh_getinterp(); local
3322 Shell_t *shp = sh_getinterp(); local
3353 Shell_t *shp = sh_getinterp(); local
3363 sh_unscope(Shell_t *shp) argument
3455 Shell_t *shp = sh_getinterp(); local
3532 Shell_t *shp = sh_getinterp(); local
[all...]
H A Dxec.c94 static void iousepipe(Shell_t *shp) argument
100 VALIDATE_FD(shp, subpipe[1]);
101 VALIDATE_FD(shp, subpipe[2]);
102 shp->fdstatus[subpipe[2]] = shp->fdstatus[1];
105 shp->fdstatus[1] = shp->fdstatus[subpipe[1]];
107 if(subdup=shp->subdup) for(i=0; i < 10; i++)
113 shp->fdstatus[i] = shp
118 iounpipe(Shell_t *shp) argument
174 p_time(Shell_t *shp, Sfio_t *out, const char *format, clock_t *tm) argument
449 init_level(Shell_t *shp,int level) argument
465 sh_debug(Shell_t *shp, const char *trap, const char *name, const char *subscript, char *const argv[], int flags) argument
538 Shell_t *shp = sh_getinterp(); local
638 set_instance(Shell_t *shp,Namval_t *nq, Namval_t *node, struct Namref *nr) argument
714 sh_coinit(Shell_t *shp,char **argv) argument
761 sh_coaddfile(Shell_t *shp, char *name) argument
775 sh_coexec(Shell_t *shp,const Shnode_t *t, int filt) argument
868 register Shell_t *shp = sh_getinterp(); local
2773 Shell_t *shp = sh_getinterp(); local
2822 sh_trace(Shell_t *shp,register char *argv[], register int nl) argument
2895 _sh_fork(Shell_t *shp,register pid_t parent,int flags,int *jobid) argument
3033 sh_fork(Shell_t *shp,int flags, int *jobid) argument
3068 Shell_t *shp = ((struct Tdata*)data)->sh; local
3080 sh_mathfun(Shell_t *shp,void *fp, int nargs, Sfdouble_t *arg) argument
3124 register Shell_t *shp = sh_getinterp(); local
3282 sh_funct(Shell_t *shp,Namval_t *np,int argn, char *argv[],struct argnod *envlist,int execflg) argument
3345 Shell_t *shp = sh_getinterp(); local
3419 coproc_init(Shell_t *shp, int pipes[]) argument
3471 run_subshell(Shell_t *shp,const Shnode_t *t,pid_t grp) argument
3544 sigreset(Shell_t *shp,int mode) argument
3560 sh_ntfork(Shell_t *shp,const Shnode_t *t,char *argv[],int *jobid,int flag) argument
[all...]
/osnet-11/usr/src/lib/libsysevent/
H A Dlibsysevent.c67 static int cleanup_id(sysevent_handle_t *shp, uint32_t id, int type);
762 subscriber_event_handler(sysevent_handle_t *shp) argument
767 sub_info = (subscriber_priv_t *)SH_PRIV_DATA(shp);
775 while (sub_info->sp_evq_head == NULL && SH_BOUND(shp)) {
788 if (!SH_BOUND(shp)) {
820 sysevent_handle_t *shp; local
834 shp = (sysevent_handle_t *)cookie;
835 if (shp == NULL) {
844 if (mutex_trylock(SH_LOCK(shp)) != 0) {
849 if (!SH_BOUND(shp)) {
993 update_kernel_registration(sysevent_handle_t *shp, int update_type, int update_op, uint32_t *sub_id, size_t datasz, uchar_t *data) argument
1079 dealloc_subscribers(sysevent_handle_t *shp) argument
1096 alloc_subscriber(sysevent_handle_t *shp, uint32_t sub_id, int oflag) argument
1175 cache_find_class(sysevent_handle_t *shp, char *class) argument
1230 cache_insert_class(sysevent_handle_t *shp, char *class, char **subclass_names, int subclass_num, uint32_t sub_id) argument
1284 cache_remove_all_class(sysevent_handle_t *shp, uint32_t sub_id) argument
1304 cache_remove_class(sysevent_handle_t *shp, char *class, uint32_t sub_id) argument
1326 free_cached_registration(sysevent_handle_t *shp) argument
1352 create_cached_registration(sysevent_handle_t *shp, class_lst_t **class_hash) argument
1491 sysevent_handle_t *shp; local
1595 sysevent_send_event(sysevent_handle_t *shp, sysevent_t *ev) argument
1744 sysevent_handle_t *shp; local
1875 sysevent_close_channel(sysevent_handle_t *shp) argument
1907 sysevent_bind_publisher(sysevent_handle_t *shp) argument
2084 sysevent_bind_subscriber_cmn(sysevent_handle_t *shp, void (*event_handler)(sysevent_t *ev), sysevent_subattr_t *subattr) argument
2272 sysevent_bind_subscriber(sysevent_handle_t *shp, void (*event_handler)(sysevent_t *ev)) argument
2283 sysevent_bind_xsubscriber(sysevent_handle_t *shp, void (*event_handler)(sysevent_t *ev), sysevent_subattr_t *subattr) argument
2294 sysevent_register_event(sysevent_handle_t *shp, const char *ev_class, const char **ev_subclass, int subclass_num) argument
2364 sysevent_unregister_event(sysevent_handle_t *shp, const char *class) argument
2388 cleanup_id(sysevent_handle_t *shp, uint32_t id, int type) argument
2408 sysevent_cleanup_subscribers(sysevent_handle_t *shp) argument
2454 sysevent_cleanup_publishers(sysevent_handle_t *shp) argument
2463 sysevent_unbind_subscriber(sysevent_handle_t *shp) argument
2513 sysevent_unbind_publisher(sysevent_handle_t *shp) argument
2551 sysevent_handle_t *shp; local
2631 sysevent_unbind_handle(sysevent_handle_t *shp) argument
2642 sysevent_subscribe_event(sysevent_handle_t *shp, const char *event_class, const char **event_subclass_list, int num_subclasses) argument
2650 sysevent_unsubscribe_event(sysevent_handle_t *shp, const char *event_class) argument
[all...]
/osnet-11/usr/src/lib/libsun_ima/common/
H A Dima.c85 static sysevent_handle_t *shp; variable
229 shp = sysevent_bind_handle(sysevent_handler);
230 if (shp == NULL) {
234 if (sysevent_subscribe_event(shp, EC_ISCSI, subclass_list, 9) != 0) {
235 sysevent_unbind_handle(shp);
247 if (shp != NULL) {
248 sysevent_unsubscribe_event(shp, EC_ISCSI);
2869 if (shp == NULL) {
2893 if (shp == NULL) {
/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_share.c2616 zfs_sh_iter_handle_t *shp; local
2624 if ((shp = zfs_alloc(zhp->zfs_hdl, sizeof (zfs_sh_iter_handle_t)))
2628 shp->ds_zhp = zhp;
2629 if (zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &shp->zc, 0) != 0) {
2630 free(shp);
2634 shp->zc.zc_needname = B_TRUE; /* name only; skip stats */
2635 *shpp = shp;
2646 zfs_sh_iter_handle_t *shp = p; local
2647 zfs_handle_t *zhp = shp->ds_zhp;
2649 zfs_cmd_t *zc = &shp
2695 zfs_sh_iter_handle_t *shp = p; local
[all...]

Completed in 51 milliseconds

1234