Lines Matching defs:ap
135 char **ap;
148 ap = argv + 1;
152 if (strcmp(*ap, "--") == 0)
153 if (*++ap == NULL)
156 if (signame_to_signum(*ap) == -1) {
157 if ((*ap)[0] == '-') {
158 if ((*ap)[1] == '\0')
159 ap++;
160 else if ((*ap)[1] == 'l' && (*ap)[2] == '\0') {
165 error("bad option %s\n", *ap);
168 action = *ap++;
171 while (*ap) {
172 if (is_number(*ap))
173 signo = number(*ap);
175 signo = signame_to_signum(*ap);
178 error("%s: bad trap", *ap);
192 ap++;