tag | line | file | source code |
i_mode | 87 | fs/exec.c | if (!S_ISREG(inode->i_mode)) |
i_mode | 183 | fs/exec.c | if (!inode->i_sb || !S_ISREG(inode->i_mode) || !permission(inode,MAY_READ)) { |
i_mode | 416 | fs/exec.c | if (!S_ISREG(inode->i_mode)) { /* must be regular file */ |
i_mode | 428 | fs/exec.c | i = inode->i_mode; |
i_mode | 448 | fs/exec.c | !((inode->i_mode & 0111) && suser())) { |
i_mode | 63 | fs/ext/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 87 | fs/ext/file.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { |
i_mode | 88 | fs/ext/file.c | printk("ext_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 168 | fs/ext/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 169 | fs/ext/file.c | printk("ext_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 360 | fs/ext/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 367 | fs/ext/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 373 | fs/ext/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 375 | fs/ext/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 377 | fs/ext/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 379 | fs/ext/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 381 | fs/ext/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 383 | fs/ext/inode.c | else if (S_ISFIFO(inode->i_mode)) { |
i_mode | 404 | fs/ext/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 410 | fs/ext/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 154 | fs/ext/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 300 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 338 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 340 | fs/ext/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 342 | fs/ext/namei.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 344 | fs/ext/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 346 | fs/ext/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 348 | fs/ext/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 350 | fs/ext/namei.c | else if (S_ISFIFO(inode->i_mode)) { |
i_mode | 423 | fs/ext/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 509 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 516 | fs/ext/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 562 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 566 | fs/ext/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 600 | fs/ext/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 648 | fs/ext/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 750 | fs/ext/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 766 | fs/ext/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
i_mode | 770 | fs/ext/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 62 | fs/ext/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 94 | 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 | 116 | fs/inode.c | inode->i_ino,inode->i_mode); |
i_mode | 172 | fs/inode.c | inode_table[i].i_ino,inode_table[i].i_mode); |
i_mode | 54 | fs/ioctl.c | if (filp->f_inode && S_ISREG(filp->f_inode->i_mode)) |
i_mode | 182 | fs/locks.c | if (!S_ISREG(filp->f_inode->i_mode)) |
i_mode | 57 | fs/minix/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 87 | fs/minix/file.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { |
i_mode | 88 | fs/minix/file.c | printk("minix_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 168 | fs/minix/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 169 | fs/minix/file.c | printk("minix_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 319 | fs/minix/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 326 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 332 | fs/minix/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 334 | fs/minix/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 336 | fs/minix/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 338 | fs/minix/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 340 | fs/minix/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 342 | fs/minix/inode.c | else if (S_ISFIFO(inode->i_mode)) { |
i_mode | 364 | fs/minix/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 370 | 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 | 209 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 247 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 249 | fs/minix/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 251 | fs/minix/namei.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 253 | fs/minix/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 255 | fs/minix/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 257 | fs/minix/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 259 | fs/minix/namei.c | else if (S_ISFIFO(inode->i_mode)) { |
i_mode | 324 | fs/minix/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 401 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 408 | fs/minix/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 452 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 456 | fs/minix/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 488 | fs/minix/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 536 | fs/minix/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 636 | fs/minix/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 652 | fs/minix/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
i_mode | 656 | fs/minix/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 56 | fs/minix/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 88 | 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 | 75 | 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 | 90 | fs/msdos/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 91 | fs/msdos/file.c | printk("msdos_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 138 | fs/msdos/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 139 | fs/msdos/file.c | printk("msdos_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 215 | fs/msdos/inode.c | inode->i_mode = (0777 & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
i_mode | 237 | fs/msdos/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr,0777 & |
i_mode | 260 | fs/msdos/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr,0666 & |
i_mode | 293 | fs/msdos/inode.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 301 | 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 | 313 | fs/msdos/namei.c | if (!S_ISDIR(inode->i_mode)) goto rmdir_done; |
i_mode | 358 | fs/msdos/namei.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 396 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
i_mode | 463 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
i_mode | 502 | fs/msdos/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 37 | fs/namei.c | int mode = inode->i_mode; |
i_mode | 259 | fs/namei.c | if (S_ISDIR(inode->i_mode) && (flag & 2)) { |
i_mode | 267 | fs/namei.c | if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { |
i_mode | 77 | fs/open.c | if (S_ISDIR(inode->i_mode) || !permission(inode,MAY_WRITE)) { |
i_mode | 103 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & 2)) |
i_mode | 159 | fs/open.c | int res, i_mode; |
i_mode | 165 | fs/open.c | i_mode = res = inode->i_mode & 0777; |
i_mode | 180 | fs/open.c | (!(mode & 1) || (i_mode & 0111))) |
i_mode | 193 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 214 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 240 | fs/open.c | inode->i_mode = (mode & 07777) | (inode->i_mode & ~07777); |
i_mode | 261 | fs/open.c | inode->i_mode = (mode & 07777) | (inode->i_mode & ~07777); |
i_mode | 394 | fs/open.c | if (S_ISREG(inode->i_mode)) |
i_mode | 454 | fs/open.c | if (!S_ISCHR(filep->f_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 | 64 | fs/proc/fd.c | if (!pid || ino > 1 || !S_ISDIR(dir->i_mode)) { |
i_mode | 124 | fs/proc/fd.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 85 | fs/proc/inode.c | inode->i_mode = 0; |
i_mode | 101 | fs/proc/inode.c | inode->i_mode = S_IFDIR | 0555; |
i_mode | 116 | fs/proc/inode.c | inode->i_mode = S_IFDIR | 0500; |
i_mode | 121 | fs/proc/inode.c | inode->i_mode = S_IFCHR | 0600; |
i_mode | 129 | fs/proc/inode.c | inode->i_mode = S_IFLNK | 0700; |
i_mode | 133 | fs/proc/inode.c | inode->i_mode = S_IFDIR | 0500; |
i_mode | 145 | fs/proc/inode.c | inode->i_mode = S_IFLNK | 0700; |
i_mode | 153 | fs/proc/inode.c | inode->i_mode = S_IFLNK | 0700; |
i_mode | 59 | fs/proc/root.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 106 | fs/proc/root.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 52 | fs/select.c | if (inode && S_ISREG(inode->i_mode)) |
i_mode | 61 | fs/select.c | if (inode && S_ISREG(inode->i_mode)) |
i_mode | 70 | fs/select.c | if (inode && 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 | 190 | fs/super.c | if (!S_ISBLK(inode->i_mode)) { |
i_mode | 226 | fs/super.c | if (!S_ISDIR(dir_i->i_mode)) { |
i_mode | 279 | fs/super.c | if (!S_ISBLK(inode->i_mode)) |
i_mode | 16 | include/linux/ext_fs.h | unsigned short i_mode; |
i_mode | 114 | include/linux/fs.h | umode_t i_mode; |
i_mode | 19 | include/linux/minix_fs.h | unsigned short i_mode; |
i_mode | 169 | mm/mmap.c | if (S_ISCHR(inode->i_mode)) |
i_mode | 553 | mm/swap.c | if (!S_ISBLK(inode->i_mode)) |
i_mode | 619 | mm/swap.c | if (S_ISBLK(swap_inode->i_mode)) { |
i_mode | 635 | mm/swap.c | } else if (S_ISREG(swap_inode->i_mode)) |
i_mode | 175 | net/socket.c | SOCK_INODE(sock)->i_mode = S_IFSOCK; |