Lines Matching full: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()
885 PLAN *new; in c_fprint() local
890 new = palloc(option); in c_fprint()
892 new->fprint_file = fopen(fn, "w"); in c_fprint()
893 if (new->fprint_file == NULL) in c_fprint()
896 return (new); in c_fprint()
988 PLAN *new; in c_fstype() local
993 new = palloc(option); in c_fstype()
997 new->flags |= F_MTFLAG; in c_fstype()
998 new->mt_data = MNT_LOCAL; in c_fstype()
999 return new; in c_fstype()
1004 new->flags |= F_MTFLAG; in c_fstype()
1005 new->mt_data = MNT_RDONLY; in c_fstype()
1006 return new; in c_fstype()
1011 new->flags |= F_MTTYPE; in c_fstype()
1012 new->c_data = fsname; in c_fstype()
1013 return new; in c_fstype()
1034 PLAN *new; in c_group() local
1041 new = palloc(option); in c_group()
1050 gid = find_parsenum(new, option->name, cp, NULL); in c_group()
1054 new->g_data = gid; in c_group()
1055 return new; in c_group()
1092 PLAN *new; in c_inum() local
1097 new = palloc(option); in c_inum()
1098 new->i_data = find_parsenum(new, option->name, inum_str, NULL); in c_inum()
1099 return new; in c_inum()
1113 PLAN *new; in c_samefile() local
1120 new = palloc(option); in c_samefile()
1127 new->i_data = sb.st_ino; in c_samefile()
1128 return new; in c_samefile()
1146 PLAN *new; in c_links() local
1151 new = palloc(option); in c_links()
1152 new->l_data = (nlink_t)find_parsenum(new, option->name, nlinks, NULL); in c_links()
1153 return new; in c_links()
1216 PLAN *new; in c_name() local
1219 new = palloc(option); in c_name()
1220 new->c_data = pattern; in c_name()
1221 return new; in c_name()
1255 PLAN *new; in c_newer() local
1262 new = palloc(option); in c_newer()
1265 new->t_data.tv_sec = get_date(fn_or_tspec); in c_newer()
1266 if (new->t_data.tv_sec == (time_t) -1) in c_newer()
1269 new->t_data.tv_nsec = 999999999; in c_newer()
1278 new->t_data = sb.st_ctim; in c_newer()
1280 new->t_data = sb.st_atim; in c_newer()
1283 new->t_data = sb.st_birthtim; in c_newer()
1286 new->t_data = sb.st_mtim; in c_newer()
1288 return new; in c_newer()
1373 PLAN *new; in c_perm() local
1379 new = palloc(option); in c_perm()
1382 new->flags |= F_ATLEAST; in c_perm()
1385 new->flags |= F_ANY; in c_perm()
1392 new->m_data = getmode(set, 0); in c_perm()
1394 return new; in c_perm()
1450 PLAN *new; in c_printf() local
1459 new = palloc(option); in c_printf()
1460 new->c_data = nextarg(option, argvp); in c_printf()
1462 return (new); in c_printf()
1522 PLAN *new; in c_regex() local
1541 new = palloc(option); in c_regex()
1542 new->re_data = pre; in c_regex()
1544 return new; in c_regex()
1580 PLAN *new; in c_size() local
1587 new = palloc(option); in c_size()
1589 new->o_data = find_parsenum(new, option->name, size_str, &endch); in c_size()
1617 if (new->o_data > QUAD_MAX / scale) in c_size()
1620 new->o_data *= scale; in c_size()
1622 return new; in c_size()
1670 PLAN *new; in c_type() local
1709 new = palloc(option); in c_type()
1710 new->m_data = mask; in c_type()
1711 return new; in c_type()
1731 PLAN *new; in c_user() local
1738 new = palloc(option); in c_user()
1747 uid = find_parsenum(new, option->name, cp, NULL); in c_user()
1751 new->u_data = uid; in c_user()
1752 return new; in c_user()