/osnet-11/usr/src/lib/libshadowfs/common/ |
H A D | shadow_control.c | 68 shadow_cancel(shadow_handle_t *shp) argument 80 if (shp->sh_dataset != NULL) { 87 if ((zhp = zfs_open(zhdl, shp->sh_dataset, 105 if (mount(shp->sh_special, shp->sh_mountpoint, MS_REMOUNT, 106 shp->sh_fstype, NULL, 0, NULL, 0) != 0) { 119 (void) snprintf(path, sizeof (path), "%s/%s", shp->sh_mountpoint,
|
H A D | shadow_open.c | 36 shadow_handle_t *shp; local 41 if ((shp = shadow_zalloc(sizeof (shadow_handle_t))) == NULL) 44 if ((shp->sh_mountpoint = shadow_strdup(mountpoint)) == NULL) 54 search.mnt_mountp = shp->sh_mountpoint; 65 if (statvfs64(shp->sh_mountpoint, &vstat) != 0) { 66 shp->sh_fsid = NODEV; 68 shp->sh_fsid = vstat.f_fsid; 72 if ((shp->sh_dataset = 76 if ((shp->sh_fstype = 78 (shp 111 shadow_close(shadow_handle_t *shp) argument [all...] |
H A D | shadow_status.c | 72 shadow_status_update(shadow_handle_t *shp, shadow_entry_t *sep, argument 77 shp->sh_progress.sp_leaf++; 78 shp->sh_progress.sp_leaf_depth += sep->se_depth; 80 shp->sh_progress.sp_interior++; 84 shp->sh_progress.sp_processed += size; 92 shadow_status_enqueue(shadow_handle_t *shp, shadow_entry_t *sep) argument 97 shp->sh_progress.sp_dir_seen++; 98 shp->sh_progress.sp_dir_queue++; 99 shp->sh_progress.sp_dir_depth += sep->se_depth; 107 shadow_status_dequeue(shadow_handle_t *shp, shadow_entry_ argument 122 shadow_get_status(shadow_handle_t *shp, shadow_status_t *ssp) argument 175 shadow_get_errors(shadow_handle_t *shp, size_t count) argument [all...] |
H A D | shadow_hash.c | 90 shadow_hash_t *shp; local 92 if ((shp = shadow_zalloc(sizeof (shadow_hash_t))) == NULL) 95 shp->sh_nbuckets = SHADOW_HASHMINSIZE; 96 shp->sh_linkoffs = linkoffs; 97 shp->sh_convert = convert; 98 shp->sh_compute = compute; 99 shp->sh_compare = compare; 101 if ((shp->sh_buckets = shadow_zalloc( 102 shp->sh_nbuckets * sizeof (void *))) == NULL) { 103 free(shp); 111 shadow_hash_destroy(shadow_hash_t *shp) argument 145 shadow_hash_compute(shadow_hash_t *shp, const void *elem) argument 151 shadow_hash_resize(shadow_hash_t *shp, ulong_t nsize) argument 197 shadow_hash_lookup(shadow_hash_t *shp, const void *search) argument 213 shadow_hash_first(shadow_hash_t *shp) argument 224 shadow_hash_next(shadow_hash_t *shp, void *elem) argument 235 shadow_hash_insert(shadow_hash_t *shp, void *elem) argument 252 shadow_hash_remove(shadow_hash_t *shp, void *elem) argument 275 shadow_hash_count(shadow_hash_t *shp) argument [all...] |
/osnet-11/usr/src/lib/libshell/common/bltins/ |
H A D | cflow.c | 49 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local 50 struct checkpt *pp = (struct checkpt*)shp->jmplist; 67 n = (((arg= *argv)?(int)strtol(arg, (char**)0, 10)&SH_EXITMASK:shp->oldexit)); 69 if(shp->fn_depth==0 && shp->dot_depth==0 && !sh_isstate(SH_PROFILE)) 71 sh_exit(shp->savexit=n); 87 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local 107 if(shp [all...] |
H A D | cd_pwd.c | 57 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local 84 oldpwd = (char*)shp->pwd; 85 opwdnod = (shp->subshell?sh_assignok(OLDPWDNOD,1):OLDPWDNOD); 86 pwdnod = (shp->subshell?sh_assignok(PWDNOD,1):PWDNOD); 101 if(!(cdpath = (Pathcomp_t*)shp->cdpathlist) && (dp=sh_scoped(shp,CDPNOD)->nvalue.cp)) 103 if(cdpath=path_addpath(shp,(Pathcomp_t*)0,dp,PATH_CDPATH)) 105 shp->cdpathlist = (void*)cdpath; 106 cdpath->shp 214 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local [all...] |
H A D | ulimit.c | 73 Shell_t *shp = ((Shbltin_t*)extra)->shp; local 135 if(shp->subshell && !shp->subshare)
|
H A D | whence.c | 55 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local 71 shp->xargexit = 1; 89 return(whence(shp,argv, flags)); 98 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local 130 return(whence(shp, argv, flags)); 133 static int whence(Shell_t *shp,char **argv, register int flags) argument 167 if((np=nv_search(name,shp->alias_tree,0)) 187 root = (flags&F_FLAG)?shp [all...] |
H A D | getopts.c | 38 Shell_t *shp = *(Shell_t**)(dp+1); local 39 Stk_t *stkp = shp->stk; 40 if(nv_search(s,shp->fun_tree,0)) 47 sfputr(sp,sh_mactry(shp,stkfreeze(stkp,1)),-1); 58 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local 70 disc.sh = shp; 92 np = nv_open(argv[1],shp->var_tree,NV_NOASSIGN|NV_VARNAME); 100 argv = shp->st.dolv; 101 argc = shp [all...] |
H A D | hist.c | 47 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local 59 if(!sh_histinit((void*)shp)) 61 hp = shp->gd->hist_ptr; 195 outfile= sfnew(NIL(Sfio_t*),shp->outbuff,IOBSIZE,fdo,SF_WRITE); 205 hist_list(shp->gd->hist_ptr,outfile,hist_tell(shp->gd->hist_ptr,range[flag]),0,arg); 207 sh_sigcheck(shp); 217 if(!arg && !(arg=nv_getval(sh_scoped(shp,HISTEDIT))) && !(arg=nv_getval(sh_scoped(shp,FCEDNO [all...] |
H A D | poll_solaris.c | 39 #define sh_contexttoshell(context) ((context)?(sh_contexttoshb(context)->shp):(NULL)) 243 Shell_t *shp = sh_contexttoshell(extra); local 287 array_np = nv_open(varname, shp->var_tree, NV_NOFAIL|NV_NOADD); 324 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].fd", varname, subname); 333 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].events", varname, subname); 355 np = nv_open_fmt(shp->var_tree, NV_VARNAME|NV_ARRAY|NV_NOFAIL, "%s", eventarrayname); 369 np = nv_open_fmt(shp->var_tree, NV_NOFAIL, "%s[%s].revents", varname, subname);
|
H A D | regress.c | 125 void sh_regress_init(Shell_t* shp) argument 129 shp->regress = &state; 264 register Shell_t* shp = ((Shbltin_t*)extra)->shp; local
|
H A D | sleep.c | 49 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local 53 if(!(shp->sigflag[SIGALRM]&(SH_SIGFAULT|SH_SIGOFF))) 78 else if(*last=='.' && shp->decomma && d==(unsigned long)d) 116 shp->lastsig=0; 118 if(sflag || tloc==0 || errno!=EINTR || shp->lastsig) 120 sh_sigcheck(shp); 124 if(shp->sigflag[SIGALRM]&SH_SIGTRAP) 125 sh_timetraps(shp); 138 Shell_t *shp local 176 Shell_t *shp = sh_getinterp(); local [all...] |
H A D | trap.c | 48 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local 85 else if(*action=='+' && action[1]==0 && shp->st.self == &shp->global) 96 sig = sig_number(shp,arg); 113 if(arg=shp->st.trap[sig]) 117 if(shp->st.trap[sig]) 118 free(shp->st.trap[sig]); 119 shp->st.trap[sig] = 0; 121 shp 169 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local 235 sig_number(Shell_t *shp,const char *string) argument 313 sig_name(Shell_t *shp,int sig, char* buf, int pfx) argument 354 sig_list(register Shell_t *shp,register int flag) argument [all...] |
/osnet-11/usr/src/lib/libsmbios/common/ |
H A D | smb_subr.c | 39 smb_open_error(smbios_hdl_t *shp, int *errp, int err) argument 41 if (shp != NULL) 42 smbios_close(shp); 82 smb_dprintf(smbios_hdl_t *shp, const char *format, ...) argument 86 if (!(shp->sh_flags & SMB_FL_DEBUG))
|
H A D | smb_lib.c | 55 smbios_hdl_t *shp = NULL; local 60 return (smb_open_error(shp, errp, n < 0 ? errno : ESMB_NOHDR)); 63 return (smb_open_error(shp, errp, ESMB_HEADER)); 68 return (smb_open_error(shp, errp, n < 0 ? errno : ESMB_NOHDR)); 71 return (smb_open_error(shp, errp, ESMB_NOMEM)); 76 return (smb_open_error(shp, errp, n < 0 ? errno : ESMB_NOSTAB)); 79 shp = smbios_bufopen(ep, stbuf, ep->smbe_stlen, version, flags, errp); 81 if (shp != NULL) 82 shp->sh_flags |= SMB_FL_BUFALLOC; 86 return (shp); 93 smbios_hdl_t *shp = NULL; local 162 smbios_hdl_t *shp; local 178 smbios_xwrite(smbios_hdl_t *shp, int fd, const void *buf, size_t buflen) argument 194 smbios_write(smbios_hdl_t *shp, int fd) argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/x86pi/common/ |
H A D | x86pi_chassis.c | 48 smbios_hdl_t *shp; local 50 shp = topo_mod_smbios(mod); 51 if (shp == NULL) { 60 rv = smbios_info_common(shp, smb_id, &ip); 66 rv = smbios_info_chassis(shp, smb_id, &ch);
|
H A D | x86pi_bboard.c | 71 smbios_hdl_t *shp; local 75 shp = topo_mod_smbios(mod); 76 if (shp == NULL) { 82 rv = smbios_info_bboard(shp, smb_id, &bb); 87 (void) smbios_lookup_id(shp, psmb_id, &sp); 96 rv = smbios_info_common(shp, smb_id, &ip); 205 smbios_hdl_t *shp; local 207 shp = topo_mod_smbios(mod); 208 if (shp == NULL) 215 (void) smbios_lookup_id(shp, ci 255 smbios_hdl_t *shp; local 307 smbios_hdl_t *shp; local 330 smbios_hdl_t *shp; local [all...] |
/osnet-11/usr/src/lib/libshare/common/ |
H A D | sharetab.c | 55 getshare(FILE *fd, share_t **shp) argument 95 *shp = sh;
|
/osnet-11/usr/src/lib/libshell/common/sh/ |
H A D | shcomp.c | 73 Shell_t *shp; local 97 shp = sh_init(argc,argv,(Shinit_f)0); 98 shp->shcomp = 1; 131 shp->inlineno = 1; 138 if(t = (Shnode_t*)sh_parse(shp,in,0))
|
H A D | trestore.c | 47 Shnode_t *sh_trestore(Shell_t *shp,Sfio_t *in) argument 51 t = r_tree(shp); 57 static Shnode_t *r_tree(Shell_t *shp) argument 69 t = getnode(shp->stk,parnod); 70 t->par.partre = r_tree(shp); 73 t = getnode(shp->stk,comnod); 75 r_comarg(shp,(struct comnod*)t); 79 t = getnode(shp->stk,forknod); 81 t->fork.forktre = r_tree(shp); 82 t->fork.forkio = r_redirect(shp); 177 r_arg(Shell_t *shp) argument 230 r_redirect(Shell_t* shp) argument 267 r_comarg(Shell_t *shp,struct comnod *com) argument 298 r_comlist(Shell_t *shp) argument 314 r_switch(Shell_t *shp) argument [all...] |
/osnet-11/usr/src/lib/libshell/common/include/ |
H A D | path.h | 66 Shell_t *shp; member in struct:pathcomp
|
/osnet-11/usr/src/lib/libscf/common/ |
H A D | highlevel.c | 50 smbios_hdl_t *shp; local 67 if ((shp = smbios_open(NULL, SMB_VERSION, 0, &err)) == NULL) 73 if ((id = smbios_info_system(shp, &sys)) == SMB_ERR || 74 smbios_info_common(shp, id, &info) == SMB_ERR) { 101 smbios_close(shp);
|
/osnet-11/usr/src/lib/fm/libasr/common/ |
H A D | asr_topo.c | 191 smbios_hdl_t *shp = NULL; local 198 if ((shp = smbios_open(NULL, SMB_VERSION, 0, NULL)) == NULL) 200 if ((csn = smbios_csn(shp)) != NULL) 202 smbios_close(shp); 212 smbios_hdl_t *shp = NULL; local 221 if ((shp = smbios_open(NULL, SMB_VERSION, 0, NULL)) == NULL) 224 if (((id = smbios_info_system(shp, &s1)) != SMB_ERR) && 225 (smbios_info_common(shp, id, &s2) != SMB_ERR) && 230 smbios_close(shp);
|
/osnet-11/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_auth.c | 186 topo_auth_smbios(topo_hdl_t *thp, nvlist_t *nvl, smbios_hdl_t *shp) argument 209 if (smbios_lookup_type(shp, stype, &s) == 0 && 210 smbios_info_common(shp, s.smbstr_id, &s2) == 0) { 256 smbios_hdl_t *shp = topo_hdl_smbios(thp); local 277 if (shp != NULL) 278 topo_auth_smbios(thp, nvl, shp);
|