Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

linux/stat.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define S_IFMT   00170000
#define S_IFSOCK   0140000
#define S_IFLNK   0120000
#define S_IFREG   0100000
#define S_IFBLK   0060000
#define S_IFDIR   0040000
#define S_IFCHR   0020000
#define S_IFIFO   0010000
#define S_ISUID   0004000
#define S_ISGID   0002000
#define S_ISVTX   0001000
#define S_ISLNK(m)   (((m) & S_IFMT) == S_IFLNK)
#define S_ISREG(m)   (((m) & S_IFMT) == S_IFREG)
#define S_ISDIR(m)   (((m) & S_IFMT) == S_IFDIR)
#define S_ISCHR(m)   (((m) & S_IFMT) == S_IFCHR)
#define S_ISBLK(m)   (((m) & S_IFMT) == S_IFBLK)
#define S_ISFIFO(m)   (((m) & S_IFMT) == S_IFIFO)
#define S_ISSOCK(m)   (((m) & S_IFMT) == S_IFSOCK)
#define S_IRWXU   00700
#define S_IRUSR   00400
#define S_IWUSR   00200
#define S_IXUSR   00100
#define S_IRWXG   00070
#define S_IRGRP   00040
#define S_IWGRP   00020
#define S_IXGRP   00010
#define S_IRWXO   00007
#define S_IROTH   00004
#define S_IWOTH   00002
#define S_IXOTH   00001


Define Documentation

#define S_IFBLK   0060000
 

Definition at line 16 of file linux/stat.h.

Referenced by _ufs_set_de_type_(), add_file_to_blocklist(), efs_read_inode(), get_devname_from_devno(), nfs3_proc_mknod(), nfsd_create(), nfsd_proc_create(), sys_mknod(), and write_bootsect().

#define S_IFCHR   0020000
 

Definition at line 18 of file linux/stat.h.

Referenced by __initfunc(), _ufs_set_de_type_(), capifs_new_ncci(), capifs_read_inode(), devpts_pty_new(), devpts_read_inode(), efs_read_inode(), input_register_minor(), main(), nfs3_proc_mknod(), nfs_proc_mknod(), nfsd_create(), nfsd_proc_create(), osst_attach(), and sys_mknod().

#define S_IFDIR   0040000
 

Definition at line 17 of file linux/stat.h.

Referenced by __initfunc(), _ufs_set_de_type_(), add_node(), adfs_atts2mode(), affs_mkdir(), affs_read_inode(), autofs_read_inode(), capifs_read_inode(), cciss_procinit(), coda_vattr_to_iattr(), comx_mkdir(), create_proc_ide_drives(), create_proc_ide_interfaces(), DAC960_CreateProcEntries(), debug_info_create(), debug_init(), devpts_read_inode(), divert_dev_init(), drm_proc_init(), efs_read_inode(), ext2_mkdir(), fat_fill_inode(), fat_read_root(), fh_verify(), hfs_cap_ifill(), hfs_dbl_ifill(), hfs_nat_ifill(), hpfs_read_inode(), hysdn_procconf_init(), ida_procinit(), init_misc_binfmt(), irda_proc_register(), isofs_read_inode(), megaraid_detect(), minix_mkdir(), ncp_notify_change(), ncp_read_super(), new_bus_inode(), nfs_mkdir(), nfsd3_proc_create(), nfsd3_proc_mkdir(), nfsd3_proc_remove(), nfsd3_proc_rmdir(), nfsd_create(), nfsd_link(), nfsd_lookup(), nfsd_proc_create(), nfsd_proc_init(), nfsd_proc_mkdir(), nfsd_proc_remove(), nfsd_proc_rmdir(), nfsd_readdir(), nfsd_rename(), nfsd_symlink(), nfsd_unlink(), ntfs_read_inode(), nubus_proc_attach_device(), nubus_proc_populate(), openpromfs_lookup(), pci_proc_attach_device(), proc_device_tree_init(), proc_ide_create(), rpc_proc_init(), smb_notify_change(), smb_read_super(), sysv_mkdir(), ufs_mkdir(), UMSDOS_mkdir(), and usbdevfs_read_inode().

#define S_IFIFO   0010000
 

Definition at line 19 of file linux/stat.h.

Referenced by _ufs_set_de_type_(), efs_read_inode(), get_pipe_inode(), nfs3_proc_mknod(), nfsd_create(), nfsd_proc_create(), sys_mknod(), and xdr_decode_fattr().

