Home
last modified time | relevance | path

Searched refs:NV_RDONLY (Results 1 – 25 of 25) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dshiocmd_solaris.c402 { "atime", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_atime), sizeof(Sp->st_atime), make_time},
403 { "ctime", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_ctime), sizeof(Sp->st_ctime), make_time},
404 { "dev", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_dev),sizeof(Sp->st_dev)},
405 { "fd", NV_INTEGER|NV_RDONLY, offsetof(struct filedata,fd), sizeof(int)},
406 { "gid", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_gid), sizeof(Sp->st_gid)},
407 { "ino", NV_LONG|NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_ino), sizeof(Sp->st_ino)},
408 { "mode", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_mode), sizeof(Sp->st_mode), make_mode},
409 { "mtime", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_mtime), sizeof(Sp->st_mtime), make_time},
410 { "name", NV_RDONLY, offsetof(struct filedata,name), -1 },
411 { "nlink", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_nlink), sizeof(Sp->st_nlink)},
[all …]
H A Dgetopts.c183 nv_putval(np, opt_info.arg, NV_RDONLY); in b_getopts()
188 nv_putval(np, key, NV_RDONLY); in b_getopts()
194 nv_putval(np, (char*)&d, NV_LDOUBLE|NV_RDONLY); in b_getopts()
197 nv_putval(np, opt_info.arg, NV_RDONLY); in b_getopts()
H A Dtypeset.c112 flag = (NV_ASSIGN|NV_RDONLY|NV_VARNAME); in b_readonly()
184 nv_putval(np,nv_getval(np),NV_RDONLY); in b_alias()
330 flag |= NV_RDONLY; in b_typeset()
677 …>tp || (!shp->st.real_fun && (nvflags&NV_STATIC)) || (!(flag&(NV_EXPORT|NV_RDONLY)) && nv_isattr(n… in setall()
706 _nv_unset(np,NV_RDONLY); in setall()
781 if((flag&NV_RDONLY) && (curflag&NV_RDONLY)) in setall()
1229 if(is_abuiltin(np) || nv_isattr(np,NV_RDONLY)) in unall()
1231 if(nv_isattr(np,NV_RDONLY)) in unall()
1302 …outname = (*tp->prefix=='t' && (!nv_isnull(np) || nv_isattr(np,NV_FLOAT|NV_RDONLY|NV_BINARY|NV_RJ… in print_namval()
H A Dcd_pwd.c201 nv_putval(opwdnod,oldpwd,NV_RDONLY); in b_cd()
206 nv_putval(pwdnod,dir,NV_RDONLY); in b_cd()
H A Dread.c307 nv_putval(mp, ifs, NV_RDONLY); in sh_readline()
528 if(nv_isattr(np, NV_RDONLY)) in sh_readline()
752 if(nv_isattr(np, NV_RDONLY)) in sh_readline()
792 if(nv_isattr(np, NV_RDONLY)) in sh_readline()
H A Denum.c263 nv_onattr(tp, NV_RDONLY); in enum_create()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvtype.c255 np->nvflag = mp->nvflag&~NV_RDONLY; in put_chtype()
398 dp->fun.nofree = (flags&NV_RDONLY?1:0); in clone_type()
416 if(nq->nvalue.cp || !nv_isvtree(nq) || nv_isattr(nq,NV_RDONLY)) in clone_type()
438 if(nv_isattr(nq,NV_RDONLY) && (nq->nvalue.cp || nv_isattr(nq,NV_INTEGER))) in clone_type()
471 nv_putval(nq,nv_getval(nr),NV_RDONLY); in clone_type()
482 else if(nv_isattr(nq,NV_RDONLY) && !nq->nvalue.cp && !nv_isattr(nq,NV_INTEGER)) in clone_type()
578 _nv_unset(nq,flag|NV_TYPE|nv_isattr(nq,NV_RDONLY)); in put_type()
612 nv_offattr(mp,NV_RDONLY); in clone_inttype()
652 nv_offattr(np,NV_RDONLY); in typeinfo()
662 nv_onattr(np,NV_RDONLY); in typeinfo()
[all …]
H A Dbash.c176 if(val && !(flags&NV_RDONLY)) in put_funcname()
373 nv_onattr(np,NV_RDONLY); in bash_init()
416 nv_offattr(np,NV_RDONLY); in bash_init()
H A Darith.c86 nv_onattr(&FunNode,NV_NOFREE|NV_LDOUBLE|NV_RDONLY); in scope()
339 nv_onattr(np,NV_NOFREE|NV_LDOUBLE|NV_RDONLY); in arith()
346 nv_onattr(np,NV_NOFREE|NV_LDOUBLE|NV_RDONLY); in arith()
463 nv_offattr(&node,NV_RDONLY|NV_NOFREE); in arith()
H A Dname.c393 if(nv_isattr(np,NV_RDONLY) && np->nvfun && !(flags&NV_RDONLY)) in nv_setlist()
1516 nv_putval(np, cp, NV_RDONLY); in nv_open()
1623 if(!(flags&NV_RDONLY) && nv_isattr (np, NV_RDONLY)) in nv_putval()
1629 if(shp->subshell && !nv_local && !(flags&NV_RDONLY)) in nv_putval()
1651 nv_setattr(np,(flags&~NV_RDONLY)|NV_NOFREE); in nv_putval()
2160 flag = nv_isattr(np,NV_RDONLY|NV_UTOL|NV_LTOU|NV_RJUST|NV_LJUST|NV_ZFILL|NV_INTEGER); in attstore()
2191 flag &= (NV_RDONLY|NV_UTOL|NV_LTOU|NV_RJUST|NV_LJUST|NV_ZFILL|NV_INTEGER); in attstore()
2222 if(nv_isattr(np,NV_RDONLY|NV_UTOL|NV_LTOU|NV_RJUST|NV_LJUST|NV_ZFILL|NV_INTEGER)) in pushnam()
2242 …nv_scan(shp->var_tree, attstore,(void*)0,0,(NV_RDONLY|NV_UTOL|NV_LTOU|NV_RJUST|NV_LJUST|NV_ZFILL|N… in sh_envgen()
2272 …nv_scan(shp->var_tree, attstore,&data,0,(NV_RDONLY|NV_UTOL|NV_LTOU|NV_RJUST|NV_LJUST|NV_ZFILL|NV_I… in sh_envgen()
[all …]
H A Dinit.c342 if(!(flags&NV_RDONLY) && sh_isoption(SH_RESTRICTED)) in put_restricted()
350 if(val && !(flags&NV_RDONLY) && np->nvalue.cp && strcmp(val,np->nvalue.cp)==0) in put_restricted()
371 nv_putval(mp,val,NV_RDONLY); in put_restricted()
796 _nv_unset(SH_MATCHNOD,NV_RDONLY); in sh_setmatch()
1012 nv_onattr(np,NV_MINIMAL|NV_NOFREE|NV_LDOUBLE|NV_RDONLY); in math_init()
1118 nv_putval(PATHNOD,stakseek(0),NV_RDONLY); in newconf()
1387 nv_putval(ENVNOD,sfstruse(shp->strbuf),NV_RDONLY); in sh_init()
1428 nv_putval(IFSNOD,(char*)e_sptbnl,NV_RDONLY); in sh_init()
1652 _nv_unset(shp->namespace,NV_RDONLY); in sh_reinit()
1803 nv_onattr(np,NV_RDONLY|NV_MINIMAL|NV_NOFREE|NV_INTEGER); in stat_init()
[all …]
H A Darray.c94 aq->hdr.nofree |= (flags&NV_RDONLY)?1:0; in array_scope()
407 int rdonly = nv_isattr(np,NV_RDONLY); in nv_arraysettype()
417 _nv_unset(nq,NV_RDONLY); in nv_arraysettype()
428 nv_offattr(nq,NV_RDONLY); in nv_arraysettype()
544 nv_putval(mp,nv_getval(np),NV_RDONLY); in array_clone()
625 _nv_unset(mp,flags&NV_RDONLY); in array_putval()
761 _nv_unset(nv_namptr(aq->xp,0),NV_RDONLY); in array_putval()
913 nv_offattr(np,NV_RDONLY); in nv_atypeindex()
1690 _nv_unset(ap->cur,NV_RDONLY); in nv_associative()
H A Dmain.c160 nv_putval(PS4NOD,e_traceprompt,NV_RDONLY); in sh_main()
357 nv_putval(IFSNOD,(char*)e_sptbnl,NV_RDONLY); in sh_main()
405 nv_putval(PS1NOD,(shp->gd->euserid?e_stdprompt:e_supprompt),NV_RDONLY); in exfile()
H A Dsubshell.c338 _nv_unset(mp,NV_RDONLY|NV_CLONE); in nv_restore()
356 nv_putval(mp, nv_getval(np),np->nvflag|NV_NOFREE|NV_RDONLY); in nv_restore()
434 _nv_unset(np,NV_RDONLY); in table_unset()
H A Dnvdisc.c158 _nv_unset(np, flags&(NV_RDONLY|NV_EXPORT)); in nv_putv()
321 nv_putv(np,cp,flags|NV_RDONLY,handle); in assign()
402 _nv_unset(SH_VALNOD,NV_RDONLY); in lookup()
647 nfp->nofree |= (flags&NV_RDONLY)?1:0; in nv_clone_disc()
1455 _nv_unset(mp,NV_RDONLY); in nv_mount()
H A Dfault.c81 nv_putval(COLUMNS, (char*)&v, NV_INT32|NV_RDONLY); in sh_fault()
83 nv_putval(LINES, (char*)&v, NV_INT32|NV_RDONLY); in sh_fault()
H A Dnvtree.c453 attr &= NV_RDONLY|NV_ARRAY; in nv_attribute()
756 _nv_unset(np,NV_RDONLY); in outval()
757 if(sh.subshell || (wp->flags!=NV_RDONLY) || nv_isattr(np,NV_MINIMAL|NV_NOFREE)) in outval()
H A Dxec.c966 nv_putval(path,val,NV_RDONLY); in enter_namespace()
968 nv_putval(fpath,val,NV_RDONLY); in enter_namespace()
2769 _nv_unset(mp,NV_RDONLY); in sh_exec()
H A Dpath.c284 nv_putval(PWDNOD,cp,NV_RDONLY); in path_pwd()
H A Dio.c1235 if(nv_isattr(np,NV_RDONLY)) in sh_redirect()
H A Dmacro.c2163 nv_putval(np,mp->ifsp,NV_RDONLY); in comsubst()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dname.h122 #define NV_NOCHANGE (NV_EXPORT|NV_IMPORT|NV_RDONLY|NV_TAGGED|NV_NOFREE|NV_ARRAY)
140 #define BLT_ENV (NV_RDONLY) /* non-stoppable,
H A Dnval.h163 #define NV_RDONLY 0x1 /* readonly bit */ macro
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/data/
H A Doptions.c128 {"-rreadonly", NV_RDONLY},
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dhistory.c169 nv_putval(np,newfile,NV_RDONLY); in acctinit()