diff options
author | Dave Rolsky <autarch@urth.org> | 2011-09-26 09:22:43 -0500 |
---|---|---|
committer | Dave Rolsky <autarch@urth.org> | 2011-09-28 09:58:13 -0500 |
commit | c82f2f4eb9412d8579ac9d986f3ae37d25dadeef (patch) | |
tree | 0a34c240ab55d5566100379733d04a4643ea7619 /pod/perlvar.pod | |
parent | 7969fa3ad87a5c1e868e959d5ff214a5a1b2fdab (diff) | |
download | perl-c82f2f4eb9412d8579ac9d986f3ae37d25dadeef.tar.gz |
Move uid & gid variable docs next to each other
Diffstat (limited to 'pod/perlvar.pod')
-rw-r--r-- | pod/perlvar.pod | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 05f3c294ea..1ace1771e1 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -256,6 +256,41 @@ and C<$)> can be swapped only on machines supporting C<setregid()>. Mnemonic: parentheses are used to I<group> things. The effective gid is the group that's I<right> for you, if you're running setgid. +=item $REAL_USER_ID + +=item $UID + +=item $< +X<< $< >> X<$UID> X<$REAL_USER_ID> + +The real uid of this process. You can change both the real uid and the +effective uid at the same time by using C<POSIX::setuid()>. Since +changes to C<< $< >> require a system call, check C<$!> after a change +attempt to detect any possible errors. + +Mnemonic: it's the uid you came I<from>, if you're running setuid. + +=item $EFFECTIVE_USER_ID + +=item $EUID + +=item $> +X<< $> >> X<$EUID> X<$EFFECTIVE_USER_ID> + +The effective uid of this process. For example: + + $< = $>; # set real to effective uid + ($<,$>) = ($>,$<); # swap real and effective uids + +You can change both the effective uid and the real uid at the same +time by using C<POSIX::setuid()>. Changes to C<< $> >> require a check +to C<$!> to detect any possible errors after an attempted change. + +C<< $< >> and C<< $> >> can be swapped only on machines +supporting C<setreuid()>. + +Mnemonic: it's the uid you went I<to>, if you're running setuid. + =item $PROGRAM_NAME =item $0 @@ -336,41 +371,6 @@ in L<perllol>. Mnemonic: comma (the syntactic subscript separator) is a semi-semicolon. -=item $REAL_USER_ID - -=item $UID - -=item $< -X<< $< >> X<$UID> X<$REAL_USER_ID> - -The real uid of this process. You can change both the real uid and the -effective uid at the same time by using C<POSIX::setuid()>. Since -changes to C<< $< >> require a system call, check C<$!> after a change -attempt to detect any possible errors. - -Mnemonic: it's the uid you came I<from>, if you're running setuid. - -=item $EFFECTIVE_USER_ID - -=item $EUID - -=item $> -X<< $> >> X<$EUID> X<$EFFECTIVE_USER_ID> - -The effective uid of this process. For example: - - $< = $>; # set real to effective uid - ($<,$>) = ($>,$<); # swap real and effective uids - -You can change both the effective uid and the real uid at the same -time by using C<POSIX::setuid()>. Changes to C<< $> >> require a check -to C<$!> to detect any possible errors after an attempted change. - -C<< $< >> and C<< $> >> can be swapped only on machines -supporting C<setreuid()>. - -Mnemonic: it's the uid you went I<to>, if you're running setuid. - =item $a =item $b |