Difference between revisions of "GETGID()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
(Description)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
Function to get group identity
+
Function to get Linux group identity
 
+
  
 
==Syntax==
 
==Syntax==
 
GETGID()
 
GETGID()
 
  
 
==See Also==
 
==See Also==
[[ACCESS()]], [[CREATE]], [[GETENV()]], [[GETGRNAM()]], [[GETPID()]], [[GETUID()]], [[MODIFY STRUCTURE]], [[PUTENV()]], [[STR()]]
+
[[ACCESS()]], [[GETENV()]], [[GETGRNAM()]], [[GETPID()]], [[GETUID()]], [[PUTENV()]], [[STR()]]
 
+
  
 
==Description==
 
==Description==
The GETGID() function returns the group number of the user.  In UNIX/Linux, this is the group number of the logged in user from the /etc/passwd file.  In OpenVMS, this is the group number extracted from the UIC of the logged in user from the system authorization file.
+
The GETGID() function returns the group number of the current Linux user as a decimal value.
 
+
The GETGID() function returns a decimal value.  OpenVMS group user IDs are stored in octal, however you may use the STR() function to convert the decimal value to octal.
+
  
 +
Note: this refers to the OS user account on Linux, not the Lianja [[Users and Roles]].
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
use accounts
+
if getgid() > 100 and getgid() < 200
@2,3 get name
+
//...
@3,3 get rates;
+
endif
  when getgid() > 100 and getgid() < 200
+
read
+
 
</code>
 
</code>
 
+
 
+
==Products==
+
Recital Server, Recital
+
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Environment]]
 
 
[[Category:Environment Functions]]
 
[[Category:Environment Functions]]
 +
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Latest revision as of 12:17, 17 December 2021

Purpose

Function to get Linux group identity

Syntax

GETGID()

See Also

ACCESS(), GETENV(), GETGRNAM(), GETPID(), GETUID(), PUTENV(), STR()

Description

The GETGID() function returns the group number of the current Linux user as a decimal value.

Note: this refers to the OS user account on Linux, not the Lianja Users and Roles.

Example

if getgid() > 100 and getgid() < 200
//...
endif