Skip to content

Latest commit

 

History

History

getegid

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

getegid

Return the effective numeric group identity of the calling process.

Usage

var getegid = require( '@stdlib/process/getegid' );

getegid()

Returns the effective numeric group identity of the calling process.

var id = getegid();

Notes

  • The function only returns an integer group identity on POSIX platforms. For all other platforms (e.g., Windows and Android), the function returns null.
  • See getegid(2).

Examples

var getegid = require( '@stdlib/process/getegid' );

var gid = getegid();
console.log( 'gid: %d', gid );