Home
last modified time | relevance | path

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

12345678910>>...23

/titanic_50/usr/src/lib/libshell/
H A DMakefile.demo57 src/cpvprint.sh \
58 src/crawlsrccomments.sh \
59 src/filemutexdemo1.sh \
60 src/filetree1.sh \
61 src/gnaw.sh \
62 src/mandelbrotset1.sh \
63 src/multifollow.sh \
64 src/numtree1.sh \
65 src/primenumbers1.sh \
66 src/rssread.sh \
[all …]
H A DMakefile.com68 sh/args.o \
69 sh/arith.o \
70 sh/array.o \
71 sh/defs.o \
72 sh/deparse.o \
73 sh/expand.o \
74 sh/fault.o \
75 sh/fcin.o \
76 sh/init.o \
77 sh/io.o \
[all …]
/titanic_50/usr/src/lib/libshell/common/include/
H A Dvariables.h30 #define PATHNOD (sh.bltin_nodes)
31 #define PS1NOD (sh.bltin_nodes+1)
32 #define PS2NOD (sh.bltin_nodes+2)
33 #define IFSNOD (sh.bltin_nodes+3)
34 #define PWDNOD (sh.bltin_nodes+4)
35 #define HOME (sh.bltin_nodes+5)
36 #define MAILNOD (sh.bltin_nodes+6)
37 #define REPLYNOD (sh.bltin_nodes+7)
38 #define SHELLNOD (sh.bltin_nodes+8)
39 #define EDITNOD (sh.bltin_nodes+9)
[all …]
H A Dbuiltins.h29 #define SYSLOGIN (sh.bltin_cmds)
30 #define SYSEXEC (sh.bltin_cmds+1)
31 #define SYSSET (sh.bltin_cmds+2)
32 #define SYSTRUE (sh.bltin_cmds+4)
33 #define SYSCOMMAND (sh.bltin_cmds+5)
34 #define SYSCD (sh.bltin_cmds+6)
35 #define SYSBREAK (sh.bltin_cmds+7)
36 #define SYSCONT (sh.bltin_cmds+8)
37 #define SYSTYPESET (sh.bltin_cmds+9)
38 #define SYSTEST (sh.bltin_cmds+10)
[all …]
/titanic_50/usr/src/cmd/csh/i386/
H A DMakefile23 CPPFLAGS += -I../../sh
40 HDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
41 sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \
42 sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o
44 COMMONOBJS= printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
45 sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
46 sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
47 sh.time.o sh.tchar.o sh.tconst.o sh.o \
65 %.o: ../../sh/%.c
73 $(HDDEP): ../sh.tconst.h
[all …]
/titanic_50/usr/src/cmd/csh/sparc/
H A DMakefile23 CPPFLAGS += -I../../sh
42 HDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
43 sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \
44 sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o
46 COMMONOBJS= printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
47 sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
48 sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
49 sh.time.o sh.tchar.o sh.tconst.o sh.o \
67 %.o: ../../sh/%.c
75 $(HDDEP): ../sh.tconst.h
[all …]
/titanic_50/usr/src/cmd/fs.d/nfs/lib/
H A Dsharetab.c63 static share_t *sh = NULL; in getshare() local
73 if (sh == NULL) { in getshare()
74 sh = (share_t *)malloc(sizeof (*sh)); in getshare()
75 if (sh == NULL) in getshare()
84 sh->sh_path = (char *)strtok_r(p, w, &lasts); in getshare()
85 if (sh->sh_path == NULL) in getshare()
87 sh->sh_res = (char *)strtok_r(NULL, w, &lasts); in getshare()
88 if (sh->sh_res == NULL) in getshare()
90 sh->sh_fstype = (char *)strtok_r(NULL, w, &lasts); in getshare()
91 if (sh->sh_fstype == NULL) in getshare()
[all …]
/titanic_50/usr/src/cmd/rexd/
H A Dsharetab.c64 static share_t *sh = NULL; in getshare() local
73 if (sh == NULL) { in getshare()
74 sh = (share_t *)malloc(sizeof (*sh)); in getshare()
75 if (sh == NULL) in getshare()
84 sh->sh_path = strtok(p, w); in getshare()
85 if (sh->sh_path == NULL) in getshare()
87 sh->sh_res = strtok(NULL, w); in getshare()
88 if (sh->sh_res == NULL) in getshare()
90 sh->sh_fstype = strtok(NULL, w); in getshare()
91 if (sh->sh_fstype == NULL) in getshare()
[all …]
/titanic_50/usr/src/cmd/csh/
H A DMakefile27 CLOBBERFILES += sh.tconst.h
28 CLEANFILES += sh.tconst.h
37 sh.o sh.char.o \
38 sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o\
39 sh.file.o sh.func.o sh.glob.o sh.hist.o\
40 sh.init.o sh.lex.o sh.misc.o sh.parse.o\
41 sh.print.o sh.proc.o sh.sem.o sh.set.o\
42 sh.tchar.o sh.time.o wait3.o printf.o
45 CPPFLAGS += -I ../sh
58 _msg: $(MSGDOMAIN) sh.tconst.h .WAIT $(POFILE)
[all …]
/titanic_50/usr/src/uts/common/fs/sharefs/
H A Dsharetab.c60 sh->sh_##field = kmem_alloc(len + 1, KM_SLEEP); \
61 bcopy(buf, sh->sh_##field, len); \
62 sh->sh_##field[len] = '\0'; \
64 sh->sh_size += shl.shl_##field; /* Debug counting */
67 if (sh->sh_##field) { \
68 kmem_free(sh->sh_##field, \
70 strlen(sh->sh_##field) + 1); \
92 sharefree(share_t *sh, sharefs_lens_t *shl) in sharefree() argument
94 if (!sh) in sharefree()
103 kmem_free(sh, sizeof (share_t)); in sharefree()
[all …]
/titanic_50/usr/src/lib/libast/common/path/
H A Dpathshell.c53 register char* sh; in pathshell() local
62 …if ((sh = getenv("SHELL")) && *sh == '/' && strmatch(sh, "*/(sh|*[!cC]sh)*([[:digit:]])?(-+([.[:al… in pathshell()
66 if (stat(sh, &st)) in pathshell()
68 if (ru != st.st_uid && !strmatch(sh, "?(/usr)?(/local)/?([ls])bin/?([[:lower:]])sh?(.exe)")) in pathshell()
81 s = sh; in pathshell()
90 if (s != sh) in pathshell()
102 return sh; in pathshell()
105 if (!(sh = val)) in pathshell()
107 if (!*(sh = astconf("SH", NiL, NiL)) || *sh != '/' || eaccess(sh, X_OK) || !(sh = strdup(sh))) in pathshell()
108 sh = "/bin/sh"; in pathshell()
[all …]
/titanic_50/usr/src/lib/libc/port/sys/
H A Dsharefs.c46 _sharefs(enum sharefs_sys_op opcode, struct share *sh) in _sharefs() argument
56 i = (sh->sh_path ? strlen(sh->sh_path) : 0); in _sharefs()
57 sh->sh_size = i; in _sharefs()
59 j = (sh->sh_res ? strlen(sh->sh_res) : 0); in _sharefs()
60 sh->sh_size += j; in _sharefs()
63 j = (sh->sh_fstype ? strlen(sh->sh_fstype) : 0); in _sharefs()
64 sh->sh_size += j; in _sharefs()
67 j = (sh->sh_opts ? strlen(sh->sh_opts) : 0); in _sharefs()
68 sh->sh_size += j; in _sharefs()
71 j = (sh->sh_descr ? strlen(sh->sh_descr) : 0); in _sharefs()
[all …]
/titanic_50/usr/src/pkg/manifests/
H A Dsource-demo-system.mf86 file path=usr/demo/ksh/src/cpvprint.sh
87 file path=usr/demo/ksh/src/crawlsrccomments.sh
88 file path=usr/demo/ksh/src/filemutexdemo1.sh
89 file path=usr/demo/ksh/src/filetree1.sh
90 file path=usr/demo/ksh/src/gnaw.sh
91 file path=usr/demo/ksh/src/mandelbrotset1.sh
92 file path=usr/demo/ksh/src/multifollow.sh
93 file path=usr/demo/ksh/src/numtree1.sh
94 file path=usr/demo/ksh/src/primenumbers1.sh
95 file path=usr/demo/ksh/src/rssread.sh
[all …]
/titanic_50/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c113 Elf_Shdr *sh; in __fex_read_syms() local
150 if ((sh = (Elf_Shdr*)malloc(size)) == NULL) in __fex_read_syms()
153 read(fd, sh, size) != (ssize_t)size) in __fex_read_syms()
155 free(sh); in __fex_read_syms()
162 if (sh[i].sh_type == SHT_SYMTAB) in __fex_read_syms()
165 if (i == h.e_shnum || sh[i].sh_size == 0 || in __fex_read_syms()
166 sh[i].sh_entsize != sizeof(Elf_Sym) || in __fex_read_syms()
167 sh[i].sh_link < 1 || sh[i].sh_link >= h.e_shnum || in __fex_read_syms()
168 sh[sh[i].sh_link].sh_type != SHT_STRTAB || in __fex_read_syms()
169 sh[sh[i].sh_link].sh_size == 0) in __fex_read_syms()
[all …]
/titanic_50/usr/src/lib/libadt_jni/com/sun/audit/
H A DAuditSession.java74 private byte[] sh; // current session handle field in AuditSession
91 sh = new byte[8]; // NULL pointer in C in AuditSession()
96 sh = startSession(context, 0); in AuditSession()
100 sh = new byte[8]; in AuditSession()
104 sh = new byte[8]; in AuditSession()
118 return sh; in getSession()
126 sessionId = getSessionId(sh); in getSessionId()
157 endSession(sh); in finalize()
174 exportedData = exportSessionData(sh); in exportSession()
209 sessionAttr(sh, euid, egid, ruid, rgid, in setUser()
[all …]
/titanic_50/usr/src/lib/libshell/common/sh/
H A Dfault.c269 sh.st.otrapcom = 0; in sh_sigtrap()
272 else if(!((flag=sh.sigflag[sig])&(SH_SIGFAULT|SH_SIGOFF))) in sh_sigtrap()
287 sh.sigflag[sig] = flag; in sh_sigtrap()
296 register int flag, sig = sh.sigmax; in sh_sigdone()
297 sh.sigflag[0] |= SH_SIGFAULT; in sh_sigdone()
298 for(sig=sh.sigmax; sig>0; sig--) in sh_sigdone()
300 flag = sh.sigflag[sig]; in sh_sigdone()
314 register int flag, sig=sh.st.trapmax; in sh_sigreset()
317 if(trap=sh.st.trapcom[sig]) in sh_sigreset()
319 flag = sh.sigflag[sig]&~(SH_SIGTRAP|SH_SIGSET); in sh_sigreset()
[all …]
H A Djobs.c221 if(++bck.count > sh.lim.child_max) in jobsave_create()
252 Waitevent_f waitevent = sh.waitevent; in job_reap()
270 sh.waitevent = 0; in job_reap()
274 if(!(flags&WNOHANG) && !sh.intrap && job.pwlist) in job_reap()
346 if(pid==sh.cpid) in job_reap()
348 sh_close(sh.coutpipe); in job_reap()
349 sh_close(sh.cpipe[1]); in job_reap()
350 sh.cpipe[1] = -1; in job_reap()
351 sh.coutpipe = -1; in job_reap()
353 else if(sh.subshell) in job_reap()
[all …]
/titanic_50/usr/src/lib/libshell/common/tests/
H A Dvariables.sh34 [[ ${.sh.version} == "$KSH_VERSION" ]] || err_exit '.sh.version != KSH_VERSION'
117 nameref foo=${.sh.name}.save
118 foo=${.sh.value}
119 .sh.value=$0
127 nameref foo=${.sh.name}.save
128 .sh.value=$foo
179 .sh.value=stuff
451 then file=${.sh.file}
459 [[ $(posixfun .sh.file) == $tmp/script ]] || err_exit ".sh.file not working for posix functions"
460 [[ $(fun .sh.file) == $tmp/script ]] || err_exit ".sh.file not working for functions"
[all …]
/titanic_50/usr/src/lib/fm/topo/libtopo/
H A DMakefile.com111 ../common/topo_error.c: ../common/mkerror.sh ../common/topo_error.h
112 sh ../common/mkerror.sh liberrors < ../common/topo_error.h > $@
113 sh ../common/mkerror.sh properrors < ../common/libtopo.h >> $@
114 sh ../common/mkerror.sh methoderrors < ../common/libtopo.h >> $@
115 sh ../common/mkerror.sh fmrierrors < ../common/libtopo.h >> $@
116 sh ../common/mkerror.sh hdlerrors < ../common/libtopo.h >> $@
117 sh ../common/mkerror.sh moderrors < ../common/topo_mod.h >> $@
119 $(SRCDIR)/topo_tables.c: $(SRCDIR)/mktables.sh $(SRCDIR)/libtopo.h
120 sh $(SRCDIR)/mktables.sh $(SRCDIR)/libtopo.h > $@
/titanic_50/usr/src/lib/libstmfproxy/common/
H A Dstmftransport.c61 s_handle_t *sh = handle; in pt_socket_recv() local
63 return (recv(sh->sockfd, buf, len, MSG_WAITALL)); in pt_socket_recv()
69 s_handle_t *sh = handle; in pt_socket_send() local
71 return (send(sh->sockfd, buf, len, 0)); in pt_socket_send()
78 s_handle_t *sh = NULL; in pt_socket_connect() local
121 sh = malloc(sizeof (*sh)); in pt_socket_connect()
122 sh->sockfd = new_sfd; in pt_socket_connect()
170 sh = malloc(sizeof (*sh)); in pt_socket_connect()
171 sh->sockfd = sfd; in pt_socket_connect()
173 return (sh); in pt_socket_connect()
/titanic_50/usr/src/lib/libshell/common/bltins/
H A Dtest.c74 Shell_t *sh; member
115 tdata.sh = ((Shbltin_t*)extra)->shp; in b_test()
408 return(statb.st_uid==sh.userid); in test_unop()
409 return(statb.st_gid==sh.groupid); in test_unop()
431 if(!(np = nv_open(arg,sh.var_tree,NV_VARNAME|NV_NOFAIL|NV_NOADD|NV_NOREF))) in test_unop()
561 if(mode==X_OK && sh.euserid==0) in sh_access()
563 if(sh.userid==sh.euserid && sh.groupid==sh.egroupid) in sh_access()
568 if(sh.groupid==sh.euserid || setregid(sh.egroupid,sh.groupid)==0) in sh_access()
571 if(sh.userid==sh.euserid || setreuid(sh.euserid,sh.userid)==0) in sh_access()
575 if(sh.userid!=sh.euserid) in sh_access()
[all …]
/titanic_50/usr/src/lib/libshell/common/data/
H A Dbash_pre_rc.sh35 nameref FUNCNAME=.sh.fun
61 .sh.value=$(shopt -so)
62 .sh.value=${.sh.value//+([[:space:]])on*([[:space:]])/:}
63 .sh.value=${.sh.value%:}
80 set -A .sh.value $(dirs)
85 index=_push_max-.sh.subscript
87 _push_stack[index]=${.sh.value}
98 typeset prefix remaining=${.sh.value} var= n= k=
/titanic_50/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dvdev_impl.h38 #define VDEV_UBERBLOCK_SHIFT(sh) \ argument
39 MAX((sh), UBERBLOCK_SHIFT)
40 #define VDEV_UBERBLOCK_COUNT(sh) \ argument
41 (VDEV_UBERBLOCK_RING >> VDEV_UBERBLOCK_SHIFT(sh))
42 #define VDEV_UBERBLOCK_OFFSET(sh, n) \ argument
43 offsetof(vdev_label_t, vl_uberblock[(n) << VDEV_UBERBLOCK_SHIFT(sh)])
44 #define VDEV_UBERBLOCK_SIZE(sh) \ argument
45 (1ULL << VDEV_UBERBLOCK_SHIFT(sh))
/titanic_50/usr/src/cmd/sgs/libelf/common/
H A Dupdate.c218 Shdr *sh = s->s_shdr; in _elf_upd_lib() local
221 if (sh->sh_type == SHT_NULL) { in _elf_upd_lib()
222 *sh = _elf_snode_init.sb_shdr; in _elf_upd_lib()
229 sh->sh_addralign = 1; in _elf_upd_lib()
230 if ((sz = (Lword)_elf_entsz(elf, sh->sh_type, ver)) != 0) in _elf_upd_lib()
232 sh->sh_entsize = (Half)sz; in _elf_upd_lib()
243 if (j > sh->sh_addralign) in _elf_upd_lib()
244 sh->sh_addralign = (Xword)j; in _elf_upd_lib()
254 sh->sh_size = (Xword) sz; in _elf_upd_lib()
268 if (sh->sh_type == SHT_NOBITS) { in _elf_upd_lib()
[all …]
/titanic_50/usr/src/lib/libast/common/comp/
H A Dsystem.c46 char* sh[4]; in system() local
50 sh[0] = "sh"; in system()
51 sh[1] = "-c"; in system()
52 sh[2] = (char*)cmd; in system()
53 sh[3] = 0; in system()
54 return procrun(NiL, sh, 0); in system()

12345678910>>...23