Lines Matching defs:cmd
25 static int pipe_data(char *cmd, off_t spos, off_t epos);
32 lsystem(const char *cmd, const char *donemsg)
43 if (cmd[0] == '-')
44 cmd++;
48 putstr(cmd);
88 if (*cmd == '\0') {
91 char *esccmd = shell_quote(cmd);
99 if (*cmd == '\0')
102 p = estrdup(cmd);
153 pipe_mark(int c, char *cmd)
171 return (pipe_data(cmd, tpos, bpos));
173 return (pipe_data(cmd, mpos, bpos));
175 return (pipe_data(cmd, tpos, bpos));
177 return (pipe_data(cmd, tpos, mpos));
185 pipe_data(char *cmd, off_t spos, off_t epos)
201 if ((f = popen(cmd, "w")) == NULL) {
207 putstr(cmd);