Sha256: 936fc7508753f63e9ea4ec914b3b1b097a58f633c1be58ccae6983899b49c4a3

Contents?: true

Size: 507 Bytes

Versions: 72

Compression:

Stored size: 507 Bytes

Contents

require 'puppet/ffi/posix'

module Puppet::FFI::POSIX
  module Functions

    extend FFI::Library

    ffi_convention :stdcall

    # https://man7.org/linux/man-pages/man3/getgrouplist.3.html
    # int getgrouplist (
    #   const char *user,
    #   gid_t group,
    #   gid_t *groups,
    #   int *ngroups
    # );
    begin
      ffi_lib FFI::Library::LIBC
      attach_function :getgrouplist, [:string, :uint, :pointer, :pointer], :int
    rescue FFI::NotFoundError
      # Do nothing
    end
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
puppet-6.29.0 lib/puppet/ffi/posix/functions.rb
puppet-6.29.0-x86-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-6.29.0-x64-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-6.29.0-universal-darwin lib/puppet/ffi/posix/functions.rb
puppet-6.28.0 lib/puppet/ffi/posix/functions.rb
puppet-6.28.0-x86-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-6.28.0-x64-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-6.28.0-universal-darwin lib/puppet/ffi/posix/functions.rb
puppet-6.27.0 lib/puppet/ffi/posix/functions.rb
puppet-6.27.0-x86-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-6.27.0-x64-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-6.27.0-universal-darwin lib/puppet/ffi/posix/functions.rb
puppet-6.26.0 lib/puppet/ffi/posix/functions.rb
puppet-6.26.0-x86-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-6.26.0-x64-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-6.26.0-universal-darwin lib/puppet/ffi/posix/functions.rb
puppet-6.25.1 lib/puppet/ffi/posix/functions.rb
puppet-6.25.1-x86-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-6.25.1-x64-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-6.25.1-universal-darwin lib/puppet/ffi/posix/functions.rb