Carrot
view release on metacpan or search on metacpan
lib/Carrot/Individuality/Singular/Process/Child.pm view on Meta::CPAN
while ($timeout > 0)
{
return(IS_TRUE) unless (kill(0, $$this));
sleep(1);
$timeout -= 1;
}
return(kill(9, $$this));
}
sub set_ugid
# /type method
# /effect ""
# //parameters
# uid
# gid
# //returns
{
my ($this, $uid, $gid) = @ARGUMENTS;
if (defined($uid) and ($REAL_USER_ID != $EFFECTIVE_USER_ID))
{
my $former = $REAL_USER_ID;
$REAL_USER_ID = $uid;
if ($OS_ERROR > 0)
{
$perl_setxid_failed->raise_exception(
{+HKY_DEX_BACKTRACK => $uid,
'x' => 'u',
'xid' => $uid,
'former_xid' => $former,
'os_error' => $OS_ERROR},
ERROR_CATEGORY_SETUP);
}
}
if (defined($gid) and ($REAL_GROUP_ID != $EFFECTIVE_GROUP_ID))
{
my $former = $REAL_GROUP_ID;
$REAL_GROUP_ID = $gid;
if ($OS_ERROR > 0)
{
$perl_setxid_failed->raise_exception(
{+HKY_DEX_BACKTRACK => $gid,
'x' => 'g',
'xid' => $gid,
'former_xid' => $former,
'os_error' => $OS_ERROR},
ERROR_CATEGORY_SETUP);
}
}
return;
}
sub set_eugid
# /type method
# /effect ""
# //parameters
# uid
# gid
# //returns
{
my ($this, $uid, $gid) = @ARGUMENTS;
if (defined($uid) and ($EFFECTIVE_USER_ID != $uid))
{
my $former = $EFFECTIVE_USER_ID;
$EFFECTIVE_USER_ID = $uid;
if ($OS_ERROR > 0)
{
$perl_setxid_failed->raise_exception(
{+HKY_DEX_BACKTRACK => $uid,
'x' => 'u',
'xid' => $uid,
'former_xid' => $former,
'os_error' => $OS_ERROR},
ERROR_CATEGORY_SETUP);
}
}
if (defined($gid) and ($EFFECTIVE_GROUP_ID != $gid))
{
my $former = $);
$EFFECTIVE_GROUP_ID = $gid;
if ($OS_ERROR > 0)
{
$perl_setxid_failed->raise_exception(
{+HKY_DEX_BACKTRACK => $gid,
'x' => 'g',
'xid' => $gid,
'former_xid' => $former,
'os_error' => $OS_ERROR},
ERROR_CATEGORY_SETUP);
}
}
return;
}
sub swap_eugid
# function ()
{
if ($REAL_USER_ID != $EFFECTIVE_USER_ID)
{
($REAL_USER_ID, $EFFECTIVE_USER_ID) = ($EFFECTIVE_USER_ID, $REAL_USER_ID);
if ($OS_ERROR > 0)
{
$perl_setxid_failed->raise_exception(
{+HKY_DEX_BACKTRACK => $EFFECTIVE_USER_ID,
'x' => 'u',
lib/Carrot/Individuality/Singular/Process/Child.pm view on Meta::CPAN
'x' => 'g',
'xid' => $REAL_GROUP_ID,
'former_xid' => $EFFECTIVE_GROUP_ID,
'os_error' => $OS_ERROR},
ERROR_CATEGORY_SETUP);
}
}
return;
}
sub release_eugid
# function ()
{
if ($REAL_USER_ID != $EFFECTIVE_USER_ID)
{
$REAL_USER_ID = $EFFECTIVE_USER_ID;
if ($OS_ERROR > 0)
{
$perl_setxid_failed->raise_exception(
{+HKY_DEX_BACKTRACK => $REAL_USER_ID,
'x' => 'u',
lib/Carrot/Individuality/Singular/Process/Id.pm view on Meta::CPAN
while ($timeout > 0)
{
return(IS_TRUE) unless (kill(0, $$this));
sleep(1);
$timeout -= 1;
}
return(kill(9, $$this));
}
sub set_ugid
# /type method
# /effect ""
# //parameters
# uid
# gid
# //returns
{
my ($this, $uid, $gid) = @ARGUMENTS;
if (defined($uid) and ($REAL_USER_ID != $EFFECTIVE_USER_ID))
{
my $former = $REAL_USER_ID;
$REAL_USER_ID = $uid;
if ($OS_ERROR > 0)
{
$perl_setxid_failed->raise_exception(
{+HKY_DEX_BACKTRACK => $uid,
'x' => 'u',
'xid' => $uid,
'former_xid' => $former,
'os_error' => $OS_ERROR},
ERROR_CATEGORY_SETUP);
}
}
if (defined($gid) and ($REAL_GROUP_ID != $EFFECTIVE_GROUP_ID))
{
my $former = $REAL_GROUP_ID;
$REAL_GROUP_ID = $gid;
if ($OS_ERROR > 0)
{
$perl_setxid_failed->raise_exception(
{+HKY_DEX_BACKTRACK => $gid,
'x' => 'g',
'xid' => $gid,
'former_xid' => $former,
'os_error' => $OS_ERROR},
ERROR_CATEGORY_SETUP);
}
}
return;
}
sub set_eugid
# /type method
# /effect ""
# //parameters
# uid
# gid
# //returns
{
my ($this, $uid, $gid) = @ARGUMENTS;
if (defined($uid) and ($EFFECTIVE_USER_ID != $uid))
{
my $former = $EFFECTIVE_USER_ID;
$EFFECTIVE_USER_ID = $uid;
if ($OS_ERROR > 0)
{
$perl_setxid_failed->raise_exception(
{+HKY_DEX_BACKTRACK => $uid,
'x' => 'u',
'xid' => $uid,
'former_xid' => $former,
'os_error' => $OS_ERROR},
ERROR_CATEGORY_SETUP);
}
}
if (defined($gid) and ($EFFECTIVE_GROUP_ID != $gid))
{
my $former = $EFFECTIVE_GROUP_ID;
$EFFECTIVE_GROUP_ID = $gid;
if ($OS_ERROR > 0)
{
$perl_setxid_failed->raise_exception(
{+HKY_DEX_BACKTRACK => $gid,
'x' => 'g',
'xid' => $gid,
'former_xid' => $former,
'os_error' => $OS_ERROR},
ERROR_CATEGORY_SETUP);
}
}
return;
}
# =--------------------------------------------------------------------------= #
lib/Carrot/Personality/Elemental/Scalar/Textual/File_Name.pm view on Meta::CPAN
# ?
{
return(chown($_[SPX_VALUE], ${$_[THIS]}));
}
sub change_owner
# /type method
# /effect ""
# //parameters
# uid
# gid
# //returns
# ?
{
my ($this, $uid, $gid) = @ARGUMENTS;
return(chown($uid, $gid, $$this));
}
sub change_root_directory
# /type method
# /effect ""
# //parameters
# value
# //returns
# ?
{
lib/Carrot/Personality/Elemental/Scalar/Textual/File_Name.pm view on Meta::CPAN
sub has_bit_sticky
# /type method
# /effect ""
# //parameters
# //returns
# ::Personality::Abstract::Boolean
{
return(-k ${$_[THIS]});
}
sub has_bit_gid
# /type method
# /effect ""
# //parameters
# //returns
# ::Personality::Abstract::Boolean
{
return(-g ${$_[THIS]});
}
sub has_bit_uid
lib/Carrot/Personality/Valued/Perl5/Stat.pm view on Meta::CPAN
sub uid
# /type method
# /effect ""
# //parameters
# //returns
# ?
{
return($_[THIS][RDX_STAT_UID]);
}
sub gid
# /type method
# /effect ""
# //parameters
# //returns
# ?
{
return($_[THIS][RDX_STAT_GID]);
}
sub device
lib/Carrot/Productivity/Text/Placeholder/Miniplate/OS/Unix/File/Properties.pm view on Meta::CPAN
return($_[THIS][ATR_STAT][RDX_STAT_GID]);
}
sub syp_file_group_name
# /type method
# /effect ""
# //parameters
# //returns
# ?
{
return((getgrgid($_[THIS][ATR_STAT][RDX_STAT_GID]))[RDX_GETGR_NAME]);
}
sub syp_file_size
# /type method
# /effect ""
# //parameters
# //returns
# ?
{
return($_[THIS][ATR_STAT][RDX_STAT_SIZE]);
( run in 1.568 second using v1.01-cache-2.11-cpan-97f6503c9c8 )