Module: ProcessShared::Posix::LibC

Extended by:
FFI::Library, Errno
Included in:
SharedMemory
Defined in:
lib/process_shared/posix/libc.rb

Defined Under Namespace

Modules: Helper

Constant Summary collapse

MAP_FAILED =
FFI::Pointer.new(-1)
MAP_SHARED =
Helper.map_shared
MAP_PRIVATE =
Helper.map_private
PROT_READ =
Helper.prot_read
PROT_WRITE =
Helper.prot_write
PROT_EXEC =
Helper.prot_exec
PROT_NONE =
Helper.prot_none
O_RDWR =
Helper.o_rdwr
O_CREAT =
Helper.o_creat
O_EXCL =
Helper.o_excl

Class Method Summary collapse

Methods included from Errno

error_check

Class Method Details

.type_size(type) ⇒ Object


73
74
75
76
77
78
79
80
# File 'lib/process_shared/posix/libc.rb', line 73

def self.type_size(type)
  case type
  when :sem_t
    Helper.sizeof_sem_t
  else
    FFI.type_size(type)
  end
end