tag | line | file | source code |
i_mode | 88 | fs/exec.c | if (!S_ISREG(inode->i_mode)) |
i_mode | 196 | fs/exec.c | if (!inode->i_sb || !S_ISREG(inode->i_mode) || !permission(inode,MAY_READ)) { |
i_mode | 445 | fs/exec.c | if (!S_ISREG(inode->i_mode)) { /* must be regular file */ |
i_mode | 457 | fs/exec.c | i = inode->i_mode; |
i_mode | 477 | fs/exec.c | !((inode->i_mode & 0111) && suser())) { |
i_mode | 71 | fs/ext/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 85 | fs/ext/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 86 | fs/ext/file.c | printk("ext_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 203 | fs/ext/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 204 | fs/ext/file.c | printk("ext_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 286 | fs/ext/freelists.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
i_mode | 355 | fs/ext/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 362 | fs/ext/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 368 | fs/ext/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 370 | fs/ext/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 372 | fs/ext/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 374 | fs/ext/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 376 | fs/ext/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 378 | fs/ext/inode.c | else if (S_ISFIFO(inode->i_mode)) { |
i_mode | 399 | fs/ext/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 405 | fs/ext/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 167 | fs/ext/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 322 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 360 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 362 | fs/ext/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 364 | fs/ext/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 366 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 367 | fs/ext/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 369 | fs/ext/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 371 | fs/ext/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 373 | fs/ext/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 375 | fs/ext/namei.c | else if (S_ISFIFO(inode->i_mode)) { |
i_mode | 448 | fs/ext/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 449 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 450 | fs/ext/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 544 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 551 | fs/ext/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 597 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 601 | fs/ext/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 635 | fs/ext/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 683 | fs/ext/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 791 | fs/ext/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 807 | fs/ext/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 812 | fs/ext/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 816 | fs/ext/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 63 | fs/ext/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 95 | fs/ext/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 228 | fs/ext/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 229 | fs/ext/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 85 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
i_mode | 194 | fs/inode.c | inode->i_ino,inode->i_mode); |
i_mode | 84 | fs/ioctl.c | if (filp->f_inode && S_ISREG(filp->f_inode->i_mode)) |
i_mode | 75 | fs/isofs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 126 | fs/isofs/file.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { |
i_mode | 127 | fs/isofs/file.c | printk("isofs_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 293 | fs/isofs/inode.c | inode->i_mode = 0444; /* Everybody gets to read the file. */ |
i_mode | 297 | fs/isofs/inode.c | inode->i_mode = 0555 | S_IFDIR; |
i_mode | 301 | fs/isofs/inode.c | inode->i_mode = 0444; /* Everybody gets to read the file. */ |
i_mode | 303 | fs/isofs/inode.c | inode->i_mode |= S_IFREG; |
i_mode | 309 | fs/isofs/inode.c | inode->i_mode |= 0111; /* execute permission */ |
i_mode | 408 | fs/isofs/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 410 | fs/isofs/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 412 | fs/isofs/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 414 | fs/isofs/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 416 | fs/isofs/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 418 | fs/isofs/inode.c | else if (S_ISFIFO(inode->i_mode)) { |
i_mode | 206 | fs/isofs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 274 | fs/isofs/rock.c | inode->i_mode = isonum_733(rr->u.PX.mode); |
i_mode | 332 | fs/isofs/rock.c | inode->i_mode = reloc->i_mode; |
i_mode | 60 | fs/isofs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 89 | fs/isofs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 192 | fs/locks.c | if (!S_ISREG(filp->f_inode->i_mode)) |
i_mode | 214 | fs/minix/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
i_mode | 64 | fs/minix/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 79 | fs/minix/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 80 | fs/minix/file.c | printk("minix_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 197 | fs/minix/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 198 | fs/minix/file.c | printk("minix_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 313 | fs/minix/inode.c | inode->i_mode = 0; |
i_mode | 329 | fs/minix/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 336 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 341 | fs/minix/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 343 | fs/minix/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 345 | fs/minix/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 347 | fs/minix/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 349 | fs/minix/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 351 | fs/minix/inode.c | else if (S_ISFIFO(inode->i_mode)) { |
i_mode | 380 | fs/minix/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 386 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 112 | fs/minix/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 214 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 252 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 254 | fs/minix/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 256 | fs/minix/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 258 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 259 | fs/minix/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 261 | fs/minix/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 263 | fs/minix/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 265 | fs/minix/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 267 | fs/minix/namei.c | else if (S_ISFIFO(inode->i_mode)) { |
i_mode | 336 | fs/minix/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 337 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 338 | fs/minix/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 415 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 422 | fs/minix/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 474 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 478 | fs/minix/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 512 | fs/minix/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 560 | fs/minix/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 666 | fs/minix/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 682 | fs/minix/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 687 | fs/minix/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 691 | fs/minix/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 57 | fs/minix/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 89 | fs/minix/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 171 | fs/minix/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 172 | fs/minix/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 63 | fs/msdos/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) return -EBADF; |
i_mode | 243 | fs/msdos/fat.c | if (inode->i_ino == MSDOS_ROOT_INO || (S_ISDIR(inode->i_mode) && |
i_mode | 93 | fs/msdos/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 94 | fs/msdos/file.c | printk("msdos_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 141 | fs/msdos/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 142 | fs/msdos/file.c | printk("msdos_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 247 | fs/msdos/inode.c | inode->i_mode = (0777 & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
i_mode | 269 | fs/msdos/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr,0777 & |
i_mode | 292 | fs/msdos/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr,0666 & |
i_mode | 325 | fs/msdos/inode.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 333 | fs/msdos/inode.c | raw_entry->attr |= MSDOS_MKATTR(inode->i_mode) | |
i_mode | 167 | fs/msdos/misc.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 394 | fs/msdos/misc.c | if (!S_ISDIR(dir->i_mode)) panic("Non-directory fed to m_p_i"); |
i_mode | 121 | fs/msdos/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 314 | fs/msdos/namei.c | if (!S_ISDIR(inode->i_mode)) goto rmdir_done; |
i_mode | 359 | fs/msdos/namei.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 397 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
i_mode | 464 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
i_mode | 503 | fs/msdos/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 37 | fs/namei.c | int mode = inode->i_mode; |
i_mode | 272 | fs/namei.c | if (S_ISDIR(inode->i_mode) && (flag & 2)) { |
i_mode | 280 | fs/namei.c | if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { |
i_mode | 96 | fs/nfs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) { |
i_mode | 294 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 336 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 373 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 407 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 434 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 457 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 485 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 527 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 556 | fs/nfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
i_mode | 562 | fs/nfs/dir.c | if (!new_dir || !S_ISDIR(new_dir->i_mode)) { |
i_mode | 607 | fs/nfs/dir.c | was_empty = inode->i_mode == 0; |
i_mode | 608 | fs/nfs/dir.c | inode->i_mode = fattr->mode; |
i_mode | 614 | fs/nfs/dir.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 623 | fs/nfs/dir.c | if (S_ISREG(inode->i_mode)) |
i_mode | 625 | fs/nfs/dir.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 627 | fs/nfs/dir.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 629 | fs/nfs/dir.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 631 | fs/nfs/dir.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 633 | fs/nfs/dir.c | else if (S_ISFIFO(inode->i_mode)) { |
i_mode | 67 | fs/nfs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 69 | fs/nfs/file.c | inode->i_mode); |
i_mode | 118 | fs/nfs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 120 | fs/nfs/file.c | inode->i_mode); |
i_mode | 76 | fs/nfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
i_mode | 190 | fs/nfs/inode.c | sattr.mode = inode->i_mode; |
i_mode | 200 | fs/nfs/inode.c | sattr.size = S_ISREG(inode->i_mode) ? inode->i_size : -1; |
i_mode | 58 | fs/nfs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 94 | fs/nfs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 79 | fs/open.c | if (S_ISDIR(inode->i_mode) || !permission(inode,MAY_WRITE)) { |
i_mode | 106 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & 2)) |
i_mode | 164 | fs/open.c | int res, i_mode; |
i_mode | 170 | fs/open.c | i_mode = res = inode->i_mode & 0777; |
i_mode | 185 | fs/open.c | (!(mode & 1) || (i_mode & 0111))) |
i_mode | 198 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 219 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 245 | fs/open.c | inode->i_mode = (mode & 07777) | (inode->i_mode & ~07777); |
i_mode | 247 | fs/open.c | inode->i_mode &= ~S_ISGID; |
i_mode | 269 | fs/open.c | inode->i_mode = (mode & 07777) | (inode->i_mode & ~07777); |
i_mode | 271 | fs/open.c | inode->i_mode &= ~S_ISGID; |
i_mode | 427 | fs/open.c | if (inode && S_ISREG(inode->i_mode)) |
i_mode | 513 | fs/open.c | if (!S_ISCHR(inode->i_mode)) |
i_mode | 98 | fs/proc/base.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 137 | fs/proc/base.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 68 | fs/proc/fd.c | if (!pid || ino > 1 || !S_ISDIR(dir->i_mode)) { |
i_mode | 127 | fs/proc/fd.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 77 | fs/proc/inode.c | inode->i_mode = 0; |
i_mode | 93 | fs/proc/inode.c | inode->i_mode = S_IFDIR | 0555; |
i_mode | 102 | fs/proc/inode.c | inode->i_mode = S_IFREG | 0444; |
i_mode | 114 | fs/proc/inode.c | inode->i_mode = S_IFDIR | 0555; |
i_mode | 119 | fs/proc/inode.c | inode->i_mode = S_IFCHR | 0600; |
i_mode | 127 | fs/proc/inode.c | inode->i_mode = S_IFLNK | 0700; |
i_mode | 131 | fs/proc/inode.c | inode->i_mode = S_IFDIR | 0500; |
i_mode | 139 | fs/proc/inode.c | inode->i_mode = S_IFREG | 0444; |
i_mode | 150 | fs/proc/inode.c | inode->i_mode = S_IFLNK | 0700; |
i_mode | 158 | fs/proc/inode.c | inode->i_mode = S_IFLNK | 0700; |
i_mode | 74 | fs/proc/root.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 129 | fs/proc/root.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 73 | fs/select.c | if (S_ISREG(inode->i_mode)) |
i_mode | 23 | fs/stat.c | tmp.st_mode = inode->i_mode; |
i_mode | 43 | fs/stat.c | tmp.st_mode = inode->i_mode; |
i_mode | 234 | fs/super.c | if (S_ISBLK(inode->i_mode)) { |
i_mode | 240 | fs/super.c | } else if (S_ISDIR(inode->i_mode)) { |
i_mode | 295 | fs/super.c | if (!S_ISDIR(dir_i->i_mode)) { |
i_mode | 384 | fs/super.c | if (!S_ISBLK(inode->i_mode)) { |
i_mode | 16 | include/linux/ext_fs.h | unsigned short i_mode; |
i_mode | 167 | include/linux/fs.h | umode_t i_mode; |
i_mode | 27 | include/linux/minix_fs.h | unsigned short i_mode; |
i_mode | 43 | include/linux/minix_fs.h | unsigned short i_mode; |
i_mode | 170 | mm/mmap.c | if (S_ISCHR(inode->i_mode)) |
i_mode | 558 | mm/swap.c | if (!S_ISBLK(inode->i_mode)) |
i_mode | 624 | mm/swap.c | if (S_ISBLK(swap_inode->i_mode)) { |
i_mode | 640 | mm/swap.c | } else if (S_ISREG(swap_inode->i_mode)) |
i_mode | 176 | net/socket.c | SOCK_INODE(sock)->i_mode = S_IFSOCK; |