#define S_IFLNK   0120000
 

Definition at line 14 of file linux/stat.h.

Referenced by _ufs_set_de_type_(), add_node(), adfs_atts2mode(), affs_read_inode(), affs_symlink(), autofs_read_inode(), coda_vattr_to_iattr(), create_proc_ide_drives(), efs_read_inode(), ext2_symlink(), from_coh_imode(), minix_symlink(), ncp_set_attr(), ncp_update_inode2(), nfs_symlink(), nfsd_readlink(), nfsd_symlink(), proc_read_inode(), sysv_symlink(), ufs_symlink(), and UMSDOS_symlink().

#define S_IFMT   00170000
 

Definition at line 12 of file linux/stat.h.

Referenced by _ufs_set_de_type_(), capifs_parse_options(), coda_revalidate_inode(), create_proc_entry(), devpts_parse_options(), efs_read_inode(), encode_fattr(), encode_fattr3(), encode_saved_post_attr(), fat_notify_change(), fh_verify(), ncp_set_attr(), ncp_update_inode2(), nfs3_proc_mknod(), nfs_inode_is_stale(), nfs_proc_mknod(), nfs_refresh_inode(), nfsd3_proc_create(), nfsd_proc_create(), smb_refresh_inode(), sys_mknod(), and xdr_decode_fattr().

#define S_IFREG   0100000
 

Definition at line 15 of file linux/stat.h.

Referenced by __initfunc(), _ufs_set_de_type_(), add_node(), adfs_atts2mode(), affs_read_inode(), bmac_probe(), cciss_procinit(), coda_vattr_to_iattr(), comx_close(), COMX_close(), COMX_init(), comx_mkdir(), comx_open(), COMX_open(), comxlapb_connected(), comxlapb_disconnected(), create_comx_proc_entry(), create_comxlapb_proc_entry(), create_proc_entry(), DAC960_CreateProcEntries(), dasd_proc_init(), debug_register_view(), divert_dev_init(), drm_proc_init(), efs_read_inode(), entry_proc_setup(), fat_fill_inode(), fr_close(), fr_master_init(), fr_open(), fr_slave_init(), hfs_cap_ifill(), hfs_dbl_ifill(), hfs_nat_ifill(), hpfs_read_inode(), hysdn_procconf_init(), hysdn_proclog_init(), ida_procinit(), init_file_inode(), init_misc_binfmt(), ip_auto_config(), isofs_read_inode(), LOCOMX_close(), LOCOMX_init(), LOCOMX_open(), make_bad_inode(), MIXCOM_close(), MIXCOM_init(), MIXCOM_open(), ncp_notify_change(), ncp_read_super(), new_dev_inode(), nfsd3_proc_create(), nfsd_create(), nfsd_proc_create(), nfsd_proc_init(), nfsd_read(), nfsd_setattr(), nfsd_write(), nlm_fopen(), ntfs_read_inode(), nubus_proc_subdir(), open_namei(), openpromfs_create(), openpromfs_lookup(), pci_proc_attach_device(), smb_notify_change(), smb_read_super(), sys_mknod(), tape_init(), umsdos_create_any(), UMSDOS_link(), umsdos_make_emd(), usbdevfs_read_inode(), and usbdevfs_read_super().

#define S_IFSOCK   0140000
 

Definition at line 13 of file linux/stat.h.

Referenced by __initfunc(), _ufs_set_de_type_(), nfs3_proc_mknod(), nfsd_create(), sock_alloc(), sys_mknod(), unix_bind(), and unix_find_other().

#define S_IRGRP   00040
 

Definition at line 38 of file linux/stat.h.

Referenced by __initfunc(), affs_read_inode(), mode_to_prot(), and prot_to_mode().

#define S_IROTH   00004
 

Definition at line 43 of file linux/stat.h.

Referenced by affs_read_inode(), ext2_permission(), mode_to_prot(), prot_to_mode(), standard_permission(), ufs_permission(), and vfs_permission().

#define S_IRUSR   00400
 

Definition at line 33 of file linux/stat.h.

Referenced by __initfunc(), add_file_to_blocklist(), affs_read_inode(), DAC960_CreateProcEntries(), debug_register_view(), fat_notify_change(), get_pipe_inode(), mode_to_prot(), openpromfs_lookup(), proc_read_inode(), prot_to_mode(), and write_bootsect().

