Sha256: 3c639e3b8180f0fbff6d4e3686abb163521001651f90989bf0e29ab3842f6e86

Contents?: true

Size: 525 Bytes

Versions: 120

Compression:

Stored size: 525 Bytes

Contents

require_relative '../../../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

120 entries across 120 versions & 1 rubygems

Version Path
puppet-7.34.0 lib/puppet/ffi/posix/functions.rb
puppet-7.34.0-x86-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-7.34.0-x64-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-7.34.0-universal-darwin lib/puppet/ffi/posix/functions.rb
puppet-7.33.0 lib/puppet/ffi/posix/functions.rb
puppet-7.33.0-x86-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-7.33.0-x64-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-7.33.0-universal-darwin lib/puppet/ffi/posix/functions.rb
puppet-7.32.1 lib/puppet/ffi/posix/functions.rb
puppet-7.32.1-x86-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-7.32.1-x64-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-7.32.1-universal-darwin lib/puppet/ffi/posix/functions.rb
puppet-7.31.0 lib/puppet/ffi/posix/functions.rb
puppet-7.31.0-x86-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-7.31.0-x64-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-7.31.0-universal-darwin lib/puppet/ffi/posix/functions.rb
puppet-7.30.0 lib/puppet/ffi/posix/functions.rb
puppet-7.30.0-x86-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-7.30.0-x64-mingw32 lib/puppet/ffi/posix/functions.rb
puppet-7.30.0-universal-darwin lib/puppet/ffi/posix/functions.rb