Lines Matching refs:new

90 	PLAN *new;  in palloc()  local
92 if ((new = malloc(sizeof(PLAN))) == NULL) in palloc()
94 new->execute = option->execute; in palloc()
95 new->flags = option->flags; in palloc()
96 new->next = NULL; in palloc()
97 return new; in palloc()
275 PLAN *new; in c_Xmin() local
280 new = palloc(option); in c_Xmin()
281 new->t_data.tv_sec = find_parsenum(new, option->name, nmins, NULL); in c_Xmin()
282 new->t_data.tv_nsec = 0; in c_Xmin()
283 TIME_CORRECT(new); in c_Xmin()
284 return new; in c_Xmin()
324 PLAN *new; in c_Xtime() local
329 new = palloc(option); in c_Xtime()
330 new->t_data.tv_sec = find_parsetime(new, option->name, value); in c_Xtime()
331 new->t_data.tv_nsec = 0; in c_Xtime()
332 if (!(new->flags & F_EXACTTIME)) in c_Xtime()
333 TIME_CORRECT(new); in c_Xtime()
334 return new; in c_Xtime()
350 PLAN *new; in c_mXXdepth() local
357 new = palloc(option); in c_mXXdepth()
359 maxdepth = find_parsenum(new, option->name, dstr, NULL); in c_mXXdepth()
361 mindepth = find_parsenum(new, option->name, dstr, NULL); in c_mXXdepth()
362 return new; in c_mXXdepth()
526 PLAN *new; in c_depth() local
529 new = palloc(option); in c_depth()
532 if (str && !(new->flags & F_DEPTH)) { in c_depth()
540 new->flags |= F_DEPTH; in c_depth()
543 if (new->flags & F_DEPTH) { /* -depth n */ in c_depth()
547 new->d_data = find_parsenum(new, option->name, ndepth, NULL); in c_depth()
552 return new; in c_depth()
698 PLAN *new; /* node returned */ in c_exec() local
714 new = palloc(option); in c_exec()
723 new->flags |= F_EXECPLUS; in c_exec()
732 if (new->flags & F_EXECPLUS) { in c_exec()
733 new->e_ppos = new->e_pbnum = cnt - 2; in c_exec()
748 new->e_pnummax = new->flags & F_EXECDIR ? 1 : argmax / 16; in c_exec()
749 argmax -= sizeof(char *) * new->e_pnummax; in c_exec()
752 new->e_psizemax = argmax; in c_exec()
753 new->e_pbsize = 0; in c_exec()
754 cnt += new->e_pnummax + 1; in c_exec()
755 new->e_next = lastexecplus; in c_exec()
756 lastexecplus = new; in c_exec()
758 if ((new->e_argv = malloc(cnt * sizeof(char *))) == NULL) in c_exec()
760 if ((new->e_orig = malloc(cnt * sizeof(char *))) == NULL) in c_exec()
762 if ((new->e_len = malloc(cnt * sizeof(int))) == NULL) in c_exec()
766 new->e_orig[cnt] = *argv; in c_exec()
767 if (new->flags & F_EXECPLUS) in c_exec()
768 new->e_pbsize += strlen(*argv) + 1; in c_exec()
770 if (!(new->flags & F_EXECPLUS) && p[0] == '{' && in c_exec()
772 if ((new->e_argv[cnt] = in c_exec()
775 new->e_len[cnt] = MAXPATHLEN; in c_exec()
779 new->e_argv[cnt] = *argv; in c_exec()
780 new->e_len[cnt] = 0; in c_exec()
783 if (new->flags & F_EXECPLUS) { in c_exec()
784 new->e_psize = new->e_pbsize; in c_exec()
786 for (i = 0; i < new->e_pnummax; i++) { in c_exec()
787 new->e_argv[cnt] = NULL; in c_exec()
788 new->e_len[cnt] = 0; in c_exec()
794 new->e_argv[cnt] = new->e_orig[cnt] = NULL; in c_exec()
797 return new; in c_exec()
835 PLAN *new; in c_flags() local
841 new = palloc(option); in c_flags()
844 new->flags |= F_ATLEAST; in c_flags()
847 new->flags |= F_ANY; in c_flags()
853 new->fl_flags = flags; in c_flags()
854 new->fl_notflags = notflags; in c_flags()
855 return new; in c_flags()
950 PLAN *new; in c_fstype() local
955 new = palloc(option); in c_fstype()
959 new->flags |= F_MTFLAG; in c_fstype()
960 new->mt_data = MNT_LOCAL; in c_fstype()
961 return new; in c_fstype()
966 new->flags |= F_MTFLAG; in c_fstype()
967 new->mt_data = MNT_RDONLY; in c_fstype()
968 return new; in c_fstype()
973 new->flags |= F_MTTYPE; in c_fstype()
974 new->c_data = fsname; in c_fstype()
975 return new; in c_fstype()
996 PLAN *new; in c_group() local
1003 new = palloc(option); in c_group()
1012 gid = find_parsenum(new, option->name, cp, NULL); in c_group()
1016 new->g_data = gid; in c_group()
1017 return new; in c_group()
1054 PLAN *new; in c_inum() local
1059 new = palloc(option); in c_inum()
1060 new->i_data = find_parsenum(new, option->name, inum_str, NULL); in c_inum()
1061 return new; in c_inum()
1075 PLAN *new; in c_samefile() local
1082 new = palloc(option); in c_samefile()
1089 new->i_data = sb.st_ino; in c_samefile()
1090 return new; in c_samefile()
1108 PLAN *new; in c_links() local
1113 new = palloc(option); in c_links()
1114 new->l_data = (nlink_t)find_parsenum(new, option->name, nlinks, NULL); in c_links()
1115 return new; in c_links()
1178 PLAN *new; in c_name() local
1181 new = palloc(option); in c_name()
1182 new->c_data = pattern; in c_name()
1183 return new; in c_name()
1217 PLAN *new; in c_newer() local
1224 new = palloc(option); in c_newer()
1227 new->t_data.tv_sec = get_date(fn_or_tspec); in c_newer()
1228 if (new->t_data.tv_sec == (time_t) -1) in c_newer()
1231 new->t_data.tv_nsec = 999999999; in c_newer()
1240 new->t_data = sb.st_ctim; in c_newer()
1242 new->t_data = sb.st_atim; in c_newer()
1245 new->t_data = sb.st_birthtim; in c_newer()
1248 new->t_data = sb.st_mtim; in c_newer()
1250 return new; in c_newer()
1335 PLAN *new; in c_perm() local
1341 new = palloc(option); in c_perm()
1344 new->flags |= F_ATLEAST; in c_perm()
1347 new->flags |= F_ANY; in c_perm()
1354 new->m_data = getmode(set, 0); in c_perm()
1356 return new; in c_perm()
1453 PLAN *new; in c_regex() local
1472 new = palloc(option); in c_regex()
1473 new->re_data = pre; in c_regex()
1475 return new; in c_regex()
1511 PLAN *new; in c_size() local
1518 new = palloc(option); in c_size()
1520 new->o_data = find_parsenum(new, option->name, size_str, &endch); in c_size()
1548 if (new->o_data > QUAD_MAX / scale) in c_size()
1551 new->o_data *= scale; in c_size()
1553 return new; in c_size()
1601 PLAN *new; in c_type() local
1640 new = palloc(option); in c_type()
1641 new->m_data = mask; in c_type()
1642 return new; in c_type()
1662 PLAN *new; in c_user() local
1669 new = palloc(option); in c_user()
1678 uid = find_parsenum(new, option->name, cp, NULL); in c_user()
1682 new->u_data = uid; in c_user()
1683 return new; in c_user()