Lines Matching refs:try
26 static int do_rm(struct dirtree *try)
28 int fd=dirtree_parentfd(try), dir=S_ISDIR(try->st.st_mode), or=0, using=0;
31 if (isdotdot(try->name)) return 0;
39 && (!S_ISLNK(try->st.st_mode) && faccessat(fd, try->name, W_OK, 0))) or++;
44 if (!(dir && try->again) && ((or && isatty(0)) || FLAG(i))) {
45 char *s = dirtree_path(try, 0);
57 if (faccessat(fd, try->name, R_OK, 0)) {
58 if (FLAG(f)) wfchmodat(fd, try->name, 0700);
61 if (!try->again) return DIRTREE_COMEAGAIN;
62 if (try->symlink) goto skip;
64 char *s = dirtree_path(try, 0);
75 if (!unlinkat(fd, try->name, using)) {
77 char *s = dirtree_path(try, 0);
82 if (!dir || try->symlink != (char *)2) perror_msg_raw(try->name);
84 if (try->parent) try->parent->symlink = (char *)2;