/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_data.c | 73 unsigned char shell[ONMSZ] = { variable 116 (unsigned char *)"shell", (unsigned char *)"sh", STRING, 0, 0, shell,
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | shell.c | 23 shell(int n, int (*comp)(), int (*exch)()) function
|
/illumos-gate/usr/src/cmd/runat/ |
H A D | runat.c | 34 * when command is not specified an interactive shell is started 59 char *shell; local 92 shell = getenv("SHELL"); 93 if (shell == NULL) { 96 "runat: shell not found, using /bin/sh\n")); 97 shell = "/bin/sh"; 100 (void) execl(shell, shell, NULL); 102 gettext("runat: Failed to exec %s: %s\n"), shell, 126 * This is done so that the shell wil [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | execvp.c | 45 static char *shell = "/bin/sh"; variable 89 (void) execv(shell, newargs);
|
/illumos-gate/usr/src/cmd/make/lib/mksh/ |
H A D | mksh.cc | 63 static void init_mksh_globals(char *shell); 80 init_mksh_globals(char *shell) argument 85 MBSTOWCS(wcs_buffer, shell); 90 dmake_shell = shell;
|
H A D | dosys.cc | 133 * Used to run command lines that include shell meta-characters. 134 * The make macro SHELL is supposed to contain a path to the shell. 145 * shell_name The Name "SHELL", used to get the path to shell 155 register Name shell = getvar(shell_name); local 160 if (IS_EQUAL(shell->string_mb, "")) { 161 shell = shell_name; 163 if ((shellname = strrchr(shell->string_mb, (int) slash_char)) == NULL) { 164 shellname = shell->string_mb; 206 (void) execve(shell->string_mb, argv, environ); 208 shell 242 register Name shell = getvar(shell_name); local [all...] |
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | system.c | 131 static const char *shell = "sh"; local 162 * to fail if the shell cannot be executed, but rather cause 234 argv[0] = (char *)shell;
|
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | fmtesc.c | 54 int shell; local 64 shell = 0; 70 shell = 1; 166 if (singlequote || shell) 172 if (shell) 191 else if (!spaced && !escaped && (isspace(c) || ((flags & FMT_SHELL) || shell) && (strchr("\";~&|()<>[]*?", c) || c == '#' && (b == f || isspace(*(b - 1)))))) 199 buf += shell + !spaced;
|
/illumos-gate/usr/src/cmd/newgrp/ |
H A D | newgrp.c | 65 char NS[] = "newgrp: You have no shell"; 87 char *shell, *dir, *name; local 145 if ((shell = getenv("SHELL")) != NULL) { 146 p->pw_shell = shell; 176 if ((shell = (char *)malloc(len)) == NULL) 178 (void) snprintf(shell, len, "-%s", p->pw_shell); 179 simple = strrchr(shell, '/'); 181 *(shell+1) = '\0'; 182 shell = strcat(shell, [all...] |
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | suid_exec.c | 22 * This is a program to execute 'execute only' and suid/sgid shell scripts. 35 * user and group id correctly, and then exec the shell. 89 static char *shell; variable 236 shell = getenv("SHELL"); 237 if(shell == 0 || !endsh(shell) || ( 238 !in_dir("/bin",shell) && 239 !in_dir("/usr/bin",shell) && 240 !in_dir("/usr/lbin",shell) && 241 !in_dir("/usr/local/bin",shell))) 253 endsh(register const char *shell) argument 271 in_dir(register const char *dir,register const char *shell) argument [all...] |
/illumos-gate/usr/src/cmd/cron/ |
H A D | funcs.c | 221 isvalid_shell(const char *shell) argument 227 if (strcmp(t, shell) == 0) {
|
/illumos-gate/usr/src/cmd/script/ |
H A D | script.c | 48 char *shell; variable 78 shell = getenv("SHELL"); 79 if (shell == NULL) 80 shell = "/bin/sh"; 214 execl(shell, shell, "-i", (char *)0); 215 perror(shell);
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fsdb/ |
H A D | fsdb_yacc.y | 116 | inode | ls | override | nprompt | pwd | quit | tag | shell 456 shell : BANG label
|
/illumos-gate/usr/src/cmd/oamuser/user/ |
H A D | useradd.c | 57 * | -s shell | -c comment | -k skel_dir | -b base_dir] ] 63 * -s shell | -k skel_dir ] 73 * shell - a program to be used as a shell 117 static char *shell = NULL; /* shell from command line */ variable 220 shell = optarg; 379 if (shell != NULL) { 380 valid_input(SHELL, shell); 381 usrdefs->defshell = shell; [all...] |
H A D | usermod.c | 55 * | -s shell | -c comment | -l new_logname] 68 * shell - a program to be used as a shell 98 static char *shell = NULL; /* shell from command line */ variable 228 shell = optarg; 527 if (shell) { 528 if (REL_PATH(shell)) { 529 errmsg(M_RELPATH, shell); 532 if (strcmp(pstruct->pw_shell, shell) [all...] |
/illumos-gate/usr/src/lib/nsswitch/ad/common/ |
H A D | getpwnam.c | 58 const char *homedir, const char *shell) 70 argp->key.name, "x", uid, gid, gecos, homedir, shell) + 1; 75 name, domain, "x", uid, gid, gecos, homedir, shell) + 1; 93 argp->key.name, "x", uid, gid, gecos, homedir, shell); 96 name, domain, "x", uid, gid, gecos, homedir, shell); 255 /* Get gecos, homedirectory and shell information if available */ 55 update_buffer(ad_backend_ptr be, nss_XbyY_args_t *argp, const char *name, const char *domain, uid_t uid, gid_t gid, const char *gecos, const char *homedir, const char *shell) argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rexecd.c | 136 static char shell[64] = "SHELL="; variable 140 {homedir, shell, (char *)0, username, 155 {homedir, shell, "PATH=:/usr/ucb:/bin:/usr/bin", username, 0}; 434 (void) strncat(shell, pwd->pw_shell, sizeof (shell) - 7);
|
H A D | in.rshd.c | 38 * remote shell server: 110 * This is the shell/kshell daemon. The very basic protocol for checking 393 static char *shell; /* "SHELL=" */ variable 909 error("Fork (to start shell) failed on server. " 1126 shell = (char *)malloc(shell_len); 1128 if (homedir == NULL || shell == NULL || username == NULL) { 1133 (void) snprintf(shell, shell_len, "%s%s", shellstr, pwd->pw_shell); 1145 add_to_envinit(shell);
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | names.c | 206 char *date, *fname, *shell; local 288 if ((shell = value("SHELL")) == NOSTR || 289 *shell == '\0') 290 shell = SHELL; 291 (void) execlp(shell, shell, "-c", fname, 293 perror(shell);
|
H A D | cmd3.c | 69 * Process a shell escape by saving signals, ignoring signals, 74 shell(char *str) function 118 * Fork an interactive shell. 160 * Expand the shell escape by expanding unescaped !'s into the
|
/illumos-gate/usr/src/cmd/sulogin/ |
H A D | sulogin.c | 103 static char shell[] = "/sbin/sh"; variable 256 single(shell, NULL); 260 * user shell prompt 266 single(shell, NULL); 271 * user shell prompt 277 single(shell, NULL); 586 * single() - exec shell for single user mode 749 * from the auxiliary console and is getting the single-user shell. 751 * that didn't get the shell. 769 * has to make sure the shell is [all...] |
/illumos-gate/usr/src/cmd/newtask/ |
H A D | newtask.c | 107 char *shell; local 195 * Validate user's shell from passwd database. 290 * Prefix the shell string with a hyphen, indicating a login 291 * shell. 293 shell = safe_malloc(PATH_MAX); 294 (void) snprintf(shell, PATH_MAX, "-%s", basename(pw->pw_shell)); 296 shell = basename(pw->pw_shell); 300 * If there are no arguments, we launch the user's shell; otherwise, the 307 targs[0] = shell;
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | cmds.c | 565 * Escape to local shell 569 shell(int cc) function 874 * expand a file name if it includes shell meta characters
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | irpmarshall.c | 233 char *name, *pass, *class, *gecos, *dir, *shell; local 245 name = pass = class = gecos = dir = shell = NULL; 354 shell = NULL; 355 if (getfield(&shell, 0, &p, fieldsep) == NULL) { 367 pw->pw_shell = shell; 388 if (shell != NULL) free(shell);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | cmds.c | 1294 * Do a shell escape 1298 shell(int argc, char *argv[]) function
|