ReactOS  0.4.14-dev-606-g14ebc0b
dinode.h File Reference
#include "type.h"
Include dependency graph for dinode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ufs1_dinode
 
struct  ufs2_dinode
 

Macros

#define ROOTINO   ((ino_t)2)
 
#define WINO   ((ino_t)1)
 
#define NXADDR   2
 
#define NDADDR   12 /* Direct addresses in inode. */
 
#define NIADDR   3 /* Indirect addresses in inode. */
 
#define di_inumber   di_u.inumber
 
#define di_ogid   di_u.oldids[1]
 
#define di_ouid   di_u.oldids[0]
 
#define di_rdev   di_db[0]
 
#define MAXSYMLINKLEN_UFS1   ((NDADDR + NIADDR) * sizeof(int32_t))
 
#define MAXSYMLINKLEN_UFS2   ((NDADDR + NIADDR) * sizeof(int64_t))
 
#define MAXSYMLINKLEN(ip)
 
#define APPLEUFS_MAXSYMLINKLEN   60
 
#define IEXEC   0000100 /* Executable. */
 
#define IWRITE   0000200 /* Writable. */
 
#define IREAD   0000400 /* Readable. */
 
#define ISVTX   0001000 /* Sticky bit. */
 
#define ISGID   0002000 /* Set-gid. */
 
#define ISUID   0004000 /* Set-uid. */
 
#define IFMT   0170000 /* Mask of file type. */
 
#define IFIFO   0010000 /* Named pipe (fifo). */
 
#define IFCHR   0020000 /* Character device. */
 
#define IFDIR   0040000 /* Directory file. */
 
#define IFBLK   0060000 /* Block device. */
 
#define IFREG   0100000 /* Regular file. */
 
#define IFLNK   0120000 /* Symbolic link. */
 
#define IFSOCK   0140000 /* UNIX domain socket. */
 
#define IFWHT   0160000 /* Whiteout. */
 
#define DINODE1_SIZE   (sizeof(struct ufs1_dinode)) /* 128 */
 
#define DINODE2_SIZE   (sizeof(struct ufs2_dinode))
 

Macro Definition Documentation

◆ APPLEUFS_MAXSYMLINKLEN

#define APPLEUFS_MAXSYMLINKLEN   60

Definition at line 152 of file dinode.h.

◆ di_inumber

#define di_inumber   di_u.inumber

Definition at line 137 of file dinode.h.

◆ di_ogid

#define di_ogid   di_u.oldids[1]

Definition at line 138 of file dinode.h.

◆ di_ouid

#define di_ouid   di_u.oldids[0]

Definition at line 139 of file dinode.h.

◆ di_rdev

#define di_rdev   di_db[0]

Definition at line 140 of file dinode.h.

◆ DINODE1_SIZE

#define DINODE1_SIZE   (sizeof(struct ufs1_dinode)) /* 128 */

Definition at line 174 of file dinode.h.

◆ DINODE2_SIZE

#define DINODE2_SIZE   (sizeof(struct ufs2_dinode))

Definition at line 175 of file dinode.h.

◆ IEXEC

#define IEXEC   0000100 /* Executable. */

Definition at line 155 of file dinode.h.

◆ IFBLK

#define IFBLK   0060000 /* Block device. */

Definition at line 167 of file dinode.h.

◆ IFCHR

#define IFCHR   0020000 /* Character device. */

Definition at line 165 of file dinode.h.

◆ IFDIR

#define IFDIR   0040000 /* Directory file. */

Definition at line 166 of file dinode.h.

◆ IFIFO

#define IFIFO   0010000 /* Named pipe (fifo). */

Definition at line 164 of file dinode.h.

◆ IFLNK

#define IFLNK   0120000 /* Symbolic link. */

Definition at line 169 of file dinode.h.

◆ IFMT

#define IFMT   0170000 /* Mask of file type. */

Definition at line 163 of file dinode.h.

◆ IFREG

#define IFREG   0100000 /* Regular file. */

Definition at line 168 of file dinode.h.

◆ IFSOCK

#define IFSOCK   0140000 /* UNIX domain socket. */

Definition at line 170 of file dinode.h.

◆ IFWHT

#define IFWHT   0160000 /* Whiteout. */

Definition at line 171 of file dinode.h.

◆ IREAD

#define IREAD   0000400 /* Readable. */

Definition at line 157 of file dinode.h.

◆ ISGID

#define ISGID   0002000 /* Set-gid. */

Definition at line 159 of file dinode.h.

◆ ISUID

#define ISUID   0004000 /* Set-uid. */

Definition at line 160 of file dinode.h.

◆ ISVTX

#define ISVTX   0001000 /* Sticky bit. */

Definition at line 158 of file dinode.h.

◆ IWRITE

#define IWRITE   0000200 /* Writable. */

Definition at line 156 of file dinode.h.

◆ MAXSYMLINKLEN

#define MAXSYMLINKLEN (   ip)
Value:
((ip)->i_ump->um_fstype == UFS1) ? \
MAXSYMLINKLEN_UFS1 : MAXSYMLINKLEN_UFS2
int ip[4]
Definition: rtl.c:1176
#define MAXSYMLINKLEN_UFS2
Definition: dinode.h:142

Definition at line 144 of file dinode.h.

◆ MAXSYMLINKLEN_UFS1

#define MAXSYMLINKLEN_UFS1   ((NDADDR + NIADDR) * sizeof(int32_t))

Definition at line 141 of file dinode.h.

◆ MAXSYMLINKLEN_UFS2

#define MAXSYMLINKLEN_UFS2   ((NDADDR + NIADDR) * sizeof(int64_t))

Definition at line 142 of file dinode.h.

◆ NDADDR

#define NDADDR   12 /* Direct addresses in inode. */

Definition at line 77 of file dinode.h.

◆ NIADDR

#define NIADDR   3 /* Indirect addresses in inode. */

Definition at line 78 of file dinode.h.

◆ NXADDR

#define NXADDR   2

Definition at line 76 of file dinode.h.

◆ ROOTINO

#define ROOTINO   ((ino_t)2)

Definition at line 59 of file dinode.h.

◆ WINO

#define WINO   ((ino_t)1)

Definition at line 67 of file dinode.h.