#define S_IRWXG   00070
 

Definition at line 37 of file linux/stat.h.

Referenced by adfs_read_super(), ncp_notify_change(), ncp_read_super(), romfs_read_inode(), smb_notify_change(), and smb_read_super().

#define S_IRWXO   00007
 

Definition at line 42 of file linux/stat.h.

Referenced by adfs_read_super(), ext2_permission(), ncp_notify_change(), ncp_read_super(), romfs_read_inode(), smb_notify_change(), smb_read_super(), standard_permission(), sys_access(), ufs_permission(), and vfs_permission().

#define S_IRWXU   00700
 

Definition at line 32 of file linux/stat.h.

Referenced by adfs_read_super(), fat_notify_change(), ncp_notify_change(), ncp_read_super(), smb_notify_change(), and smb_read_super().

#define S_ISBLK m   )     (((m) & S_IFMT) == S_IFBLK)
 

Definition at line 28 of file linux/stat.h.

Referenced by coda_fill_inode(), do_format_dasd(), encode_fattr(), ext2_link(), ext2_mknod(), ext2_read_inode(), ext2_update_inode(), getdev(), isofs_read_inode(), loop_clr_fd(), loop_set_fd(), minix_mknod(), nfs_fill_inode(), nfs_proc_mknod(), nfs_refresh_inode(), open_namei(), romfs_read_inode(), sys_mount(), sys_quotactl(), sys_swapoff(), sys_swapon(), sys_umount(), sysv_mknod(), sysv_read_inode(), sysv_update_inode(), ufs_mknod(), ufs_read_inode(), ufs_update_inode(), umsdos_patch_dentry_inode(), V1_minix_read_inode(), V1_minix_update_inode(), V2_minix_read_inode(), V2_minix_update_inode(), and verify_device().

#define S_ISCHR m   )     (((m) & S_IFMT) == S_IFCHR)
 

Definition at line 27 of file linux/stat.h.

Referenced by coda_fill_inode(), encode_fattr(), ext2_link(), ext2_mknod(), ext2_read_inode(), ext2_update_inode(), isofs_read_inode(), minix_mknod(), nfs_fill_inode(), nfs_proc_mknod(), nfs_refresh_inode(), open_namei(), romfs_read_inode(), sysv_mknod(), sysv_read_inode(), sysv_update_inode(), ufs_mknod(), ufs_read_inode(), ufs_update_inode(), umsdos_patch_dentry_inode(), V1_minix_read_inode(), V1_minix_update_inode(), V2_minix_read_inode(), and V2_minix_update_inode().

#define S_ISDIR m   )     (((m) & S_IFMT) == S_IFDIR)
 

Definition at line 26 of file linux/stat.h.

Referenced by adfs_iget(), adfs_mode2atts(), affs_link(), affs_parent_ino(), affs_read_inode(), affs_rename(), autofs_expire(), autofs_revalidate(), chown_common(), coda_fill_inode(), coda_flag_inode_children(), coda_fsync(), coda_iattr_to_vattr(), coda_rename(), comx_lookup(), comx_twin_check(), create_proc_entry(), d_invalidate(), do_mount(), do_msdos_rename(), do_rename(), efs_lookup(), efs_readdir(), exp_export(), expand_objects(), ext2_bread(), ext2_free_inode(), ext2_link(), ext2_new_inode(), ext2_permission(), ext2_read_inode(), ext2_rename(), ext2_truncate(), ext2_update_inode(), fat_add_cluster1(), fat_notify_change(), fat_parent_ino(), fat_smap(), fat_write_inode(), fh_compose(), fh_update(), fh_verify(), find_fh_dentry(), fr_close(), fr_exit(), fr_keepalive_timerfun(), fr_rx(), fr_rx_lmi(), fr_statistics(), fr_status(), fr_tx(), fr_xmit(), get_ino_name(), isofs_read_inode(), may_delete(), minix_checkroot(), minix_link(), minix_rename(), mixcom_twin_check(), ncp_delete_inode(), ncp_notify_change(), ncp_read_inode(), nfs3_proc_access(), nfs_fill_inode(), nfs_lookup_revalidate(), nfs_rename(), nfsd_permission(), open_namei(), proc_register(), proc_unregister(), qnx4_read_inode(), romfs_read_inode(), smb_iget(), smb_refresh_inode(), smb_revalidate_inode(), standard_permission(), sys_chdir(), sys_chroot(), sys_fchdir(), sys_ftruncate(), sys_mknod(), sys_truncate(), sysv_link(), sysv_read_inode(), sysv_rename(), sysv_sync_file(), sysv_truncate(), try_to_fill_dentry(), ufs_free_inode(), ufs_link(), ufs_new_inode(), ufs_permission(), ufs_read_inode(), ufs_rename(), ufs_truncate(), umsdos_create_any(), umsdos_delentry(), umsdos_findentry(), UMSDOS_ioctl_dir(), UMSDOS_link(), umsdos_lookup_patch_new(), umsdos_lookup_x(), umsdos_patch_dentry_inode(), umsdos_readdir_x(), UMSDOS_rename(), umsdos_rename_f(), umsdos_setup_dir(), update_atime(), update_dirs_minus(), update_dirs_plus(), V1_minix_read_inode(), V1_minix_sync_file(), V1_minix_truncate(), V2_minix_read_inode(), V2_minix_sync_file(), V2_minix_truncate(), vfat_rename(), vfs_permission(), and vfs_rename().

