Submit
Path:
~
/
/
lib
/
ruby
/
vendor_ruby
/
rb-inotify
/
File Content:
native.rb
require 'ffi' module INotify # This module contains the low-level foreign-function interface code # for dealing with the inotify C APIs. # It's an implementation detail, and not meant for users to deal with. # # @private module Native extend FFI::Library ffi_lib FFI::Library::LIBC begin ffi_lib 'inotify' rescue LoadError end # The C struct describing an inotify event. # # @private class Event < FFI::Struct layout( :wd, :int, :mask, :uint32, :cookie, :uint32, :len, :uint32) end attach_function :inotify_init, [], :int attach_function :inotify_add_watch, [:int, :string, :uint32], :int attach_function :inotify_rm_watch, [:int, :uint32], :int attach_function :fpathconf, [:int, :int], :long attach_function :read, [:int, :pointer, :size_t], :ssize_t attach_function :close, [:int], :int end end
Submit
FILE
FOLDER
Name
Size
Permission
Action
native
---
0755
errors.rb
66 bytes
0644
event.rb
4770 bytes
0644
native.rb
924 bytes
0644
notifier.rb
11279 bytes
0644
version.rb
1212 bytes
0644
watcher.rb
2853 bytes
0644
N4ST4R_ID | Naxtarrr