Difference between revisions of "GETUID()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (→Description) |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
− | Function to get user identity | + | Function to get Linux user identity |
− | + | ||
==Syntax== | ==Syntax== | ||
GETUID() | GETUID() | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ACCESS() | + | [[ACCESS()]], [[GETENV()]], [[GETGID()]], [[GETGRNAM()]], [[GETPID()]], [[PUTENV()]], [[STR()]] |
− | + | ||
==Description== | ==Description== | ||
− | The GETUID() function returns the | + | The GETUID() function returns the current Linux user number as a decimal value. |
+ | Note: this refers to the OS user account on Linux, not the Lianja [[Users and Roles]]. | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | if getuid() > 100 and getuid() < 200 | |
− | + | //... | |
− | + | endif | |
− | + | ||
− | + | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:Environment Functions]] | [[Category:Environment Functions]] | ||
+ | [[Category:Lianja VFP Extensions]] | ||
+ | [[Category:VFP Function Extensions]] |
Latest revision as of 12:17, 17 December 2021
Contents
Purpose
Function to get Linux user identity
Syntax
GETUID()
See Also
ACCESS(), GETENV(), GETGID(), GETGRNAM(), GETPID(), PUTENV(), STR()
Description
The GETUID() function returns the current Linux user number as a decimal value.
Note: this refers to the OS user account on Linux, not the Lianja Users and Roles.
Example
if getuid() > 100 and getuid() < 200 //... endif