/ast/src/lib/libcmd/ |
H A D | lib.c | 23 #include <cmd.h> 25 SHLIB(cmd)
|
H A D | ln.c | 29 #include <cmd.h>
|
H A D | md5sum.c | 29 #include <cmd.h>
|
H A D | mv.c | 29 #include <cmd.h>
|
H A D | sum.c | 29 #include <cmd.h>
|
H A D | chown.c | 32 #include <cmd.h>
|
/ast/src/cmd/builtin/ |
H A D | builtin.c | 27 #include <cmd.h>
|
/ast/src/lib/libast/stdio/ |
H A D | popen.c | 27 popen(const char* cmd, const char* mode) argument 29 return sfpopen((Sfio_t*)(-1), cmd, mode);
|
/ast/src/cmd/ksh93/tests/ |
H A D | math.sh | 46 cmd='@@TYPE@@ -a @@VAR@@ ; @@VAR@@[1]=90 ; function x { nameref nz=$1 ; print " $(( round(nz) ))==$(( round($nz) ))" ; } ; x @@VAR@@[1]' ; stdoutpattern=' 90==90' 49 cmd='@@TYPE@@ -a @@VAR@@=( [1]=90 ) ; function x { nameref nz=$1 ; print " $(( round(nz) ))==$(( round($nz) ))" ; } ; x @@VAR@@[1]' ; stdoutpattern=' 90==90' 52 cmd='@@TYPE@@ -a @@VAR@@ ; @@VAR@@[1][3]=90 ; function x { nameref nz=$1 ; print " $(( round(nz) ))==$(( round($nz) ))" ; } ; x @@VAR@@[1][3]' ; stdoutpattern=' 90==90' 55 cmd='@@TYPE@@ -a @@VAR@@=( [1][3]=90 ) ; function x { nameref nz=$1 ; print " $(( round(nz) ))==$(( round($nz) ))" ; } ; x @@VAR@@[1][3]' ; stdoutpattern=' 90==90' 58 cmd='@@TYPE@@ -a @@VAR@@ ; @@VAR@@[1][3][5]=90 ; function x { nameref nz=$1 ; print " $(( round(nz) ))==$(( round($nz) ))" ; } ; x @@VAR@@[1][3][5]' ; stdoutpattern=' 90==90' 61 cmd='@@TYPE@@ -a @@VAR@@=( [1][3][5]=90 ) ; function x { nameref nz=$1 ; print " $(( round(nz) ))==$(( round($nz) ))" ; } ; x @@VAR@@[1][3][5]' ; stdoutpattern=' 90==90' 64 cmd='@@TYPE@@ -a @@VAR@@ ; @@VAR@@[1][3][5]=90 ; function x { nameref nz=${1}[$2][$3][$4] ; print " $(( round(nz) ))==$(( round($nz) ))" ; } ; x @@VAR@@ 1 3 5' ; stdoutpattern=' 90==90' 67 cmd='@@TYPE@@ -A @@VAR@@ ; @@VAR@@[1]=90 ; function x { nameref nz=$1 ; print " $(( round(nz) ))==$(( round($nz) ))" ; } ; x @@VAR@@[1]' ; stdoutpattern=' 90==90' 70 cmd='@@TYPE@@ -A @@VAR@@=( [1]=90 ) ; function x { nameref nz=$1 ; print " $(( round(nz) ))==$(( round($nz) ))" ; } ; x @@VAR@@[1]' ; stdoutpattern=' 90==90' 77 typeset cmd [all...] |
H A D | statics.sh | 41 typeset cmd 48 typeset cmd="$2" 52 output="$($SHELL -c "${cmd}" 2>&1 )" 93 cmd=$' 112 cmd=$' 133 cmd=$' 159 cmd=$' 190 cmd=$' 207 cmd=$' 228 cmd [all...] |
H A D | comvario.sh | 377 ( cmd='compound v=( integer -A ar=( [aa]=4 [bb]=9 ) ; ) ; print -C v' stdoutpattern=$'~(Alr)(.*\\[bb\\]=9.*)&(.*\\[aa\\]=4.*)' arrefname='ar' ) 378 ( cmd='compound v=( float -A ar=( [aa]=4 [bb]=9 ) ; ) ; print -C v' stdoutpattern=$'~(Alr)(.*\\[bb\\]=9.*)&(.*\\[aa\\]=4.*)' arrefname='ar' ) 379 ( cmd='compound v=( typeset -A ar=( [aa]=4 [bb]=9 ) ; ) ; print -C v' stdoutpattern=$'~(Alr)(.*\\[bb\\]=["\']*9.*)&(.*\\[aa\\]=["\']*4.*)' arrefname='ar' ) 380 ( cmd='compound v=( integer -A ar=( [aa]=4 [bb]=9 ) ; ) ; print -v v' stdoutpattern=$'~(Alr)(.*\\[bb\\]=9.*)&(.*\\[aa\\]=4.*)' arrefname='ar' ) 381 ( cmd='compound v=( float -A ar=( [aa]=4 [bb]=9 ) ; ) ; print -v v' stdoutpattern=$'~(Alr)(.*\\[bb\\]=9.*)&(.*\\[aa\\]=4.*)' arrefname='ar' ) 382 ( cmd='compound v=( typeset -A ar=( [aa]=4 [bb]=9 ) ; ) ; print -v v' stdoutpattern=$'~(Alr)(.*\\[bb\\]=["\']*9.*)&(.*\\[aa\\]=["\']*4.*)' arrefname='ar' ) 385 ( cmd='compound vx=( compound v=( integer -A ar=( [aa]=4 [bb]=9 ) ; ) ; ) ; print -C vx' stdoutpattern=$'~(Alr)(.*\\[bb\\]=9.*)&(.*\\[aa\\]=4.*)' arrefname='v.ar' ) 386 ( cmd='compound vx=( compound v=( float -A ar=( [aa]=4 [bb]=9 ) ; ) ; ) ; print -C vx' stdoutpattern=$'~(Alr)(.*\\[bb\\]=9.*)&(.*\\[aa\\]=4.*)' arrefname='v.ar' ) 387 ( cmd='compound vx=( compound v=( typeset -A ar=( [aa]=4 [bb]=9 ) ; ) ; ) ; print -C vx' stdoutpattern=$'~(Alr)(.*\\[bb\\]=["\']*9.*)&(.*\\[aa\\]=["\']*4.*)' arrefname='v.ar' ) 388 ( cmd [all...] |
/ast/src/lib/libast/misc/ |
H A D | cmdarg.c | 97 register Cmdarg_t* cmd; local 149 if (!(cmd = newof(0, Cmdarg_t, 1, n + m))) 155 cmd->id = lib; 156 cmd->disc = disc; 157 cmd->errorf = disc->errorf; 158 if (!(cmd->runf = disc->runf)) 159 cmd->runf = cmdrun; 163 s = cmd->buf; 167 cmd->echo = 1; 171 cmd 231 cmdflush(register Cmdarg_t* cmd) argument 354 cmdarg(register Cmdarg_t* cmd, const char* file, register int len) argument 395 cmdclose(Cmdarg_t* cmd) argument [all...] |
H A D | errorx.c | 32 errorx(const char* loc, const char* cmd, const char* cat, const char* msg) argument 42 if (!cmd) 43 cmd = (const char*)error_info.id; 46 if (s = (*error_info.translate)(loc, cmd, cat, msg))
|
/ast/src/lib/libast/comp/ |
H A D | system.c | 44 system(const char* cmd) argument 48 if (!cmd) 52 sh[2] = (char*)cmd;
|
H A D | mkdir.c | 42 static char* cmd[] = { "/bin/mkdir", "/usr/5bin/mkdir", 0 }; 56 for (n = 0; n < elementsof(cmd); n++) 57 if (procclose(procopen(cmd[n], av, NiL, NiL, 0)) != -1)
|
H A D | rmdir.c | 42 static char* cmd[] = { "/bin/rmdir", "/usr/5bin/rmdir", 0 }; 53 for (n = 0; n < elementsof(cmd); n++) 54 if (procclose(procopen(cmd[n], av, NiL, NiL, 0)) != -1)
|
/ast/src/cmd/3d/ |
H A D | acl3d.c | 36 acl3d(const char* path, int cmd, int cnt, aclent_t* buf) argument 44 if (!fscall(NiL, MSG_acl, 0, path, cmd, cnt, buf)) 48 if (!(sp = pathreal(path, cmd == SETACL ? (state.safe ? (P_SAFE|P_TOP) : P_TOP) : 0, NiL))) 50 r = ACL(sp, cmd, cnt, buf); 55 fscall(mp, MSG_acl, 0, state.path.name, cmd, cnt, buf); 58 fscall(mp, MSG_acl, 0, state.path.name, cmd, cnt, buf);
|
H A D | facl3d.c | 35 facl3d(int fd, int cmd, int cnt, aclent_t* buf) argument 42 if (!fscall(NiL, MSG_facl, 0, fd, cmd, cnt, buf)) 46 r = FACL(fd, cmd, cnt, buf); 51 fscall(mp, MSG_facl, 0, fd, cmd, cnt, buf); 54 fscall(mp, MSG_facl, 0, fd, cmd, cnt, buf);
|
/ast/src/cmd/INIT/ |
H A D | filter.sh | 69 cmd=$1 76 -*) cmd="$cmd $1" ;; 83 $cmd $tmp 93 $cmd $tmp$suf || exit 1
|
H A D | crossexec.sh | 90 cmd=$1 136 $exec $cp $cmd $cpu$hostname:$dir </dev/null || exit 1 137 cmd=./${cmd##*/} 138 $exec $sh $shu $hostname "cd $dir; LD_LIBRARY_PATH=: $cmd $@ </dev/null 2>/dev/null; code=\$?; rm -f $cmd; echo $command: exit \$code >&2" </dev/null 2>$tmp
|
/ast/src/cmd/cs/vcs_src/ |
H A D | mnt_vcs.c | 94 register char* cmd; local 100 cmd = error_info.id = argv[0]; 108 if(strcmp(cmd, "kill") == 0) 110 sfsprintf(buf, 2048, "%s\n", cmd); 116 else if ((strcmp(cmd, "connect") == 0) || (strncmp(cmd, "version", 4) == 0)) 131 cmd = "version"; 133 else if (strcmp(cmd, "log") == 0) 135 cmd = "r"; 137 else if (strcmp(cmd, "c [all...] |
H A D | ifs_rsh.c | 40 char cmd[ STRLEN ]; local 54 sfsprintf( cmd, sizeof(cmd), "rsh %s", hostid ); 56 sfsprintf( cmd, sizeof(cmd), "rsh -l %s %s", userid, hostid ); 58 sfsprintf( buf, sizeof(buf), "%s /bin/ls -alL %s", cmd, rpath ); 80 sfsprintf( cmd, sizeof(cmd), "%s", hostid ); 82 sfsprintf( cmd, sizeof(cmd), " [all...] |
/ast/src/lib/libcoshell/ |
H A D | system.c | 31 cosystem(const char* cmd) argument 37 if (!cmd) 41 if (cj = coexec(co, cmd, CO_SILENT, NiL, NiL, NiL))
|
/ast/src/lib/libtk/library/ |
H A D | tearoff.tcl | 78 set cmd [$w cget -tearoffcommand] 79 if {$cmd != ""} { 80 uplevel #0 $cmd $w $menu 95 set cmd [list menu $dst] 100 lappend cmd [lindex $option 0] [lindex $option 4] 102 eval $cmd 108 set cmd [list $dst add [$src type $i]] 110 lappend cmd [lindex $option 0] [lindex $option 4] 112 eval $cmd
|
/ast/src/cmd/msgcc/ |
H A D | msgget.c | 55 char* cmd; local 79 if (error_info.errors || !(loc = *argv++) || !(cmd = *argv++) || !(s = *argv++)) 91 if (cat = strchr(cmd, ':')) 93 if (!mcfind(loc, cmd, LC_MESSAGES, 0, path, sizeof(path)) && (!cat || !mcfind(loc, cat, LC_MESSAGES, 0, path, sizeof(path)))) 97 error(3, "%s: cannot locate message catalog", cmd); 106 s = errorx(loc, cmd, cat, msg);
|