Query: posix_getgid
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
POSIX_GETGID(3) 1 POSIX_GETGID(3) posix_getgid - Return the real group ID of the current processSYNOPSISint posix_getgid (void )DESCRIPTIONReturn the numeric real group ID of the current process.RETURN VALUESReturns the real group id, as an integer.EXAMPLESExample #1 posix_getgid(3) example This example will print out the real group id, even once the effective group id has been changed. <?php echo 'My real group id is '.posix_getgid(); //20 posix_setegid(40); echo 'My real group id is '.posix_getgid(); //20 echo 'My effective group id is '.posix_getegid(); //40 ?>SEE ALSOposix_getgrgid(3), posix_getegid(3), posix_setgid(3), POSIX man page GETGID(2). PHP Documentation Group POSIX_GETGID(3)
Related Man Pages |
---|
setregid(2) - opensolaris |
setregid(2) - debian |
setregid(2) - freebsd |
posix_getgrnam(3) - php |
posix_setgid(3) - php |
Similar Topics in the Unix Linux Community |
---|
Simple rules of the UNIX.COM forums: |
Rules for Homework & Coursework Questions Forum |
Forum Video Tutorial: How to Use Code Tags |
Please Welcome Nicki Paul to the Moderator Team! |