Lines Matching +defs:shell +defs:flag
672 socklist_insert(SOCKET sock, int flag)
676 return st_insert(socklist, (st_data_t)sock, (st_data_t)flag);
1184 const char *shell = NULL;
1195 shell = prog;
1198 shell = p;
1206 if ((shell = getenv("RUBYSHELL")) && (redir = has_redirection(cmd))) {
1207 char *tmp = ALLOCV(v, strlen(shell) + strlen(cmd) + sizeof(" -c ") + 2);
1208 sprintf(tmp, "%s -c \"%s\"", shell, cmd);
1211 else if ((shell = getenv("COMSPEC")) &&
1212 (nt = !is_command_com(shell),
1215 char *tmp = ALLOCV(v, strlen(shell) + strlen(cmd) + sizeof(" /c ") + (nt ? 2 : 0));
1216 sprintf(tmp, nt ? "%s /c \"%s\"" : "%s /c %s", shell, cmd);
1224 shell = cmd;
1230 shell = p;
1237 shell = p;
1241 shell = dln_find_exe_r(shell, NULL, fbuf, sizeof(fbuf));
1242 if (!shell) {
1243 shell = p ? p : cmd;
1246 len = strlen(shell);
1247 if (strchr(shell, ' ')) quote = -1;
1248 if (shell == fbuf) {
1251 else if (shell != p && strchr(shell, '/')) {
1252 STRNDUPV(p, v2, shell, len);
1253 shell = p;
1256 if (is_batch(shell)) {
1260 memcpy(p, shell, len);
1264 shell = 0;
1273 if (!e && shell && !(wshell = acp_to_wstr(shell, NULL))) e = E2BIG;
1292 const char *shell;
1302 if ((shell = getenv("COMSPEC")) &&
1303 internal_cmd_match(prog, tmpnt = !is_command_com(shell))) {
1305 prog = shell;
1334 prog = c_switch ? shell : 0;
3778 int flag = 0;
3781 socklist_lookup(sock, &flag);
3782 af = GET_FAMILY(flag);
3783 flag = GET_FLAGS(flag);
3785 flag |= O_NONBLOCK;
3789 flag &= ~O_NONBLOCK;
3795 socklist_insert(sock, MAKE_SOCKDATA(af, flag));