Lines Matching refs:st_mode
157 if (!(tolnk && S_ISLNK(sb.st_mode)))
161 fs->st_mode & ~(S_ISUID | S_ISGID));
170 fs->st_mode & ~(S_ISUID | S_ISGID));
185 bool need_copy = S_ISREG(fs->st_mode) || fs->st_size > 0;
198 if (S_ISREG(fs->st_mode) && fs->st_size && fs->st_size <= MMAP_MAX_SIZE) {
282 && fs->st_mode & (S_ISUID | S_ISGID) && fs->st_uid == myuid) {
287 fchmod(to_fd, fs->st_mode & RETAINBITS & ~myumask)) {
332 if (mkfifo(to.p_path, from_stat->st_mode)) {
346 if (mknod(to.p_path, from_stat->st_mode, from_stat->st_rdev)) {
369 islink = S_ISLNK(fs->st_mode);
370 fs->st_mode &= S_ISUID | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO;
384 fs->st_mode &= ~(S_ISUID | S_ISGID);
386 if (fd ? fchmod(fd, fs->st_mode) : lchmod(to.p_path, fs->st_mode)) {
503 if (S_ISLNK(fs->st_mode)) {