#define S_ISFIFO m   )     (((m) & S_IFMT) == S_IFIFO)
 

Definition at line 29 of file linux/stat.h.

Referenced by coda_fill_inode(), do_proc_readlink(), ext2_link(), ext2_mknod(), ext2_read_inode(), isofs_read_inode(), minix_mknod(), nfs_fill_inode(), nfs_proc_mknod(), open_namei(), romfs_read_inode(), sys_mknod(), sysv_mknod(), sysv_read_inode(), ufs_mknod(), ufs_read_inode(), umsdos_patch_dentry_inode(), V1_minix_read_inode(), and V2_minix_read_inode().

#define S_ISGID   0002000
 

Definition at line 21 of file linux/stat.h.

Referenced by chown_common(), ext2_mkdir(), ext2_new_inode(), ext2_remove_suid(), fcntl_setlk(), inode_change_ok(), inode_setattr(), lock_get_status(), locks_mandatory_area(), locks_verify_area(), locks_verify_locked(), minix_mkdir(), minix_new_inode(), nfs_lock(), nfsd_setattr(), nfsd_write(), prepare_binprm(), remove_suid(), sysv_mkdir(), sysv_new_inode(), ufs_mkdir(), ufs_new_inode(), umsdos_create_any(), and UMSDOS_mkdir().

#define S_ISLNK m   )     (((m) & S_IFMT) == S_IFLNK)
 

Definition at line 24 of file linux/stat.h.

Referenced by adfs_mode2atts(), affs_read_inode(), coda_fill_inode(), coda_fsync(), coda_iattr_to_vattr(), encode_fattr(), encode_fattr3(), encode_saved_post_attr(), ext2_link(), ext2_new_inode(), ext2_permission(), ext2_read_inode(), ext2_sync_file(), ext2_truncate(), fat_file_read_text(), fat_file_write(), isofs_read_inode(), ncp_read_inode(), nfs_fill_inode(), open_namei(), proc_register(), qnx4_read_inode(), qnx4_readlink(), romfs_readlink(), standard_permission(), sysv_read_inode(), sysv_sync_file(), sysv_truncate(), to_coh_imode(), ufs_permission(), ufs_read_inode(), ufs_truncate(), umsdos_patch_dentry_inode(), V1_minix_read_inode(), V1_minix_sync_file(), V1_minix_truncate(), V2_minix_read_inode(), V2_minix_sync_file(), V2_minix_truncate(), and vfs_permission().

#define S_ISREG m   )     (((m) & S_IFMT) == S_IFREG)
 

Definition at line 25 of file linux/stat.h.

