Home | History | Annotate | Download | only in posix

Lines Matching defs:st

115   if (S_ISDIR(try->st.st_mode) && try->again) {
121 if (S_ISLNK(try->st.st_mode) && (flags & FLAG_d)) flags |= FLAG_r;
125 if ((TT.top.st_dev == try->st.st_dev && TT.top.st_ino == try->st.st_ino
127 || (!fstatat(cfd, catch, &cst, 0) && cst.st_dev == try->st.st_dev
128 && cst.st_ino == try->st.st_ino))
141 if (S_ISDIR(try->st.st_dev)) {
170 if (S_ISDIR(try->st.st_mode)) {
186 if (!mkdirat(cfd, catch, try->st.st_mode | 0200) || errno == EEXIST)
225 } else if (!S_ISREG(try->st.st_mode)
231 if (S_ISLNK(try->st.st_mode)
234 : !mknodat(cfd, catch, try->st.st_mode, try->st.st_rdev))
249 fdout = openat(cfd, catch, O_RDWR|O_CREAT|O_TRUNC, try->st.st_mode);
267 times[0] = try->st.st_atim;
268 times[1] = try->st.st_mtim;
272 rc = fchownat(cfd, catch, try->st.st_uid, try->st.st_gid,
274 else rc = fchown(fdout, try->st.st_uid, try->st.st_gid);
286 fchmod(fdout, try->st.st_mode);
293 if (unlinkat(tfd, try->name, S_ISDIR(try->st.st_mode) ? AT_REMOVEDIR :0))
325 struct stat st;
329 if (!stat(TT.destname, &st)
330 && ((toys.optflags & FLAG_i) || !(st.st_mode & 0222)))
363 if (TT.mode) try->st.st_mode = string_to_mode(TT.mode, try->st.st_mode);
364 if (TT.group) try->st.st_gid = TT.gid;
365 if (TT.user) try->st.st_uid = TT.uid;