Lines Matching refs:toys
35 #include "toys.h"
49 char *s = *toys.optargs, *failed = "failed to %s %d's affinity";
73 if (i || toys.optc < 2) return;
76 k = strlen(s = *toys.optargs);
82 if (digit > 15) error_exit("bad mask '%s'", *toys.optargs);
101 if (!(toys.optflags & FLAG_p)) {
102 if (toys.optc < 2) error_exit("Needs 2 args");
104 xexec(toys.optargs+1);
107 pid_t pid = strtol(toys.optargs[toys.optc-1], &c, 10);
109 if (*c) error_exit("Not int %s", toys.optargs[1]);
111 if (toys.optflags & FLAG_a) {
124 if (!toys.optflags && -1!=sched_getaffinity(getpid(), 4096, toybuf)) {