Lines Matching defs:line

265 static char *cte_lp;			/* Next free line in cte_text */
1116 static char line[CTLINESIZE]; /* holds a line from a crontab file */
1117 static int cursor; /* cursor for the above line */
1154 while (fgets(line, CTLINESIZE, cf) != NULL) {
1156 /* process a line of a crontab file */
1161 while (line[cursor] == ' ' || line[cursor] == '\t')
1163 if (line[cursor] == '#' || line[cursor] == '\n')
1166 if (strncmp(&line[cursor], ENV_TZ,
1168 if ((tmp = strchr(&line[cursor], '\n')) != NULL) {
1172 if (!isvalid_tz(&line[cursor + strlen(ENV_TZ)], NULL,
1174 cte_add(lineno, line);
1177 if (tz == NULL || strcmp(&line[cursor], get_obj(tz))) {
1179 tz = create_shared_str(&line[cursor]);
1184 if (strncmp(&line[cursor], ENV_HOME,
1186 if ((tmp = strchr(&line[cursor], '\n')) != NULL) {
1190 strcmp(&line[cursor], get_obj(home))) {
1193 &line[cursor + strlen(ENV_HOME)]);
1198 if (strncmp(&line[cursor], ENV_SHELL,
1200 if ((tmp = strchr(&line[cursor], '\n')) != NULL) {
1204 strcmp(&line[cursor], get_obj(shell))) {
1206 shell = create_shared_str(&line[cursor]);
1219 cte_add(lineno, line);
1222 while (line[cursor] == ' ' || line[cursor] == '\t')
1224 if (line[cursor] == '\n' || line[cursor] == '\0')
1229 while ((line[cursor] != '%') &&
1230 (line[cursor] != '\n') &&
1231 (line[cursor] != '\0') &&
1232 (line[cursor] != '\\'))
1234 if (line[cursor] == '\\') {
1239 (void) strncpy(e->cmd, line + start, cursor-start);
1242 if (line[cursor] == '%') {
1243 e->of.ct.input = xmalloc(strlen(line)-cursor + 1);
1244 (void) strcpy(e->of.ct.input, line + cursor + 1);
1347 * a crontab is not aborted if at least one valid line was found.
1451 * field of a line of a crontab file.
1455 * user telling him which line the error was in.
1461 while ((line[cursor] == ' ') || (line[cursor] == '\t'))
1464 if (line[cursor] == '\0') {
1467 if (line[cursor] == '*') {
1469 if ((line[cursor] != ' ') && (line[cursor] != '\t'))
1476 if (!isdigit(line[cursor]))
1480 num = num*10 + (line[cursor]-'0');
1481 } while (isdigit(line[++cursor]));
1484 if (line[cursor] == '-') {
1485 if (!isdigit(line[++cursor]))
1489 num2 = num2*10 + (line[cursor]-'0');
1490 } while (isdigit(line[++cursor]));
1494 if ((line[cursor] == ' ') || (line[cursor] == '\t'))
1496 if (line[cursor] == '\0')
1498 if (line[cursor++] != ',')
1502 (void) strncpy(s, line + start, cursor-start);