Class: RBFuse::Stat

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/rbfuse/x86_64-linux/stat.rb,
lib/rbfuse/x86_64-darwin/stat.rb

Constant Summary collapse

S_IFMT =
0170000
S_IFSOCK =

symbolic link

0140000
S_IFLNK =

regular

0120000
S_IFREG =

block special

0100000
S_IFBLK =

directory

0060000
S_IFDIR =

character special

0040000
S_IFCHR =

named pipe (fifo)

0020000
S_IFIFO =

type of file

0010000
S_ISUID =

whiteout

0004000
S_ISGID =

set user id on execution

0002000
S_ISVTX =

set group id on execution

0001000
S_IRWXU =

sticky bit (see below)

00700
S_IRUSR =

save swapped text even after use

0000400
S_IWUSR =

read permission, owner

0000200
S_IXUSR =

write permission, owner

0000100
S_IRWXG =

owner has execute permission

00070
S_IRGRP =

group has read, write, and execute permission

00040
S_IWGRP =

group has read permission

00020
S_IXGRP =

group has write permission

00010
S_IRWXO =

group has execute permission

00007
S_IROTH =

others (not in group) have read, write, and execute permission

00004
S_IWOTH =

others have read permission

00002
S_IXOTH =

others have write permission

00001
S_IFWHT =

socket

0160000

Instance Method Summary collapse

Instance Method Details

#st_atimeObject

execute/search permission, owner



44
45
46
# File 'lib/rbfuse/x86_64-darwin/stat.rb', line 44

def st_atime
  self[:st_atimespec][:tv_sec]
end

#st_atime=(val) ⇒ Object



60
61
62
# File 'lib/rbfuse/x86_64-linux/stat.rb', line 60

def st_atime=(val)
  self[:st_atimespec][:tv_sec] = val
end

#st_ctimeObject



72
73
74
# File 'lib/rbfuse/x86_64-linux/stat.rb', line 72

def st_ctime
  self[:st_ctimespec][:tv_sec]
end

#st_ctime=(val) ⇒ Object



76
77
78
# File 'lib/rbfuse/x86_64-linux/stat.rb', line 76

def st_ctime=(val)
  self[:st_ctimespec][:tv_sec] = val
end

#st_mtimeObject



64
65
66
# File 'lib/rbfuse/x86_64-linux/stat.rb', line 64

def st_mtime
  self[:st_mtimespec][:tv_sec]
end

#st_mtime=(val) ⇒ Object



68
69
70
# File 'lib/rbfuse/x86_64-linux/stat.rb', line 68

def st_mtime=(val)
  self[:st_mtimespec][:tv_sec] = val
end