lib/ffi/libc/libc.rb in ffi-libc-0.0.2 vs lib/ffi/libc/libc.rb in ffi-libc-0.0.3

- old
+ new

@@ -6,19 +6,25 @@ module FFI module LibC extend FFI::Library - ffi_lib 'c' + ffi_lib [FFI::CURRENT_PROCESS, 'c'] # errno.h attach_variable :sys_errlist, :pointer attach_variable :sys_nerr, :int attach_variable :errno, :int # unistd.h attach_function :brk, [:pointer], :int attach_function :sbrk, [:pointer], :pointer + attach_function :getpid, [], :pid_t + attach_function :getppid, [], :pid_t + attach_function :getuid, [], :uid_t + attach_function :geteuid, [], :uid_t + attach_function :getgid, [], :gid_t + attach_function :getegid, [], :gid_t # stdlib.h attach_function :calloc, [:size_t, :size_t], :pointer attach_function :malloc, [:size_t], :pointer attach_function :free, [:pointer], :void