Searched defs:cmd (Results 1 - 25 of 73) sorted by relevance

123

/ast/src/lib/libast/stdio/
H A Dpopen.c27 popen(const char* cmd, const char* mode) argument
29 return sfpopen((Sfio_t*)(-1), cmd, mode);
/ast/src/lib/libcoshell/
H A Dsystem.c31 cosystem(const char* cmd) argument
37 if (!cmd)
41 if (cj = coexec(co, cmd, CO_SILENT, NiL, NiL, NiL))
/ast/src/lib/libast/comp/
H A Dsystem.c44 system(const char* cmd) argument
48 if (!cmd)
52 sh[2] = (char*)cmd;
/ast/src/lib/libast/misc/
H A Derrorx.c32 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))
H A Dcmdarg.c97 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...]
/ast/src/lib/libast/preroot/
H A Dsetpreroot.c41 char* cmd; local
45 if ((argv || (argv = opt_info.argv)) && (dir || (dir = getenv(PR_BASE)) && *dir) && !ispreroot(dir) && (*(cmd = *argv++) == '/' || (cmd = pathpath(cmd, NiL, PATH_ABSOLUTE|PATH_REGULAR|PATH_EXECUTE, buf, sizeof(buf)))))
54 *ap++ = cmd;
H A Dgetpreroot.c25 * return the real absolute pathname of the preroot dir for cmd
26 * if cmd==0 then current preroot path returned
46 getpreroot(char* path, const char* cmd) argument
54 if (cmd)
56 sfsprintf(buf, sizeof(buf), "set x `%s= %s - </dev/null 2>&1`\nwhile :\ndo\nshift\ncase $# in\n[012]) break ;;\nesac\ncase \"$1 $2\" in\n\"+ %s\") echo $3; exit ;;\nesac\ndone\necho\n", PR_SILENT, cmd, PR_COMMAND);
/ast/src/cmd/3d/
H A Dfacl3d.c35 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);
H A Dacl3d.c36 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);
/ast/src/cmd/tw/
H A Dxargs.c116 register Cmdarg_t* cmd; local
221 if (!(cmd = cmdopen(argv, argmax, size, insert, &disc)))
222 error(ERROR_SYSTEM|3, "out of space [cmd]");
233 cmdarg(cmd, s, c);
285 cmdarg(cmd, 0, -1);
286 cmdarg(cmd, s, c);
299 cmdclose(cmd);
/ast/src/lib/libast/path/
H A Dpathpath.c57 static char* cmd; local
67 if (cmd)
68 free(cmd);
69 cmd = a ? strdup(a) : (char*)0;
100 if ((!cmd || *cmd) && (strchr(s, '/') || (s = cmd)))
102 if (!cmd && *s == '/')
103 cmd = strdup(s);
/ast/src/cmd/msgcc/
H A Dmsgget.c55 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);
/ast/src/cmd/cs/vcs_src/
H A Difs_rsh.c40 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...]
H A Dmnt_vcs.c94 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...]
/ast/src/lib/libardir/
H A Dar-local.c69 char* cmd; local
77 cmd = sfprints("${ARDIR:-ar} ${ARDIRFLAGS:-tv} '%s' 2>/dev/null", ar->path);
78 if (!(state->sp = sfpopen(NiL, cmd, "r")) || (c = sfgetc(state->sp)) == EOF || sfungetc(state->sp, c) == EOF)
/ast/src/lib/libtk/generic/
H A DtkMain.c270 char *cmd;
290 cmd = Tcl_DStringAppend(&command, "\n", -1);
293 if (!Tcl_CommandComplete(cmd)) {
308 code = Tcl_RecordAndEval(interp, cmd, TCL_EVAL_GLOBAL);
268 char *cmd; local
H A DtkConsole.c602 char *cmd;
612 cmd = "tkConsoleOutput stderr ";
614 cmd = "tkConsoleOutput stdout ";
627 Tcl_DStringAppend(&command, cmd, strlen(cmd));
589 char *cmd; local
/ast/src/lib/libast/disc/
H A Dsfdcfilter.c150 int sfdcfilter(Sfio_t* f, const char* cmd) argument
152 int sfdcfilter(f, cmd)
154 char* cmd; /* program to run as a filter */
161 if(!(filter = sfpopen(NIL(Sfio_t*),cmd,"r+")) )
/ast/src/lib/libast/sfio/
H A Dsfpopen.c50 reg char *s, *cmd, **argv, **p, *interp; local
69 if(!(cmd = (char*)malloc(strlen(argcmd)+1)) )
71 strcpy(cmd,argcmd);
74 for(n = 0, s = cmd;; )
96 cmd = argv[0];
97 for(s = cmd+strlen(cmd)-1; s >= cmd; --s)
103 for(s = cmd+strlen(cmd)
[all...]
/ast/src/lib/libcs/
H A Dcslocal.c49 initiate(Cs_t* state, const char* svc, char* cmd) argument
62 pathcanon(cmd, 0, 0);
63 av[0] = cmd;
68 messagef((state->id, NiL, -1, "local: %s: cannot initiate %s", svc, cmd));
99 char cmd[PATH_MAX / 8]; local
131 s = cmd;
139 p = pathcat(p, ':', "../lib/cs/fdp", cmd, exe, PATH_MAX + 1);
143 messagef((state->id, NiL, -1, "local: %s: %s: cannot locate service on ../lib/cs/fdp", path, cmd));
148 sfsprintf(tmp, sizeof(tmp), "%s/fdp/%s/%s/%d-%d-/%c%s", csvar(state, CS_VAR_LOCAL, 0), csname(state, 0), cmd, st.st_uid, geteuid(), CS_MNT_STREAM, CS_MNT_TAIL);
189 if (read(fd, cmd,
[all...]
/ast/src/cmd/kshlib/cmdtst/
H A Dxargs.c103 #include <cmd.h>
110 Cmdarg_t* cmd; member in struct:Xargs_s
232 if (!(xargs.cmd = cmdopen(argv, argmax, size, insert, &xargs.disc)))
247 cmdarg(xargs.cmd, s, c);
299 cmdarg(xargs.cmd, 0, -1);
300 cmdarg(xargs.cmd, s, c);
315 cmdclose(xargs.cmd);
/ast/src/lib/libcmd/
H A Ddate.c197 #include <cmd.h>
219 settime(Shbltin_t* context, const char* cmd, Time_t now, int adjust, int network) argument
230 if (!streq(cmd, s) && (!eaccess(s, X_OK) || !eaccess(s+=4, X_OK)))
293 char* cmd = argv[0]; /* original command path */ local
502 else if (settime(context, cmd, now, increment, network))
H A Dgetconf.c123 #include <cmd.h>
143 char* cmd; local
293 if ((cmd = oargv[0]) && *cmd == '/' && !access(cmd, X_OK))
362 cmd = buf;
380 cmd = buf;
401 oargv[0] = cmd;
403 error(ERROR_SYSTEM|2, "%s: exec error [%d]", cmd, n);
/ast/src/cmd/sort/
H A Dsfopen.c69 Sfio_t* cmd; member in struct:State_s
171 if (state.cmd = sfstropen())
234 sfwrite(state.cmd, path + sub[c], r);
238 sfputc(state.cmd, c);
241 sfprintf(state.cmd, " %c %s", n == 1 ? '<' : '>', path);
242 if (!(s = sfstruse(state.cmd)))
/ast/src/cmd/coshell/
H A Dshell.c177 if (jp->cmd)
182 shellexec(jp, jp->cmd, jp->fd);
211 char* cmd; local
224 cmd = strdup(msg);
303 if (!(msg = jp->cmd)) state.jobwait++;
304 jp->cmd = cmd;
305 cmd = msg;
310 if (cmd) free(cmd);
[all...]

Completed in 45 milliseconds

123