Lines Matching refs:toys
113 char *dest = *toys.optargs ? *toys.optargs : getenv("HOME"); in cd_main()
120 exit(*toys.optargs ? atoi(*toys.optargs) : 0); in exit_main()
211 memcpy(&temp, &toys, sizeof(struct toy_context)); in run_pipeline()
212 memset(&toys, 0, sizeof(struct toy_context)); in run_pipeline()
215 toys.rebound = &rebound; in run_pipeline()
219 cmd->pid = toys.exitval; in run_pipeline()
220 if (toys.optargs != toys.argv+1) free(toys.optargs); in run_pipeline()
221 if (toys.old_umask) umask(toys.old_umask); in run_pipeline()
222 memcpy(&toys, &temp, sizeof(struct toy_context)); in run_pipeline()
296 } else if (cc=='s') fputs(getbasename(*toys.argv), stdout); in do_prompt()
317 if (isatty(0)) toys.optflags |= FLAG_i; in sh_main()
319 if (*toys.optargs) f = xfopen(*toys.optargs, "r"); in sh_main()
334 toys.exitval = 1; in sh_main()