Lines Matching refs:new

85 	PLAN *new;  in palloc()  local
87 if ((new = malloc(sizeof(PLAN))) == NULL) in palloc()
89 new->execute = option->execute; in palloc()
90 new->flags = option->flags; in palloc()
91 new->next = NULL; in palloc()
92 return new; in palloc()
270 PLAN *new; in c_Xmin() local
275 new = palloc(option); in c_Xmin()
276 new->t_data.tv_sec = find_parsenum(new, option->name, nmins, NULL); in c_Xmin()
277 new->t_data.tv_nsec = 0; in c_Xmin()
278 TIME_CORRECT(new); in c_Xmin()
279 return new; in c_Xmin()
319 PLAN *new; in c_Xtime() local
324 new = palloc(option); in c_Xtime()
325 new->t_data.tv_sec = find_parsetime(new, option->name, value); in c_Xtime()
326 new->t_data.tv_nsec = 0; in c_Xtime()
327 if (!(new->flags & F_EXACTTIME)) in c_Xtime()
328 TIME_CORRECT(new); in c_Xtime()
329 return new; in c_Xtime()
345 PLAN *new; in c_mXXdepth() local
352 new = palloc(option); in c_mXXdepth()
354 maxdepth = find_parsenum(new, option->name, dstr, NULL); in c_mXXdepth()
356 mindepth = find_parsenum(new, option->name, dstr, NULL); in c_mXXdepth()
357 return new; in c_mXXdepth()
521 PLAN *new; in c_depth() local
524 new = palloc(option); in c_depth()
527 if (str && !(new->flags & F_DEPTH)) { in c_depth()
535 new->flags |= F_DEPTH; in c_depth()
538 if (new->flags & F_DEPTH) { /* -depth n */ in c_depth()
542 new->d_data = find_parsenum(new, option->name, ndepth, NULL); in c_depth()
547 return new; in c_depth()
693 PLAN *new; /* node returned */ in c_exec() local
709 new = palloc(option); in c_exec()
718 new->flags |= F_EXECPLUS; in c_exec()
727 if (new->flags & F_EXECPLUS) { in c_exec()
728 new->e_ppos = new->e_pbnum = cnt - 2; in c_exec()
743 new->e_pnummax = new->flags & F_EXECDIR ? 1 : argmax / 16; in c_exec()
744 argmax -= sizeof(char *) * new->e_pnummax; in c_exec()
747 new->e_psizemax = argmax; in c_exec()
748 new->e_pbsize = 0; in c_exec()
749 cnt += new->e_pnummax + 1; in c_exec()
750 new->e_next = lastexecplus; in c_exec()
751 lastexecplus = new; in c_exec()
753 if ((new->e_argv = malloc(cnt * sizeof(char *))) == NULL) in c_exec()
755 if ((new->e_orig = malloc(cnt * sizeof(char *))) == NULL) in c_exec()
757 if ((new->e_len = malloc(cnt * sizeof(int))) == NULL) in c_exec()
761 new->e_orig[cnt] = *argv; in c_exec()
762 if (new->flags & F_EXECPLUS) in c_exec()
763 new->e_pbsize += strlen(*argv) + 1; in c_exec()
765 if (!(new->flags & F_EXECPLUS) && p[0] == '{' && in c_exec()
767 if ((new->e_argv[cnt] = in c_exec()
770 new->e_len[cnt] = MAXPATHLEN; in c_exec()
774 new->e_argv[cnt] = *argv; in c_exec()
775 new->e_len[cnt] = 0; in c_exec()
778 if (new->flags & F_EXECPLUS) { in c_exec()
779 new->e_psize = new->e_pbsize; in c_exec()
781 for (i = 0; i < new->e_pnummax; i++) { in c_exec()
782 new->e_argv[cnt] = NULL; in c_exec()
783 new->e_len[cnt] = 0; in c_exec()
789 new->e_argv[cnt] = new->e_orig[cnt] = NULL; in c_exec()
792 return new; in c_exec()
830 PLAN *new; in c_flags() local
836 new = palloc(option); in c_flags()
839 new->flags |= F_ATLEAST; in c_flags()
842 new->flags |= F_ANY; in c_flags()
848 new->fl_flags = flags; in c_flags()
849 new->fl_notflags = notflags; in c_flags()
850 return new; in c_flags()
945 PLAN *new; in c_fstype() local
950 new = palloc(option); in c_fstype()
954 new->flags |= F_MTFLAG; in c_fstype()
955 new->mt_data = MNT_LOCAL; in c_fstype()
956 return new; in c_fstype()
961 new->flags |= F_MTFLAG; in c_fstype()
962 new->mt_data = MNT_RDONLY; in c_fstype()
963 return new; in c_fstype()
968 new->flags |= F_MTTYPE; in c_fstype()
969 new->c_data = fsname; in c_fstype()
970 return new; in c_fstype()
991 PLAN *new; in c_group() local
998 new = palloc(option); in c_group()
1007 gid = find_parsenum(new, option->name, cp, NULL); in c_group()
1011 new->g_data = gid; in c_group()
1012 return new; in c_group()
1049 PLAN *new; in c_inum() local
1054 new = palloc(option); in c_inum()
1055 new->i_data = find_parsenum(new, option->name, inum_str, NULL); in c_inum()
1056 return new; in c_inum()
1070 PLAN *new; in c_samefile() local
1077 new = palloc(option); in c_samefile()
1084 new->i_data = sb.st_ino; in c_samefile()
1085 return new; in c_samefile()
1103 PLAN *new; in c_links() local
1108 new = palloc(option); in c_links()
1109 new->l_data = (nlink_t)find_parsenum(new, option->name, nlinks, NULL); in c_links()
1110 return new; in c_links()
1173 PLAN *new; in c_name() local
1176 new = palloc(option); in c_name()
1177 new->c_data = pattern; in c_name()
1178 return new; in c_name()
1212 PLAN *new; in c_newer() local
1219 new = palloc(option); in c_newer()
1222 new->t_data.tv_sec = get_date(fn_or_tspec); in c_newer()
1223 if (new->t_data.tv_sec == (time_t) -1) in c_newer()
1226 new->t_data.tv_nsec = 999999999; in c_newer()
1235 new->t_data = sb.st_ctim; in c_newer()
1237 new->t_data = sb.st_atim; in c_newer()
1240 new->t_data = sb.st_birthtim; in c_newer()
1243 new->t_data = sb.st_mtim; in c_newer()
1245 return new; in c_newer()
1330 PLAN *new; in c_perm() local
1336 new = palloc(option); in c_perm()
1339 new->flags |= F_ATLEAST; in c_perm()
1342 new->flags |= F_ANY; in c_perm()
1349 new->m_data = getmode(set, 0); in c_perm()
1351 return new; in c_perm()
1448 PLAN *new; in c_regex() local
1467 new = palloc(option); in c_regex()
1468 new->re_data = pre; in c_regex()
1470 return new; in c_regex()
1506 PLAN *new; in c_size() local
1513 new = palloc(option); in c_size()
1515 new->o_data = find_parsenum(new, option->name, size_str, &endch); in c_size()
1543 if (new->o_data > QUAD_MAX / scale) in c_size()
1546 new->o_data *= scale; in c_size()
1548 return new; in c_size()
1596 PLAN *new; in c_type() local
1635 new = palloc(option); in c_type()
1636 new->m_data = mask; in c_type()
1637 return new; in c_type()
1657 PLAN *new; in c_user() local
1664 new = palloc(option); in c_user()
1673 uid = find_parsenum(new, option->name, cp, NULL); in c_user()
1677 new->u_data = uid; in c_user()
1678 return new; in c_user()