diff --git a/reference/posix/functions/posix-geteuid.xml b/reference/posix/functions/posix-geteuid.xml index 4cb84b320b..e24e4cd06d 100644 --- a/reference/posix/functions/posix-geteuid.xml +++ b/reference/posix/functions/posix-geteuid.xml @@ -1,11 +1,11 @@ - + posix_geteuid Return the effective user ID of the current process - + &reftitle.description; @@ -18,14 +18,21 @@ to convert this into a useable username. - + + + &reftitle.returnvalues; + + Returns the user id, as an integer + + + &reftitle.examples; <function>posix_geteuid</function> example This example will show the current user id then set the - effective user id to a separate id using + effective user id to a separate id using posix_seteuid, then show the difference between the real id and the effective id. @@ -42,13 +49,6 @@ echo posix_geteuid().'\n'; //10000 - - - &reftitle.returnvalues; - - Returns the user id, as an integer - - &reftitle.seealso;