Referenced by adfs_iget(), affs_delete_inode(), affs_file_read_ofs(), affs_file_write(), affs_file_write_ofs(), affs_read_inode(), all_files_read_only(), cap_info_read(), cap_info_write(), coda_fill_inode(), coda_fsync(), coda_iattr_to_vattr(), coda_readdir(), do_coredump(), do_write_page(), exp_export(), ext2_alloc_block(), ext2_file_write(), ext2_link(), ext2_mknod(), ext2_permission(), ext2_read_inode(), ext2_truncate(), fat_file_read_text(), fat_file_write(), fat_mmap(), figure_loop_size(), fs_may_remount_ro(), generic_file_mmap(), hdr_read(), hdr_write(), hfs_file_read(), hfs_file_write(), hfs_mknod(), hpfs_file_read(), hpfs_read_inode(), isofs_read_inode(), loop_set_fd(), main(), minix_file_write(), minix_mknod(), ncp_file_read(), ncp_file_write(), ncp_ioctl(), ncp_mmap(), ncp_notify_change(), ncp_read_inode(), nfs_fill_inode(), nfs_notify_change(), nfsd_permission(), prepare_binprm(), qnx4_read_inode(), quota_on(), regular_file(), smb_iget(), smb_proc_settime(), standard_permission(), sys_ioctl(), sys_swapon(), sys_uselib(), sysv_file_read(), sysv_file_write(), sysv_mknod(), sysv_read_inode(), sysv_sync_file(), sysv_truncate(), ufs_file_write(), ufs_mknod(), ufs_permission(), ufs_read_inode(), ufs_truncate(), umsdos_lookup_patch_new(), umsdos_patch_dentry_inode(), V1_minix_read_inode(), V1_minix_sync_file(), V1_minix_truncate(), V2_minix_read_inode(), V2_minix_sync_file(), V2_minix_truncate(), verify_file(), and vfs_permission().

#define S_ISSOCK m   )     (((m) & S_IFMT) == S_IFSOCK)
 

Definition at line 30 of file linux/stat.h.

Referenced by coda_fill_inode(), do_proc_readlink(), ext2_link(), ext2_mknod(), ncp_read_super(), open_namei(), smb_valid_socket(), and sys_fcntl().

#define S_ISUID   0004000
 

Definition at line 20 of file linux/stat.h.

Referenced by chown_common(), ext2_remove_suid(), nfsd_setattr(), nfsd_write(), prepare_binprm(), and remove_suid().

#define S_ISVTX   0001000
 

Definition at line 22 of file linux/stat.h.

Referenced by affs_mkdir(), affs_read_inode(), check_sticky(), ext2_mkdir(), and ufs_mkdir().

#define S_IWGRP   00020
 

Definition at line 39 of file linux/stat.h.

Referenced by debug_info_create(), debug_init(), mode_to_prot(), prot_to_mode(), smb_finish_dirent(), and smb_proc_open().

#define S_IWOTH   00002
 

Definition at line 44 of file linux/stat.h.

Referenced by ext2_permission(), mode_to_prot(), prot_to_mode(), smb_finish_dirent(), smb_proc_open(), standard_permission(), ufs_permission(), and vfs_permission().

#define S_IWUSR   00200
 

Definition at line 34 of file linux/stat.h.

Referenced by __initfunc(), add_file_to_blocklist(), affs_read_inode(), autofs_read_inode(), capifs_read_inode(), DAC960_CreateProcEntries(), dasd_proc_init(), debug_info_create(), debug_init(), debug_register_view(), devpts_read_inode(), entry_proc_setup(), get_pipe_inode(), hfs_create(), hfs_notify_change(), hysdn_procconf_init(), hysdn_proclog_init(), init_misc_binfmt(), input_register_minor(), mode_to_prot(), nfsd_proc_init(), nubus_proc_subdir(), openpromfs_create(), openpromfs_lookup(), pci_proc_attach_device(), proc_read_inode(), prot_to_mode(), romfs_read_inode(), smb_finish_dirent(), smb_get_inode_attr(), smb_notify_change(), smb_proc_open(), tape_init(), usbdevfs_read_super(), and write_bootsect().

#define S_IXGRP   00010
 

Definition at line 40 of file linux/stat.h.

Referenced by affs_read_inode(), chown_common(), ext2_remove_suid(), fcntl_setlk(), fh_verify(), lock_get_status(), locks_mandatory_area(), locks_verify_area(), locks_verify_locked(), nfs_lock(), prepare_binprm(), prot_to_mode(), and remove_suid().

#define S_IXOTH   00001
 

Definition at line 45 of file linux/stat.h.

Referenced by affs_read_inode(), ext2_permission(), fh_verify(), prot_to_mode(), standard_permission(), ufs_permission(), and vfs_permission().

#define S_IXUSR   00100
 

Definition at line 35 of file linux/stat.h.

Referenced by __initfunc(), affs_read_inode(), fh_verify(), mode_to_prot(), proc_read_inode(), and prot_to_mode().