Lines Matching refs:st_mode
137 if (S_ISDIR(try->st.st_mode) && try->again) {
143 if (S_ISLNK(try->st.st_mode) && (flags & FLAG_d)) flags |= FLAG_r;
160 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) {
163 if (S_ISDIR(try->st.st_mode)) {
192 if (S_ISDIR(try->st.st_mode)) {
208 if (!mkdirat(cfd, catch, try->st.st_mode | 0200) || errno == EEXIST)
210 if (!fstat(try->extra, &st2) && S_ISDIR(st2.st_mode))
246 } else if (!S_ISREG(try->st.st_mode)
252 if (S_ISLNK(try->st.st_mode)
256 : !mknodat(cfd, catch, try->st.st_mode, try->st.st_rdev))
272 if (S_ISLNK(try->st.st_mode)) fstat(fdin, &try->st);
273 fdout = openat(cfd, catch, O_RDWR|O_CREAT|O_TRUNC, try->st.st_mode);
341 if (TT.pflags & _CP_mode) fchmod(fdout, try->st.st_mode);
346 if (unlinkat(tfd, try->name, S_ISDIR(try->st.st_mode) ? AT_REMOVEDIR :0))
369 int i, destdir = !stat(destname, &TT.top) && S_ISDIR(TT.top.st_mode);
438 if (exists && (FLAG(i) || !(st.st_mode & 0222))) {
480 try->st.st_mode = TT.i.m ? string_to_mode(TT.i.m, try->st.st_mode) : 0755;