•  Back 
  •  GEMDOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FilePsetgroups()
Sysconf()
Pgetgroups()                                                         GEMDOS

Syntax

LONG Pgetgroups( len, gidset )
WORD len;
WORD *gidset;

Function      Pgetgroups() gets the supplementary group ids for the calling
              process.

Opcode        327 (0x0147)

Availability  Available when a 'MiNT' cookie with a version of at least
              1.11 exists.

Parameters    len specifies the length (in words) of the array to be filled
              with the supplementary group ids available. This value must
              be a positive number not greater than NGROUPS_MAX. If len is
              a zero, the call will return the number of supplementary
              group ids currently available for the calling process.

              gidset is a pointer to a word array to be filled
              with retrieved ids.

Binding       pea     gidset
              move.w  len,-(sp)
              move.w  #$0147,-(sp)
              trap    #1
              addq.l  #8,sp

Return Value  Pgetgroups() returns a number of supplementary group ids
              for the process on success or a negative GEMDOS error code
              otherwise.

Comments      The NGROUPS_MAX value is returned by Sysconf().

See Also      Psetgroups(), Sysconf()