Lines Matching defs:new
92 PLAN *new;
94 if ((new = malloc(sizeof(PLAN))) == NULL)
96 new->execute = option->execute;
97 new->flags = option->flags;
98 new->next = NULL;
99 return new;
277 PLAN *new;
282 new = palloc(option);
283 new->t_data.tv_sec = find_parsenum(new, option->name, nmins, NULL);
284 new->t_data.tv_nsec = 0;
285 TIME_CORRECT(new);
286 return new;
326 PLAN *new;
331 new = palloc(option);
332 new->t_data.tv_sec = find_parsetime(new, option->name, value);
333 new->t_data.tv_nsec = 0;
334 if (!(new->flags & F_EXACTTIME))
335 TIME_CORRECT(new);
336 return new;
352 PLAN *new;
359 new = palloc(option);
361 maxdepth = find_parsenum(new, option->name, dstr, NULL);
363 mindepth = find_parsenum(new, option->name, dstr, NULL);
364 return new;
528 PLAN *new;
531 new = palloc(option);
534 if (str && !(new->flags & F_DEPTH)) {
542 new->flags |= F_DEPTH;
545 if (new->flags & F_DEPTH) { /* -depth n */
549 new->d_data = find_parsenum(new, option->name, ndepth, NULL);
554 return new;
700 PLAN *new; /* node returned */
716 new = palloc(option);
725 new->flags |= F_EXECPLUS;
734 if (new->flags & F_EXECPLUS) {
735 new->e_ppos = new->e_pbnum = cnt - 2;
750 new->e_pnummax = new->flags & F_EXECDIR ? 1 : argmax / 16;
751 argmax -= sizeof(char *) * new->e_pnummax;
754 new->e_psizemax = argmax;
755 new->e_pbsize = 0;
756 cnt += new->e_pnummax + 1;
757 new->e_next = lastexecplus;
758 lastexecplus = new;
760 if ((new->e_argv = malloc(cnt * sizeof(char *))) == NULL)
762 if ((new->e_orig = malloc(cnt * sizeof(char *))) == NULL)
764 if ((new->e_len = malloc(cnt * sizeof(int))) == NULL)
768 new->e_orig[cnt] = *argv;
769 if (new->flags & F_EXECPLUS)
770 new->e_pbsize += strlen(*argv) + 1;
772 if (!(new->flags & F_EXECPLUS) && p[0] == '{' &&
774 if ((new->e_argv[cnt] =
777 new->e_len[cnt] = MAXPATHLEN;
781 new->e_argv[cnt] = *argv;
782 new->e_len[cnt] = 0;
785 if (new->flags & F_EXECPLUS) {
786 new->e_psize = new->e_pbsize;
788 for (i = 0; i < new->e_pnummax; i++) {
789 new->e_argv[cnt] = NULL;
790 new->e_len[cnt] = 0;
796 new->e_argv[cnt] = new->e_orig[cnt] = NULL;
799 return new;
837 PLAN *new;
843 new = palloc(option);
846 new->flags |= F_ATLEAST;
849 new->flags |= F_ANY;
855 new->fl_flags = flags;
856 new->fl_notflags = notflags;
857 return new;
952 PLAN *new;
957 new = palloc(option);
961 new->flags |= F_MTFLAG;
962 new->mt_data = MNT_LOCAL;
963 return new;
968 new->flags |= F_MTFLAG;
969 new->mt_data = MNT_RDONLY;
970 return new;
975 new->flags |= F_MTTYPE;
976 new->c_data = fsname;
977 return new;
998 PLAN *new;
1005 new = palloc(option);
1014 gid = find_parsenum(new, option->name, cp, NULL);
1018 new->g_data = gid;
1019 return new;
1056 PLAN *new;
1061 new = palloc(option);
1062 new->i_data = find_parsenum(new, option->name, inum_str, NULL);
1063 return new;
1077 PLAN *new;
1084 new = palloc(option);
1091 new->i_data = sb.st_ino;
1092 return new;
1110 PLAN *new;
1115 new = palloc(option);
1116 new->l_data = (nlink_t)find_parsenum(new, option->name, nlinks, NULL);
1117 return new;
1180 PLAN *new;
1183 new = palloc(option);
1184 new->c_data = pattern;
1185 return new;
1219 PLAN *new;
1226 new = palloc(option);
1229 new->t_data.tv_sec = get_date(fn_or_tspec);
1230 if (new->t_data.tv_sec == (time_t) -1)
1233 new->t_data.tv_nsec = 999999999;
1242 new->t_data = sb.st_ctim;
1244 new->t_data = sb.st_atim;
1247 new->t_data = sb.st_birthtim;
1250 new->t_data = sb.st_mtim;
1252 return new;
1337 PLAN *new;
1343 new = palloc(option);
1346 new->flags |= F_ATLEAST;
1349 new->flags |= F_ANY;
1356 new->m_data = getmode(set, 0);
1358 return new;
1455 PLAN *new;
1474 new = palloc(option);
1475 new->re_data = pre;
1477 return new;
1513 PLAN *new;
1520 new = palloc(option);
1522 new->o_data = find_parsenum(new, option->name, size_str, &endch);
1550 if (new->o_data > QUAD_MAX / scale)
1553 new->o_data *= scale;
1555 return new;
1603 PLAN *new;
1642 new = palloc(option);
1643 new->m_data = mask;
1644 return new;
1664 PLAN *new;
1671 new = palloc(option);
1680 uid = find_parsenum(new, option->name, cp, NULL);
1684 new->u_data = uid;
1685 return new;